File tree Expand file tree Collapse file tree 7 files changed +63
-60
lines changed Expand file tree Collapse file tree 7 files changed +63
-60
lines changed Original file line number Diff line number Diff line change 1
1
import Link from "next/link" ;
2
2
import footerStyles from "../styles/Footer.module.css" ;
3
- import layoutStyles from "../styles/Layout.module.css" ;
4
3
import { linksNav , linksSocial } from "../utils/links" ;
5
4
6
5
export default function Footer ( ) {
7
6
return (
8
7
< footer className = { footerStyles . footer } >
9
8
< div
10
- className = { ` ${ layoutStyles . widthContainer } ${ footerStyles . container } ` }
9
+ className = { footerStyles . container }
11
10
>
12
11
< div className = { footerStyles . columnLeft } >
13
12
< ul className = { footerStyles . footerList } >
@@ -50,9 +49,11 @@ export default function Footer() {
50
49
</ div >
51
50
</ div >
52
51
</ div >
53
- < p className = { `${ layoutStyles . widthContainer } ${ footerStyles . copyright } ` } >
54
- Web Dev Path 2021. All rights reserved.
55
- </ p >
52
+ < div className = { footerStyles . copyright } >
53
+ < p >
54
+ Web Dev Path 2021. All rights reserved.
55
+ </ p >
56
+ </ div >
56
57
</ footer >
57
58
) ;
58
59
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export default function Layout({ children }) {
6
6
return (
7
7
< >
8
8
< Nav />
9
- < div className = { ` ${ styles . widthContainer } ${ styles . container } ` } >
9
+ < div className = { styles . container } >
10
10
< main className = { styles . main } > { children } </ main >
11
11
</ div >
12
12
< Footer />
Original file line number Diff line number Diff line change 1
1
import Link from "next/link" ;
2
2
import { useEffect , useState } from "react" ;
3
3
import styles from "../styles/Nav.module.css" ;
4
- import layoutStyles from "../styles/Layout.module.css" ;
5
4
import { linksNav } from "../utils/links" ;
6
5
7
6
export default function Nav ( ) {
@@ -24,7 +23,7 @@ export default function Nav() {
24
23
return (
25
24
< header className = { styles . header } >
26
25
< div
27
- className = { `${ styles . navContainer } ${ styles . row } ${ layoutStyles . widthContainer } ` }
26
+ className = { `${ styles . navContainer } ${ styles . row } ` }
28
27
>
29
28
< div className = { styles . align } >
30
29
< Link href = "/" >
Original file line number Diff line number Diff line change 1
1
.footer {
2
2
width : 100% ;
3
+ background-color : # eaeaea ;
3
4
}
4
5
5
6
.footerList {
8
9
}
9
10
10
11
.container {
11
- padding : 1 rem 0 ;
12
- margin : 1 rem ;
13
- border-top : 1 px solid # 666 ;
14
- border-bottom : 1 px solid # 666 ;
12
+ border-bottom : 1 px solid # bebebe ;
13
+ max-width : 80 % ;
14
+ margin : 0 auto ;
15
+ padding : 2 rem 0 ;
15
16
}
16
17
17
18
.columnLeft {
34
35
height : 4.5em ;
35
36
}
36
37
37
- .subscribe {
38
- text-align : center;
39
- }
40
-
41
38
.subscribe h2 {
42
39
margin-bottom : 0.8rem ;
43
40
font-size : 1.8rem ;
53
50
font-size : 1rem ;
54
51
color : # 000 ;
55
52
}
53
+ .subscribe input {
54
+ height : 2.4rem ;
55
+ width : 75% ;
56
+ border-radius : 5px 0 0 5px ;
57
+ text-indent : 5% ;
58
+ border : 1px solid # bebebe ;
59
+ }
60
+
61
+ .subscribe button {
62
+ height : 2.4rem ;
63
+ width : 25% ;
64
+ border-radius : 0 5px 5px 0 ;
65
+ background-color : # 696969 ;
66
+ color : # fff ;
67
+ border : 1px solid # 696969 ;
68
+ text-transform : uppercase;
69
+ }
70
+
71
+ .subscribe button : hover {
72
+ opacity : 0.6 ;
73
+ }
56
74
57
75
.socialMedia {
58
76
margin : 1.8rem 0 1rem ;
64
82
margin-left : 1rem ;
65
83
}
66
84
85
+ .socialMedia img {
86
+ height : 2rem ;
87
+ }
88
+
67
89
.socialMedia img : hover {
68
90
opacity : 65% ;
69
91
}
72
94
font-size : 0.8rem ;
73
95
color : # 696969 ;
74
96
text-align : center;
97
+ margin : 0 auto;
98
+ width : 80% ;
99
+ padding : 0.5rem 0 ;
75
100
}
76
101
77
102
@media (min-width : 578px ) {
78
103
.container {
79
- margin : 0 auto;
80
104
display : flex;
81
- flex-direction : row;
82
105
justify-content : space-between;
83
106
}
84
107
93
116
flex-direction : column;
94
117
}
95
118
96
- .subscribe {
97
- text-align : left;
98
- }
99
-
100
119
.subscribe h2 {
101
120
margin-top : 0.5rem ;
102
121
}
103
122
104
- .subscribe input {
105
- height : 1.8rem ;
106
- width : 65% ;
107
- }
108
-
109
- .subscribe button {
110
- height : 1.8rem ;
111
- width : 30% ;
112
- }
113
-
114
123
.socialMedia {
115
124
justify-content : flex-end;
116
125
margin : 1rem 1rem 0.5rem 0 ;
117
126
}
118
127
119
- .socialMedia img {
120
- height : 2.5rem ;
121
- }
122
-
123
128
.copyright {
124
- margin : 1rem auto;
125
129
text-align : left;
126
130
}
127
131
}
Original file line number Diff line number Diff line change 1
- .divider {
2
- color : # 000 ;
3
- background-color : # 000 ;
4
- height : 1px ;
1
+ hr .divider {
2
+ border-top : 1px solid # eaeaea ;
5
3
width : 100% ;
4
+ margin : 4rem 0 ;
6
5
}
7
6
8
7
.title a {
19
18
.title {
20
19
margin : 0 ;
21
20
line-height : 1.15 ;
22
- font-size : 4rem ;
23
- }
24
-
25
- .title {
21
+ font-size : 2.5rem ;
26
22
text-align : center;
27
23
}
28
24
29
25
.description {
30
26
line-height : 1.5 ;
31
27
font-size : 1.5rem ;
32
28
text-align : center;
33
- padding : 0 1rem ;
29
+ max-width : 90% ;
30
+ margin : 0 auto;
34
31
}
35
32
36
33
.grid {
72
69
line-height : 1.5 ;
73
70
}
74
71
72
+
73
+ @media (min-width : 1024px ) {
74
+ .title {
75
+ font-size : 4rem ;
76
+ }
77
+ }
78
+
75
79
@media (max-width : 600px ) {
76
80
.grid {
77
81
width : 100% ;
Original file line number Diff line number Diff line change 1
- .widthContainer {
2
- max-width : 80% ;
3
- margin : 0 auto;
4
- }
5
-
6
1
.container {
7
2
min-height : 100vh ;
8
3
padding : 0 0.5rem ;
9
- display : flex;
10
- flex-direction : column;
11
- justify-content : flex-start;
12
- align-items : center;
4
+ width : 100% ;
5
+ margin : 0 auto;
13
6
}
14
7
15
8
.main {
16
9
padding : 3rem 0 ;
17
- flex : 1 ;
18
- display : flex;
19
- flex-direction : column;
20
- justify-content : flex-start;
21
- align-items : center;
10
+ }
11
+
12
+ @media (min-width : 1024px ){
13
+ .container {
14
+ width : 80% ;
15
+ }
22
16
}
Original file line number Diff line number Diff line change 1
1
.navContainer {
2
2
width : 80% ;
3
3
position : relative;
4
+ margin : 0 auto;
4
5
}
5
6
6
7
.header {
You can’t perform that action at this time.
0 commit comments