Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 9f096f4

Browse files
committed
Change snapshot and fix other minor issues
1 parent 4973c04 commit 9f096f4

File tree

14 files changed

+37
-32
lines changed

14 files changed

+37
-32
lines changed

src/component/helpOverlay/helpOverlay.css

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
bottom: 0;
1010
background-color: rgba(0,0,0,0.5); /* Black background with opacity */
1111
z-index: 5; /* Specify a stack order in case you're using a different order for other elements */
12-
cursor: pointer; /* Add a pointer on hover */
1312
}
1413

1514
.closeButton {
@@ -20,7 +19,7 @@
2019

2120
.instruction {
2221
position: absolute;
23-
width: 720px;
22+
width: 750px;
2423
height: 500px;
2524
margin: -250px 0 0 -360px;
2625
top: 50%;
@@ -37,14 +36,15 @@
3736
display: inline-block;
3837
width: 465px;
3938
height: 100%;
40-
margin-left: 127px;
39+
margin-left: 142px;
4140
}
4241

4342
.step {
4443
width: 155px;
4544
height: 100%;
4645
display: inline-block;
4746
position: relative;
47+
cursor: pointer;
4848
}
4949

5050
.step div {
@@ -84,7 +84,7 @@
8484
display: inline-block;
8585
font-size: 25px;
8686
height: 100%;
87-
margin-left: 85px;
87+
margin-left: 100px;
8888
/*padding-top: 10px;*/
8989
text-align: center;
9090
color: white;
@@ -108,9 +108,8 @@
108108

109109
.text-instruction-title {
110110
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
111-
font-weight: 300;
111+
font-weight: normal;
112112
color: #333333;
113-
height: 53px;
114113
line-height: 27px;
115114
font-size: 20px;
116115
margin-bottom: 20px
@@ -166,22 +165,23 @@
166165
left: 360px;
167166
width: 360px;
168167
height: 100%;
169-
padding: 80px 30px;
168+
padding: 80px 0;
170169
}
171170

172171
.picture-container {
173-
height: 210px;
172+
height: 234px;
174173
margin-top: 10px;
175174
position: relative;
176175
overflow: hidden;
176+
border: 2px solid rgba(204,205,206,0.5);
177177
}
178178

179179
.picture {
180180
position: absolute;
181181
transition: 0.5s all ease;
182182
top: 0;
183-
width: 300px;
184-
height: 214px;
183+
width: 360px;
184+
height: 234px;
185185
margin-bottom: 20px;
186186
}
187187

@@ -193,12 +193,12 @@
193193
.picture-indicator {
194194
display: inline-block;
195195
margin: 0 10px;
196-
width: 17px;
197-
height: 17px;
198-
border: 4px solid white;
196+
width: 9px;
197+
height: 9px;
199198
border-radius: 100%;
200199
background: #cccdce;
201200
transition: 0.5s all ease;
201+
cursor: pointer;
202202
}
203203

204204
.picture-indicator-selected {
@@ -210,6 +210,7 @@
210210
font-size: 15px;
211211
line-height: 20px;
212212
margin-top: 30px;
213+
height: 30px;
213214
}
214215

215216
.operation-button-1 {
@@ -219,6 +220,7 @@
219220
border: 1px solid #cccdce;
220221
padding: 4px 30px;
221222
margin: 0 10px 0 0;
223+
cursor: pointer;
222224
}
223225

224226
.operation-button-1:hover {
@@ -230,23 +232,24 @@
230232
padding: 4px 30px;
231233
background-color: #0078d7;
232234
color: white;
235+
cursor: pointer;
233236
}
234237

235238
.operation-button-2:hover {
236239
background-color: #0063b1;
237240
}
238241

239242
.link-container {
240-
margin-top: 5px;
243+
margin-top: 15px;
241244
}
242245

243246
.link-container a {
244-
float: right;
245-
padding: 0 10px;
247+
padding-right: 10px;
248+
font-size: 12px;
246249
}
247250

248251
.link-container a:visited {
249-
text-decoration:
252+
text-decoration: none;
250253
}
251254

252255
.element-none {

src/component/helpOverlay/helpOverlay.js

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { traceEvent } from '../../lib/telemetry.js';
33
import './helpOverlay.css';
44
import closeButton from '../../img/closeButton.png';
55
// import connectionStringInPortal from '../../img/connectionStringInPortal.png';
6-
import img1 from '../../img/test-1.png';
7-
import img2_1 from '../../img/test-2-1.png';
8-
import img2_2 from '../../img/test-2-2.png';
9-
import img2_3 from '../../img/test-2-3.png';
10-
import img3_1 from '../../img/test-3-1.png';
11-
import img3_2 from '../../img/test-3-2.png';
6+
import img1 from '../../img/step1.png';
7+
import img2_1 from '../../img/step2_1.png';
8+
import img2_2 from '../../img/step2_2.png';
9+
import img2_3 from '../../img/step2_3.png';
10+
import img3_1 from '../../img/step3_1.png';
11+
import img3_2 from '../../img/step3_2.png';
1212

1313
class HelpOverlay extends Component {
1414
constructor(props) {
@@ -17,13 +17,14 @@ class HelpOverlay extends Component {
1717
step: 0,
1818
numOfSteps: 3,
1919
subStep: 0,
20+
timeSpan: 3000,
2021
numOfSubStep: [3,3,2],
21-
offset: [[0,50,120],[0,90,140],[0,50]]
22+
offset: [[0,50,120],[0,70,120],[0,50]]
2223
};
2324
if(this.toggleInterval) {
2425
clearInterval(this.toggleInterval);
2526
}
26-
this.toggleInterval = setInterval(()=>{this.toggleStep();},5000);
27+
this.toggleInterval = setInterval(()=>{this.toggleStep();},this.state.timeSpan);
2728
}
2829

2930
nextStep = () => {
@@ -51,7 +52,7 @@ class HelpOverlay extends Component {
5152
if(this.toggleInterval) {
5253
clearInterval(this.toggleInterval);
5354
}
54-
this.toggleInterval = setInterval(()=>{this.toggleStep();},5000);
55+
this.toggleInterval = setInterval(()=>{this.toggleStep();},this.state.timeSpan);
5556
}
5657

5758
goToSubStep = (id) => {
@@ -122,7 +123,7 @@ class HelpOverlay extends Component {
122123
if(this.toggleInterval) {
123124
clearInterval(this.toggleInterval);
124125
}
125-
this.toggleInterval = setInterval(()=>{this.toggleStep();},5000);
126+
this.toggleInterval = setInterval(()=>{this.toggleStep();},this.state.timeSpan);
126127
}
127128
}
128129

@@ -178,7 +179,7 @@ class HelpOverlay extends Component {
178179
</div>
179180
<div className={`paragraph-container ${this.state.step === 1 ? '':'element-none'}`}>
180181
<div className={`paragraph ${this.state.subStep === 0 ? 'paragraph-selected':''}`} style={{transform:"translate(0,-"+this.state.offset[this.state.step][this.state.subStep]+"px"}}>
181-
1. In the Azure portal(https://portal.azure.com/), click New > Internet of Things > IoT Hub to provision a new IoT hub.
182+
1. In the <a target="_blank" href="https://portal.azure.com/">Azure portal</a>, click New > Internet of Things > IoT Hub to provision a new IoT hub.
182183
</div>
183184
<div className={`paragraph ${this.state.subStep === 1 ? 'paragraph-selected':''}`} style={{transform:"translate(0,-"+this.state.offset[this.state.step][this.state.subStep]+"px"}}>
184185
2. In the Device Explorer pane, click Add to add a device to your IoT hub.
@@ -209,6 +210,10 @@ class HelpOverlay extends Component {
209210
{this.state.step === this.state.numOfSteps - 1 ? "Got it" : "Next"}
210211
</div>
211212
</div>
213+
<div className="link-container">
214+
<a target="_blank" href="https://docs.microsoft.com/azure/iot-hub/iot-hub-raspberry-pi-web-simulator-get-started">See doc</a>
215+
<a target="_blank" href="https://github.com/Azure-Samples/raspberry-pi-web-simulator">View source</a>
216+
</div>
212217
</div>
213218
<div onWheel={this.changeSubStep} className="picture-instruction">
214219
<div className={`picture-container ${this.state.step === 0 ? '':'element-none'}`} >
@@ -228,10 +233,7 @@ class HelpOverlay extends Component {
228233
<div className={`picture-indicator ${this.state.step === 0 || this.state.numOfSubStep[this.state.step] <= 1 ? 'element-hide':''} ${this.state.subStep === 1 ? 'picture-indicator-selected':''}`} onClick={this.goToSubStep.bind(this,1)} />
229234
<div className={`picture-indicator ${this.state.step === 0 || this.state.numOfSubStep[this.state.step] <= 2 ? 'element-hide':''} ${this.state.subStep === 2 ? 'picture-indicator-selected':''}`} onClick={this.goToSubStep.bind(this,2)} />
230235
</div>
231-
<div className="link-container">
232-
<a target="_blank" href="https://docs.microsoft.com/azure/iot-hub/iot-hub-raspberry-pi-web-simulator-get-started">See doc</a>
233-
<a target="_blank" href="https://github.com/Azure-Samples/raspberry-pi-web-simulator">View source</a>
234-
</div>
236+
235237
</div>
236238
</div>
237239
</div>

src/img/step1.png

377 KB
Loading

src/img/step2_1.png

169 KB
Loading

src/img/step2_2.png

127 KB
Loading

src/img/step2_3.png

115 KB
Loading

src/img/step3_1.png

80 KB
Loading

src/img/step3_2.png

39.5 KB
Loading

src/img/test-1.png

-103 KB
Binary file not shown.

src/img/test-2-1.png

-108 KB
Binary file not shown.

0 commit comments

Comments
 (0)