@@ -73,7 +73,7 @@ If you're curious about the **sample apps** we have published for inspiration:
73
73
[Calculator app]: https://github.com/microsoft/react-native-windows-samples/tree/main/samples/Calculator
74
74
[ToDos Feed app]: https://github.com/microsoft/react-native-windows-samples/tree/main/samples/TodosFeed
75
75
[Windows AppConsult blog]: https://techcommunity.microsoft.com/t5/Windows-Dev-AppConsult/Getting-started-with-React-Native-for-Windows/ba-p/912093
76
- `
76
+ ` ,
77
77
} ;
78
78
79
79
class Index extends React . Component {
@@ -83,54 +83,83 @@ class Index extends React.Component {
83
83
84
84
const Heading = ( { text } ) => < h2 className = "Heading" > { text } </ h2 > ;
85
85
86
- const GetStartedButton = ( { pageName, platformName} ) => (
86
+ const GetStartedButton = ( { pageName, platformName } ) => (
87
87
< a
88
88
className = "ActionButton primary"
89
89
href = { `${ baseUrl } docs/${ pageName } ` }
90
90
target = "_self"
91
91
>
92
- < b style = { { fontSize : 24 } } > Get started with { platformName } </ b >
92
+ < b style = { { fontSize : 24 } } > Get started with { platformName } </ b >
93
93
</ a >
94
94
) ;
95
95
96
- const VideoCardItem = ( { videolength, videotitle, videotype, videodifficulty, speakername, imgurl} ) => (
96
+ const VideoCardItem = ( {
97
+ videolength,
98
+ videotitle,
99
+ videotype,
100
+ videodifficulty,
101
+ speakername,
102
+ imgurl,
103
+ } ) => (
97
104
< div className = "CenterContent" >
98
- < div className = "videocard" style = { { maxHeight : 380 } } >
99
- < div style = { { position : 'relative' } } >
100
- < div style = { { maxWidth : '100%' , maxHeight : '100%' } } >
101
- < img src = { imgurl } alt = "videoimg" />
102
- </ div >
103
- < div className = "videocardlengthtip" >
104
- < div >
105
- < div className = "videocardtipbackground" >
106
- < div >
107
- < img src = "./img/homepage/timeicon.png" alt = "timeicon" />
108
- </ div >
109
- < div >
110
- < p style = { { color : '#fff' , marginLeft : 8 , marginTop : 4 , fontSize : 14 } } > { videolength } </ p >
111
- </ div >
105
+ < div className = "videocard" style = { { maxHeight : 380 } } >
106
+ < div style = { { position : "relative" } } >
107
+ < div style = { { maxWidth : "100%" , maxHeight : "100%" } } >
108
+ < img src = { imgurl } alt = "videoimg" />
109
+ </ div >
110
+ < div className = "videocardlengthtip" >
111
+ < div >
112
+ < div className = "videocardtipbackground" >
113
+ < div >
114
+ < img src = "./img/homepage/timeicon.png" alt = "timeicon" />
115
+ </ div >
116
+ < div >
117
+ < p
118
+ style = { {
119
+ color : "#fff" ,
120
+ marginLeft : 8 ,
121
+ marginTop : 4 ,
122
+ fontSize : 14 ,
123
+ } }
124
+ >
125
+ { videolength }
126
+ </ p >
112
127
</ div >
113
128
</ div >
114
129
</ div >
115
130
</ div >
116
- < div className = "videocardcontent" >
117
- < div className = "videocardheader" >
118
- < p style = { { fontsize : 46 , fontWeight : 700 } } > { videotitle } </ p >
119
- < div className = "videocardinfo" >
120
- < p style = { { fontSize : 14 } } > { videotype } </ p >
121
- < div className = "subtitledot" />
122
- < p style = { { fontSize : 14 } } > { videodifficulty } </ p >
123
- </ div >
124
- </ div >
125
- < div className = "videocarddriverinfo" style = { { color : '#0e53bd' } } >
126
- < a href = { "https://twitter.com/" + speakername } >
127
- < div className = "column" style = { { marginRight : - 130 , marginLeft : - 15 } } >
128
- < img style = { { borderRadius : '50%' , width : '32px' , height : '32px' } } src = { "https://avatars.io/twitter/" + speakername } alt = "speakericon" />
129
- </ div >
130
- < div className = "column" style = { { marginTop : 5 } } > @{ speakername } </ div >
131
- </ a >
131
+ </ div >
132
+ < div className = "videocardcontent" >
133
+ < div className = "videocardheader" >
134
+ < p style = { { fontsize : 46 , fontWeight : 700 } } > { videotitle } </ p >
135
+ < div className = "videocardinfo" >
136
+ < p style = { { fontSize : 14 } } > { videotype } </ p >
137
+ < div className = "subtitledot" />
138
+ < p style = { { fontSize : 14 } } > { videodifficulty } </ p >
132
139
</ div >
133
140
</ div >
141
+ < div className = "videocarddriverinfo" style = { { color : "#0e53bd" } } >
142
+ < a href = { "https://twitter.com/" + speakername } >
143
+ < div
144
+ className = "column"
145
+ style = { { marginRight : - 130 , marginLeft : - 15 } }
146
+ >
147
+ < img
148
+ style = { {
149
+ borderRadius : "50%" ,
150
+ width : "32px" ,
151
+ height : "32px" ,
152
+ } }
153
+ src = { "https://avatars.io/twitter/" + speakername }
154
+ alt = "speakericon"
155
+ />
156
+ </ div >
157
+ < div className = "column" style = { { marginTop : 5 } } >
158
+ @{ speakername }
159
+ </ div >
160
+ </ a >
161
+ </ div >
162
+ </ div >
134
163
</ div >
135
164
</ div >
136
165
) ;
@@ -222,9 +251,9 @@ class Index extends React.Component {
222
251
223
252
const Intro = ( ) => (
224
253
< div background = "light" className = "SmallSection" >
225
- < div className = "CenterContent" style = { { paddingTop : - 150 } } >
226
- < MarkdownBlock > { textContent . intro } </ MarkdownBlock >
227
- </ div >
254
+ < div className = "CenterContent" style = { { paddingTop : - 150 } } >
255
+ < MarkdownBlock > { textContent . intro } </ MarkdownBlock >
256
+ </ div >
228
257
</ div >
229
258
) ;
230
259
@@ -233,15 +262,27 @@ class Index extends React.Component {
233
262
< div className = "content" >
234
263
< div className = "row" >
235
264
< div className = "column" >
236
- < img style = { { maxWidth : '200%' , marginLeft : - 300 , marginTop : - 70 , marginBottom : - 70 } } src = "./img/homepage/native_and_js_windows_cropped.png" alt = "rnw_cropped" />
265
+ < img
266
+ style = { {
267
+ maxWidth : "200%" ,
268
+ marginLeft : - 300 ,
269
+ marginTop : - 70 ,
270
+ marginBottom : - 70 ,
271
+ } }
272
+ src = "./img/homepage/native_and_js_windows_cropped.png"
273
+ alt = "rnw_cropped"
274
+ />
237
275
</ div >
238
276
< div className = "column" >
239
277
< Heading text = "Build for Windows" />
240
- < GitHubButton />
241
- < div style = { { marginBottom : 35 } } >
278
+ < GitHubButton />
279
+ < div style = { { marginBottom : 35 } } >
242
280
< MarkdownBlock > { textContent . windowsintro } </ MarkdownBlock >
243
281
</ div >
244
- < GetStartedButton pageName = "getting-started" platformName = "Windows" />
282
+ < GetStartedButton
283
+ pageName = "getting-started"
284
+ platformName = "Windows"
285
+ />
245
286
</ div >
246
287
</ div >
247
288
</ div >
@@ -254,14 +295,21 @@ class Index extends React.Component {
254
295
< div className = "row" >
255
296
< div className = "column" >
256
297
< Heading text = "Build for macOS" />
257
- < GitHubButtonmacOS />
258
- < div style = { { marginBottom : 35 } } >
298
+ < GitHubButtonmacOS />
299
+ < div style = { { marginBottom : 35 } } >
259
300
< MarkdownBlock > { textContent . macintro } </ MarkdownBlock >
260
301
</ div >
261
- < GetStartedButton pageName = "rnm-getting-started" platformName = "macOS" />
302
+ < GetStartedButton
303
+ pageName = "rnm-getting-started"
304
+ platformName = "macOS"
305
+ />
262
306
</ div >
263
307
< div className = "column" >
264
- < img style = { { maxWidth : '200%' , marginTop : - 70 , marginBottom : - 70 } } src = "./img/homepage/native_and_js_mac_cropped.png" alt = "rnw_cropped" />
308
+ < img
309
+ style = { { maxWidth : "200%" , marginTop : - 70 , marginBottom : - 70 } }
310
+ src = "./img/homepage/native_and_js_mac_cropped.png"
311
+ alt = "rnw_cropped"
312
+ />
265
313
</ div >
266
314
</ div >
267
315
</ div >
@@ -279,10 +327,17 @@ class Index extends React.Component {
279
327
280
328
const Tutorials = ( ) => (
281
329
< Section background = "tint" >
282
- < div className = "CenterContent" style = { { marginTop : - 50 } } >
330
+ < div className = "CenterContent" style = { { marginTop : - 50 } } >
283
331
< div >
284
- < a href = "videos" > < h1 style = { { textAlign : 'center' , color : '#0e53bd' } } > Take Your App Further</ h1 > </ a >
285
- < p style = { { textAlign : 'center' , marginTop : - 10 } } > Speed up development with videos on how to build React Native apps for Windows and macOS.</ p >
332
+ < a href = "videos" >
333
+ < h1 style = { { textAlign : "center" , color : "#0e53bd" } } >
334
+ Take Your App Further
335
+ </ h1 >
336
+ </ a >
337
+ < p style = { { textAlign : "center" , marginTop : - 10 } } >
338
+ Speed up development with videos on how to build React Native apps
339
+ for Windows and macOS.
340
+ </ p >
286
341
287
342
< div className = "row" >
288
343
< div className = "column" >
@@ -293,8 +348,9 @@ class Index extends React.Component {
293
348
videotype = "Walkthrough"
294
349
videodifficulty = "Beginner"
295
350
speakername = "alloy"
296
- imgurl = "./img/homepage/eloy_rn4m_preview_full.png" />
297
- </ a >
351
+ imgurl = "./img/homepage/eloy_rn4m_preview_full.png"
352
+ />
353
+ </ a >
298
354
</ div >
299
355
< div className = "column" >
300
356
< a href = { baseUrl + "videos" } >
@@ -304,8 +360,9 @@ class Index extends React.Component {
304
360
videotype = "Type of Video"
305
361
videodifficulty = "Difficulty"
306
362
speakername = "reactwindows"
307
- imgurl = "./img/homepage/video_learning_image-small.png" />
308
- </ a >
363
+ imgurl = "./img/homepage/video_learning_image-small.png"
364
+ />
365
+ </ a >
309
366
</ div >
310
367
</ div >
311
368
</ div >
@@ -316,9 +373,9 @@ class Index extends React.Component {
316
373
return (
317
374
< div className = "homepage" >
318
375
< HeaderHero />
319
- < Intro />
320
- < WindowsIntro />
321
- < MacIntro />
376
+ < Intro />
377
+ < WindowsIntro />
378
+ < MacIntro />
322
379
{ /*<Tutorials/>*/ }
323
380
< About />
324
381
</ div >
0 commit comments