Skip to content

Commit 2cd933f

Browse files
Develop: added 2 capitals and fix header logo size (#167)
2 parents 9e72817 + fe5ad10 commit 2cd933f

File tree

6 files changed

+466
-89
lines changed

6 files changed

+466
-89
lines changed

src/assets/styles/capital.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
.location-grid {
157157
display: grid;
158158
gap: 1.5rem;
159-
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
159+
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
160160
align-items: start;
161161
}
162162

@@ -369,7 +369,7 @@
369369
/* Responsive Design */
370370
@media (max-width: 768px) {
371371
.location-grid {
372-
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
372+
grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
373373
}
374374

375375
.section-header {
@@ -413,4 +413,4 @@
413413
.search-container {
414414
max-width: 100%;
415415
}
416-
}
416+
}

src/assets/styles/header.css

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@
2424
height: 3rem;
2525
}
2626

27-
span {
27+
p {
2828
font-size: 1.5rem;
2929
font-weight: 600;
30+
margin-inline-start: 1rem;
3031
color: var(--primary);
3132

32-
& em {
33+
& span {
3334
color: #6d8c3d;
3435
}
3536
}
@@ -39,10 +40,6 @@
3940
display: flex;
4041
align-items: center;
4142
text-decoration: none;
42-
43-
& span {
44-
margin-inline: 1rem;
45-
}
4643
}
4744

4845
.title {

src/components/Capital.astro

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ function getColorClass(index: number) {
5858
>
5959
<details>
6060
<summary title={state.name}>{state.name}</summary>
61-
<p title={state.capital}>{state.capital}</p>
61+
<p title={state.capital}>
62+
{state.capital}
63+
{state.multiple && (
64+
<span style={{ color: "grey" }} aria-label="capital in winter">
65+
| ❄️ {state.multiple.winter}
66+
</span>
67+
)}
68+
</p>
6269
</details>
6370
</article>
6471
))
@@ -82,7 +89,14 @@ function getColorClass(index: number) {
8289
>
8390
<details>
8491
<summary title={ut.name}>{ut.name}</summary>
85-
<p title={ut.capital}>{ut.capital}</p>
92+
<p title={ut.capital}>
93+
{ut.capital}
94+
{ut.multiple && (
95+
<span style={{ color: "grey" }} aria-label="capital in winter">
96+
| ❄️ {ut.multiple.winter}
97+
</span>
98+
)}
99+
</p>
86100
</details>
87101
</article>
88102
))

0 commit comments

Comments
 (0)