Skip to content

Commit 67d00ef

Browse files
committed
Add mobile friendly-ness (excluding clock)
1 parent 528c826 commit 67d00ef

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

app/globals.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
--sans: "Rubik", Arial, Helvetica, sans-serif;
1111
--mono: "Space Mono", "Courier New", monospace;
12+
13+
--max-w-mobile: 900px;
1214
}
1315

1416
@media (prefers-color-scheme: dark) {
@@ -72,6 +74,12 @@ h1 {
7274
font-weight: 800;
7375
}
7476

77+
@media screen and (max-width: 900px) {
78+
h1 {
79+
font-size: 96;
80+
}
81+
}
82+
7583
h3 {
7684
font-size: 24px;
7785
font-weight: 500;

components/Card.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
background-color: var(--bg);
88
}
99

10+
@media screen and (max-width: 900px) {
11+
.card {
12+
gap: 16px;
13+
}
14+
}
1015
.card svg:nth-child(1) {
1116
fill: var(--accent);
1217
width: 48px;

styles/sections.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,21 @@ section {
1313
text-align: center;
1414
}
1515

16+
@media screen and (max-width: 900px) {
17+
section {
18+
padding: 16px;
19+
}
20+
}
21+
1622
section.grid {
1723
display: grid;
1824
gap: 16px;
19-
grid-template-columns: repeat(2, minmax(0, 1fr));
25+
grid-template-columns: minmax(0, 1fr);
26+
}
27+
28+
@media screen and (max-width: 900px) {
29+
section.grid {
30+
display: flex;
31+
flex-direction: column;
32+
}
2033
}

0 commit comments

Comments
 (0)