Skip to content

Commit 5d669d8

Browse files
Adjust general styling
1 parent 8f93ea7 commit 5d669d8

File tree

7 files changed

+63
-60
lines changed

7 files changed

+63
-60
lines changed

components/Footer.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import Link from "next/link";
22
import footerStyles from "../styles/Footer.module.css";
3-
import layoutStyles from "../styles/Layout.module.css";
43
import { linksNav, linksSocial } from "../utils/links";
54

65
export default function Footer() {
76
return (
87
<footer className={footerStyles.footer}>
98
<div
10-
className={`${layoutStyles.widthContainer} ${footerStyles.container}`}
9+
className={footerStyles.container}
1110
>
1211
<div className={footerStyles.columnLeft}>
1312
<ul className={footerStyles.footerList}>
@@ -50,9 +49,11 @@ export default function Footer() {
5049
</div>
5150
</div>
5251
</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>
5657
</footer>
5758
);
5859
}

components/Layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function Layout({ children }) {
66
return (
77
<>
88
<Nav />
9-
<div className={`${styles.widthContainer} ${styles.container}`}>
9+
<div className={styles.container}>
1010
<main className={styles.main}>{children}</main>
1111
</div>
1212
<Footer />

components/Nav.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Link from "next/link";
22
import { useEffect, useState } from "react";
33
import styles from "../styles/Nav.module.css";
4-
import layoutStyles from "../styles/Layout.module.css";
54
import { linksNav } from "../utils/links";
65

76
export default function Nav() {
@@ -24,7 +23,7 @@ export default function Nav() {
2423
return (
2524
<header className={styles.header}>
2625
<div
27-
className={`${styles.navContainer} ${styles.row} ${layoutStyles.widthContainer}`}
26+
className={`${styles.navContainer} ${styles.row}`}
2827
>
2928
<div className={styles.align}>
3029
<Link href="/">

styles/Footer.module.css

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.footer {
22
width: 100%;
3+
background-color: #eaeaea;
34
}
45

56
.footerList {
@@ -8,10 +9,10 @@
89
}
910

1011
.container {
11-
padding: 1rem 0;
12-
margin: 1rem;
13-
border-top: 1px solid #666;
14-
border-bottom: 1px solid #666;
12+
border-bottom: 1px solid #bebebe;
13+
max-width: 80%;
14+
margin: 0 auto;
15+
padding: 2rem 0;
1516
}
1617

1718
.columnLeft {
@@ -34,10 +35,6 @@
3435
height: 4.5em;
3536
}
3637

37-
.subscribe {
38-
text-align: center;
39-
}
40-
4138
.subscribe h2 {
4239
margin-bottom: 0.8rem;
4340
font-size: 1.8rem;
@@ -53,6 +50,27 @@
5350
font-size: 1rem;
5451
color: #000;
5552
}
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+
}
5674

5775
.socialMedia {
5876
margin: 1.8rem 0 1rem;
@@ -64,6 +82,10 @@
6482
margin-left: 1rem;
6583
}
6684

85+
.socialMedia img {
86+
height: 2rem;
87+
}
88+
6789
.socialMedia img:hover {
6890
opacity: 65%;
6991
}
@@ -72,13 +94,14 @@
7294
font-size: 0.8rem;
7395
color: #696969;
7496
text-align: center;
97+
margin: 0 auto;
98+
width: 80%;
99+
padding: 0.5rem 0;
75100
}
76101

77102
@media (min-width: 578px) {
78103
.container {
79-
margin: 0 auto;
80104
display: flex;
81-
flex-direction: row;
82105
justify-content: space-between;
83106
}
84107

@@ -93,35 +116,16 @@
93116
flex-direction: column;
94117
}
95118

96-
.subscribe {
97-
text-align: left;
98-
}
99-
100119
.subscribe h2 {
101120
margin-top: 0.5rem;
102121
}
103122

104-
.subscribe input {
105-
height: 1.8rem;
106-
width: 65%;
107-
}
108-
109-
.subscribe button {
110-
height: 1.8rem;
111-
width: 30%;
112-
}
113-
114123
.socialMedia {
115124
justify-content: flex-end;
116125
margin: 1rem 1rem 0.5rem 0;
117126
}
118127

119-
.socialMedia img {
120-
height: 2.5rem;
121-
}
122-
123128
.copyright {
124-
margin: 1rem auto;
125129
text-align: left;
126130
}
127131
}

styles/Home.module.css

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
.divider {
2-
color: #000;
3-
background-color: #000;
4-
height: 1px;
1+
hr.divider {
2+
border-top: 1px solid #eaeaea;
53
width: 100%;
4+
margin: 4rem 0;
65
}
76

87
.title a {
@@ -19,18 +18,16 @@
1918
.title {
2019
margin: 0;
2120
line-height: 1.15;
22-
font-size: 4rem;
23-
}
24-
25-
.title {
21+
font-size: 2.5rem;
2622
text-align: center;
2723
}
2824

2925
.description {
3026
line-height: 1.5;
3127
font-size: 1.5rem;
3228
text-align: center;
33-
padding: 0 1rem;
29+
max-width: 90%;
30+
margin: 0 auto;
3431
}
3532

3633
.grid {
@@ -72,6 +69,13 @@
7269
line-height: 1.5;
7370
}
7471

72+
73+
@media (min-width: 1024px) {
74+
.title {
75+
font-size: 4rem;
76+
}
77+
}
78+
7579
@media (max-width: 600px) {
7680
.grid {
7781
width: 100%;

styles/Layout.module.css

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
.widthContainer {
2-
max-width: 80%;
3-
margin: 0 auto;
4-
}
5-
61
.container {
72
min-height: 100vh;
83
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;
136
}
147

158
.main {
169
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+
}
2216
}

styles/Nav.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.navContainer {
22
width: 80%;
33
position: relative;
4+
margin: 0 auto;
45
}
56

67
.header {

0 commit comments

Comments
 (0)