Create styles/Home.module.css
Browse files- styles/Home.module.css +87 -0
styles/Home.module.css
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.container {
|
2 |
+
padding: 0 2rem;
|
3 |
+
}
|
4 |
+
|
5 |
+
.main {
|
6 |
+
min-height: 100vh;
|
7 |
+
padding: 4rem 0;
|
8 |
+
flex: 1;
|
9 |
+
display: flex;
|
10 |
+
flex-direction: column;
|
11 |
+
justify-content: center;
|
12 |
+
align-items: center;
|
13 |
+
}
|
14 |
+
|
15 |
+
.footer {
|
16 |
+
display: flex;
|
17 |
+
flex: 1;
|
18 |
+
padding: 2rem 0;
|
19 |
+
border-top: 1px solid #eaeaea;
|
20 |
+
justify-content: center;
|
21 |
+
align-items: center;
|
22 |
+
}
|
23 |
+
|
24 |
+
.title a {
|
25 |
+
color: #0070f3;
|
26 |
+
text-decoration: none;
|
27 |
+
}
|
28 |
+
|
29 |
+
.title a:hover,
|
30 |
+
.title a:focus,
|
31 |
+
.title a:active {
|
32 |
+
text-decoration: underline;
|
33 |
+
}
|
34 |
+
|
35 |
+
.title {
|
36 |
+
margin: 0;
|
37 |
+
line-height: 1.15;
|
38 |
+
font-size: 4rem;
|
39 |
+
text-align: center;
|
40 |
+
}
|
41 |
+
|
42 |
+
.description {
|
43 |
+
margin: 4rem 0;
|
44 |
+
line-height: 1.5;
|
45 |
+
font-size: 1.5rem;
|
46 |
+
text-align: center;
|
47 |
+
}
|
48 |
+
|
49 |
+
.grid {
|
50 |
+
display: grid;
|
51 |
+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
|
52 |
+
gap: 20px; /* Space between cards */
|
53 |
+
max-width: 800px;
|
54 |
+
width: 100%;
|
55 |
+
margin-top: 3rem;
|
56 |
+
}
|
57 |
+
|
58 |
+
.card {
|
59 |
+
margin: 1rem;
|
60 |
+
padding: 1.5rem;
|
61 |
+
text-align: left;
|
62 |
+
color: inherit;
|
63 |
+
text-decoration: none;
|
64 |
+
border: 1px solid #eaeaea;
|
65 |
+
border-radius: 10px;
|
66 |
+
transition: color 0.15s ease, border-color 0.15s ease;
|
67 |
+
max-width: 300px; /* Max width for each card */
|
68 |
+
display: block; /* Make link fill the card */
|
69 |
+
}
|
70 |
+
|
71 |
+
.card:hover,
|
72 |
+
.card:focus,
|
73 |
+
.card:active {
|
74 |
+
color: #0070f3;
|
75 |
+
border-color: #0070f3;
|
76 |
+
}
|
77 |
+
|
78 |
+
.card h2 {
|
79 |
+
margin: 0 0 1rem 0;
|
80 |
+
font-size: 1.5rem;
|
81 |
+
}
|
82 |
+
|
83 |
+
.card p {
|
84 |
+
margin: 0;
|
85 |
+
font-size: 1.25rem;
|
86 |
+
line-height: 1.5;
|
87 |
+
}
|