File tree Expand file tree Collapse file tree 7 files changed +16
-12
lines changed Expand file tree Collapse file tree 7 files changed +16
-12
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" ;
3
4
import { linksNav , linksSocial } from "../utils/links" ;
4
5
5
6
export default function Footer ( ) {
6
7
return (
7
8
< footer className = { footerStyles . footer } >
8
- < div className = { footerStyles . container } >
9
+ < div
10
+ className = { `${ layoutStyles . widthContainer } ${ footerStyles . container } ` }
11
+ >
9
12
< div className = { footerStyles . columnLeft } >
10
13
< ul className = { footerStyles . footerList } >
11
14
{ linksNav . map ( ( link ) => (
@@ -47,7 +50,7 @@ export default function Footer() {
47
50
</ div >
48
51
</ div >
49
52
</ div >
50
- < p className = { footerStyles . copyright } >
53
+ < p className = { ` ${ layoutStyles . widthContainer } ${ footerStyles . copyright } ` } >
51
54
Web Dev Path 2021. All rights reserved.
52
55
</ p >
53
56
</ footer >
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 . container } >
9
+ < div className = { ` ${ styles . widthContainer } ${ 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" ;
4
5
5
6
export default function Nav ( ) {
6
7
const [ active , setActive ] = useState ( false ) ;
@@ -21,7 +22,9 @@ export default function Nav() {
21
22
22
23
return (
23
24
< header className = { styles . header } >
24
- < div className = { `${ styles . navContainer } ${ styles . row } ` } >
25
+ < div
26
+ className = { `${ styles . navContainer } ${ styles . row } ${ layoutStyles . widthContainer } ` }
27
+ >
25
28
< div className = { styles . align } >
26
29
< Link href = "/" >
27
30
< img
Original file line number Diff line number Diff line change 76
76
77
77
@media (min-width : 578px ) {
78
78
.container {
79
- max-width : 800px ;
80
79
margin : 0 auto;
81
80
display : flex;
82
81
flex-direction : row;
122
121
}
123
122
124
123
.copyright {
125
- max-width : 800px ;
126
- margin : 0 auto;
127
- margin-top : 1rem ;
128
- margin-bottom : 1rem ;
124
+ margin : 1rem auto;
129
125
text-align : left;
130
126
}
131
127
}
Original file line number Diff line number Diff line change 39
39
justify-content : center;
40
40
flex-wrap : wrap;
41
41
42
- max-width : 800px ;
43
42
margin-top : 3rem ;
44
43
}
45
44
Original file line number Diff line number Diff line change
1
+ .widthContainer {
2
+ max-width : 80% ;
3
+ margin : 0 auto;
4
+ }
5
+
1
6
.container {
2
7
min-height : 100vh ;
3
8
padding : 0 0.5rem ;
Original file line number Diff line number Diff line change 1
1
.navContainer {
2
2
width : 80% ;
3
- max-width : 800px ;
4
- margin : 0 auto;
5
3
position : relative;
6
4
}
7
5
You can’t perform that action at this time.
0 commit comments