File tree Expand file tree Collapse file tree 7 files changed +102
-55
lines changed
Expand file tree Collapse file tree 7 files changed +102
-55
lines changed Original file line number Diff line number Diff line change 11import React , { FunctionComponent } from 'react' ;
22
33import App from './App' ;
4- import Welcome from './components /Welcome' ;
4+ import Welcome from './screens /Welcome' ;
55
66const Root : FunctionComponent = ( ) => (
77 < App >
Original file line number Diff line number Diff line change 1+ import React , { FunctionComponent } from 'react' ;
2+
3+ import s from './styles.scss' ;
4+
5+ const Header : FunctionComponent < { } > = ( ) => (
6+ < header className = { s . header } >
7+ < div className = { s . container } >
8+ < h1 className = { s . title } > React Typescript Starter</ h1 >
9+ < a
10+ className = { s . githubLogo }
11+ href = "https://github.com/vtereshyn/react-typescript-eslint-starter"
12+ >
13+ < img src = "assets/img/welcome-page/github.svg" alt = "Github" />
14+ </ a >
15+ </ div >
16+ </ header >
17+ ) ;
18+
19+ export default Header ;
Original file line number Diff line number Diff line change 1+ .header {
2+ padding : 20px ;
3+ box-shadow : 0 1px 2px 0 rgba (212 , 212 , 212 , 0.5 );
4+
5+ .container {
6+ display : flex ;
7+ justify-content : space-between ;
8+ align-items : center ;
9+ }
10+
11+ .title {
12+ font-size : 1.6em ;
13+ }
14+
15+ .githubLogo {
16+ display : block ;
17+ width : 35px ;
18+ height : 35px ;
19+
20+ img {
21+ width : 100% ;
22+ max-width : 100% ;
23+ }
24+ }
25+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import React , { FunctionComponent , Fragment } from 'react' ;
2+
3+ import Header from '../../components/Header' ;
4+
5+ import s from './styles.scss' ;
6+
7+ const Welcome : FunctionComponent < { } > = ( ) => (
8+ < Fragment >
9+ < Header />
10+ < section className = { s . welcome } >
11+ < div className = { s . wrapper } >
12+ < div className = { s . container } >
13+ < figure className = { s . logo } >
14+ < img src = "assets/img/welcome-page/tsx-logo.svg" alt = "Logo" />
15+ </ figure >
16+
17+ < section className = { s . logos } >
18+ < figure className = { s . eslint } >
19+ < img src = "assets/img/welcome-page/eslint.svg" alt = "Logo" />
20+ </ figure >
21+ < figure className = { s . babel } >
22+ < img src = "assets/img/welcome-page/babel.svg" alt = "Logo" />
23+ </ figure >
24+ < figure className = { s . typescript } >
25+ < img src = "assets/img/welcome-page/ts.svg" alt = "Logo" />
26+ </ figure >
27+ </ section >
28+
29+ < h3 className = { s . instructionsTitle } > To start:</ h3 >
30+ < code >
31+ < p > npm install</ p >
32+ < p > npm run dev</ p >
33+ </ code >
34+
35+ < h3 className = { s . instructionsTitle } > To build:</ h3 >
36+ < code >
37+ < p > npm run build</ p >
38+ </ code >
39+
40+ < h3 className = { s . instructionsTitle } > To lint:</ h3 >
41+ < code >
42+ < p > npm run lint</ p >
43+ < p > npm run lint-fix</ p >
44+ </ code >
45+ </ div >
46+ </ div >
47+ </ section >
48+ </ Fragment >
49+ ) ;
50+
51+ export default Welcome ;
Original file line number Diff line number Diff line change 11$welcome-page-text-color : #294E80 ;
22
33.welcome {
4- min-height : 100vh ;
4+ min-height : calc ( 100vh - 75 px ) ;
55 display : flex ;
66 align-items : center ;
7+ overflow : auto ;
78
89 .wrapper {
910 margin : 0 auto ;
@@ -25,12 +26,6 @@ $welcome-page-text-color: #294E80;
2526 }
2627 }
2728
28- .title {
29- font-size : 2.5em ;
30- color : $welcome-page-text-color ;
31- margin : 0 0 25px ;
32- }
33-
3429 .instructionsTitle {
3530 font-size : 1.3em ;
3631 color : $welcome-page-text-color ;
You can’t perform that action at this time.
0 commit comments