1
1
import Head from "next/head" ;
2
+ import styles from "../styles/Home.module.css" ;
2
3
3
4
export default function Home ( ) {
4
5
return (
5
- < div className = " container" >
6
+ < div className = { styles . container } >
6
7
< Head >
7
8
< title > Web Dev Path</ title >
8
9
< link rel = "icon" href = "/favicon.ico" />
9
10
</ Head >
10
11
< main >
11
- < h1 className = " title" > < Web Dev wannabe? /></ h1 >
12
- < div className = " description" >
12
+ < h1 className = { styles . title } > < Web Dev wannabe? /></ h1 >
13
+ < div className = { styles . description } >
13
14
< p >
14
15
Hold our hand and enjoy the road to learn how to start a new
15
16
project, the magic behind Github while working in a team
16
17
environment, and much more...
17
18
</ p >
18
19
</ div >
19
- < hr className = " divider" />
20
+ < hr className = { styles . divider } />
20
21
21
- < div className = " grid" >
22
- < a href = "https://nextjs.org/docs" className = " card" >
22
+ < div className = { styles . grid } >
23
+ < a href = "https://nextjs.org/docs" className = { styles . card } >
23
24
< h3 > Documentation →</ h3 >
24
25
< p > Find in-depth information about Next.js features and API.</ p >
25
26
</ a >
26
27
27
- < a href = "https://nextjs.org/learn" className = " card" >
28
+ < a href = "https://nextjs.org/learn" className = { styles . card } >
28
29
< h3 > Learn →</ h3 >
29
30
< p > Learn about Next.js in an interactive course with quizzes!</ p >
30
31
</ a >
31
32
32
33
< a
33
34
href = "https://github.com/vercel/next.js/tree/master/examples"
34
- className = " card"
35
+ className = { styles . card }
35
36
>
36
37
< h3 > Examples →</ h3 >
37
38
< p > Discover and deploy boilerplate example Next.js projects.</ p >
38
39
</ a >
39
40
40
41
< a
41
42
href = "https://vercel.com/import?filter=next.js& utm_source = create - next - app & utm_medium = default - template & utm_campaign = create - next - app "
42
- className = " card"
43
+ className = { styles . card }
43
44
>
44
45
< h3 > Deploy →</ h3 >
45
46
< p >
@@ -61,13 +62,6 @@ export default function Home() {
61
62
</ footer >
62
63
63
64
< style jsx > { `
64
- .divider {
65
- color: #000;
66
- background-color: #000;
67
- height: 1px;
68
- width: 100%;
69
- }
70
-
71
65
footer {
72
66
width: 100%;
73
67
height: 100px;
@@ -92,34 +86,6 @@ export default function Home() {
92
86
text-decoration: none;
93
87
}
94
88
95
- .title a {
96
- color: #0070f3;
97
- text-decoration: none;
98
- }
99
-
100
- .title a:hover,
101
- .title a:focus,
102
- .title a:active {
103
- text-decoration: underline;
104
- }
105
-
106
- .title {
107
- margin: 0;
108
- line-height: 1.15;
109
- font-size: 4rem;
110
- }
111
-
112
- .title {
113
- text-align: center;
114
- }
115
-
116
- .description {
117
- line-height: 1.5;
118
- font-size: 1.5rem;
119
- max-width: 700px;
120
- padding: 0 1rem;
121
- }
122
-
123
89
code {
124
90
background: #fafafa;
125
91
border-radius: 5px;
@@ -129,56 +95,9 @@ export default function Home() {
129
95
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
130
96
}
131
97
132
- .grid {
133
- display: flex;
134
- align-items: center;
135
- justify-content: center;
136
- flex-wrap: wrap;
137
-
138
- max-width: 800px;
139
- margin-top: 3rem;
140
- }
141
-
142
- .card {
143
- margin: 1rem;
144
- flex-basis: 45%;
145
- padding: 1.5rem;
146
- text-align: left;
147
- color: inherit;
148
- text-decoration: none;
149
- border: 1px solid #eaeaea;
150
- border-radius: 10px;
151
- transition: color 0.15s ease, border-color 0.15s ease;
152
- }
153
-
154
- .card:hover,
155
- .card:focus,
156
- .card:active {
157
- color: #0070f3;
158
- border-color: #0070f3;
159
- }
160
-
161
- .card h3 {
162
- margin: 0 0 1rem 0;
163
- font-size: 1.5rem;
164
- }
165
-
166
- .card p {
167
- margin: 0;
168
- font-size: 1.25rem;
169
- line-height: 1.5;
170
- }
171
-
172
98
.logo {
173
99
height: 1em;
174
100
}
175
-
176
- @media (max-width: 600px) {
177
- .grid {
178
- width: 100%;
179
- flex-direction: column;
180
- }
181
- }
182
101
` } </ style >
183
102
</ div >
184
103
) ;
0 commit comments