File tree Expand file tree Collapse file tree 7 files changed +516
-72
lines changed
Expand file tree Collapse file tree 7 files changed +516
-72
lines changed Original file line number Diff line number Diff line change 33 "version" : " 0.1.0" ,
44 "private" : true ,
55 "dependencies" : {
6+ "node-sass" : " 4.12.0" ,
67 "react" : " ^16.8.6" ,
78 "react-dom" : " ^16.8.6"
89 },
Original file line number Diff line number Diff line change 1- .App {
2- text-align : center;
3- }
4-
5- .App-logo {
6- animation : App-logo-spin infinite 20s linear;
7- height : 40vmin ;
8- pointer-events : none;
9- }
10-
11- .App-header {
12- background-color : # 282c34 ;
13- min-height : 100vh ;
14- display : flex;
15- flex-direction : column;
16- align-items : center;
17- justify-content : center;
18- font-size : calc (10px + 2vmin );
19- color : white;
20- }
21-
22- .App-link {
23- color : # 61dafb ;
24- }
25-
26- @keyframes App-logo-spin {
27- from {
28- transform : rotate (0deg );
29- }
30- to {
31- transform : rotate (360deg );
32- }
33- }
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import logo from './logo.svg' ;
32import './App.css' ;
43
4+ import HomePage from './homepage.component' ;
5+
56function App ( ) {
67 return (
7- < div className = "App" >
8- < header className = "App-header" >
9- < img src = { logo } className = "App-logo" alt = "logo" />
10- < p >
11- Edit < code > src/App.js</ code > and save to reload.
12- </ p >
13- < a
14- className = "App-link"
15- href = "https://reactjs.org"
16- target = "_blank"
17- rel = "noopener noreferrer"
18- >
19- Learn React
20- </ a >
21- </ header >
8+ < div >
9+ < HomePage />
2210 </ div >
2311 ) ;
2412}
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+
3+ import './homepage.styles.scss' ;
4+
5+ const HomePage = ( ) => (
6+ < div className = 'homepage' >
7+ < div className = 'directory-menu' >
8+ < div className = 'menu-item' >
9+ < div className = 'content' >
10+ < h1 className = 'title' > HATS</ h1 >
11+ < span className = 'subtitle' > SHOP NOW</ span >
12+ </ div >
13+ </ div >
14+ < div className = 'menu-item' >
15+ < div className = 'content' >
16+ < h1 className = 'title' > JACKETS</ h1 >
17+ < span className = 'subtitle' > SHOP NOW</ span >
18+ </ div >
19+ </ div >
20+ < div className = 'menu-item' >
21+ < div className = 'content' >
22+ < h1 className = 'title' > SNEAKERS</ h1 >
23+ < span className = 'subtitle' > SHOP NOW</ span >
24+ </ div >
25+ </ div >
26+ < div className = 'menu-item' >
27+ < div className = 'content' >
28+ < h1 className = 'title' > WOMENS</ h1 >
29+ < span className = 'subtitle' > SHOP NOW</ span >
30+ </ div >
31+ </ div >
32+ < div className = 'menu-item' >
33+ < div className = 'content' >
34+ < h1 className = 'title' > MENS</ h1 >
35+ < span className = 'subtitle' > SHOP NOW</ span >
36+ </ div >
37+ </ div >
38+ </ div >
39+ </ div >
40+ ) ;
41+
42+ export default HomePage ;
Original file line number Diff line number Diff line change 1+ .homepage {
2+ display : flex ;
3+ flex-direction : column ;
4+ align-items : center ;
5+ padding : 20px 80px ;
6+ }
7+
8+ .directory-menu {
9+ width : 100% ;
10+ display : flex ;
11+ flex-wrap : wrap ;
12+ justify-content : space-between ;
13+ }
14+
15+ .menu-item {
16+ min-width : 30% ;
17+ height : 240px ;
18+ flex : 1 1 auto ;
19+ display : flex ;
20+ align-items : center ;
21+ justify-content : center ;
22+ border : 1px solid black ;
23+ margin : 0 7.5px 15px ;
24+
25+ & :first-child {
26+ margin-right : 7.5px ;
27+ }
28+
29+ & :last-child {
30+ margin-left : 7.5px ;
31+ }
32+
33+ .content {
34+ height : 90px ;
35+ padding : 0 25px ;
36+ display : flex ;
37+ flex-direction : column ;
38+ align-items : center ;
39+ justify-content : center ;
40+ border : 1px solid black ;
41+
42+ .title {
43+ font-weight : bold ;
44+ margin-bottom : 6px ;
45+ font-size : 22px ;
46+ color : #4a4a4a ;
47+ }
48+
49+ .subtitle {
50+ font-weight : lighter ;
51+ font-size : 16px ;
52+ }
53+ }
54+ }
Original file line number Diff line number Diff line change @@ -2,11 +2,5 @@ import React from 'react';
22import ReactDOM from 'react-dom' ;
33import './index.css' ;
44import App from './App' ;
5- import * as serviceWorker from './serviceWorker' ;
65
76ReactDOM . render ( < App /> , document . getElementById ( 'root' ) ) ;
8-
9- // If you want your app to work offline and load faster, you can change
10- // unregister() to register() below. Note this comes with some pitfalls.
11- // Learn more about service workers: https://bit.ly/CRA-PWA
12- serviceWorker . unregister ( ) ;
You can’t perform that action at this time.
0 commit comments