Skip to content

Commit 6721e54

Browse files
committed
[RZB-250021]: fixed height in mobile and desktop
1 parent edb0de1 commit 6721e54

File tree

6 files changed

+171
-53
lines changed

6 files changed

+171
-53
lines changed

src/assets/styles/board.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060

6161
@media (max-width: 768px) {
6262
.container__board {
63-
6463
& .board__list {
6564
padding: 0 clamp(0.5rem, 2vw, 1rem);
6665
grid-template-columns: 1fr;
@@ -71,9 +70,8 @@
7170

7271
@media (max-width: 480px) {
7372
.container__board {
74-
7573
& .board__list {
7674
padding: 0 0.5rem;
7775
}
7876
}
79-
}
77+
}

src/assets/styles/capital.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@
105105
margin-top: 6px;
106106
color: light-dark(#667eea, #06ffa5);
107107
}
108-
109108
}
110109

111110
/* Location Sections */
@@ -414,4 +413,4 @@
414413
.search-container {
415414
max-width: 100%;
416415
}
417-
}
416+
}

src/assets/styles/globals.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@
171171
min-height: 100vh;
172172
}
173173

174-
175-
176174
.layout {
177175
height: fit-content;
178176
max-height: 100dvh;
@@ -185,4 +183,4 @@
185183

186184
.m-0 {
187185
margin: 0;
188-
}
186+
}

src/components/GameCard.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ const { title, description, cardType, href } = Astro.props;
1616
</div>
1717
<h2 class="card-title">{title}</h2>
1818
<p class="card-description">{description}</p>
19-
</a>
19+
</a>

src/mappers/dataset.ts

Lines changed: 151 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ const generalData = [
262262
{ letter: "Z", description: "A black and white striped animal.", text: "Zebra", emoji: "🦓" }
263263
];
264264

265-
266265
export const GENERAL_DATASETS: AlphabetDataset = {
267266
category: "general",
268267
description: "General knowledge about the English alphabet",
@@ -277,30 +276,150 @@ export const GENERAL_DATASETS: AlphabetDataset = {
277276
/*Greek*/
278277

279278
const greekData = [
280-
{ letter: "A", description: "First letter of the Greek alphabet. Sound: 'a' as in father.", text: "Alpha (Α α)", emoji: "A" },
281-
{ letter: "B", description: "Second letter of the Greek alphabet. Sound: 'v' as in vase (Modern Greek).", text: "Beta (Β β)", emoji: "Β" },
282-
{ letter: "G", description: "Third letter of the Greek alphabet. Sound: 'g' as in go, or 'y' as in yes.", text: "Gamma (Γ γ)", emoji: "Γ" },
283-
{ letter: "D", description: "Fourth letter of the Greek alphabet. Sound: 'th' as in then (Modern Greek).", text: "Delta (Δ δ)", emoji: "Δ" },
284-
{ letter: "E", description: "Fifth letter of the Greek alphabet. Sound: 'e' as in met.", text: "Epsilon (Ε ε)", emoji: "Ε" },
285-
{ letter: "Z", description: "Sixth letter of the Greek alphabet. Sound: 'z' as in zoo.", text: "Zeta (Ζ ζ)", emoji: "Ζ" },
286-
{ letter: "H", description: "Seventh letter of the Greek alphabet. Sound: 'i' as in machine.", text: "Eta (Η η)", emoji: "Η" },
287-
{ letter: "Q", description: "Eighth letter of the Greek alphabet. Sound: 'th' as in thin.", text: "Theta (Θ θ)", emoji: "Θ" },
288-
{ letter: "I", description: "Ninth letter of the Greek alphabet. Sound: 'i' as in machine.", text: "Iota (Ι ι)", emoji: "Ι" },
289-
{ letter: "K", description: "Tenth letter of the Greek alphabet. Sound: 'k' as in kite.", text: "Kappa (Κ κ)", emoji: "Κ" },
290-
{ letter: "L", description: "Eleventh letter of the Greek alphabet. Sound: 'l' as in lamp.", text: "Lambda (Λ λ)", emoji: "Λ" },
291-
{ letter: "M", description: "Twelfth letter of the Greek alphabet. Sound: 'm' as in map.", text: "Mu (Μ μ)", emoji: "Μ" },
292-
{ letter: "N", description: "Thirteenth letter of the Greek alphabet. Sound: 'n' as in net.", text: "Nu (Ν ν)", emoji: "Ν" },
293-
{ letter: "X", description: "Fourteenth letter of the Greek alphabet. Sound: 'x' as in axe.", text: "Xi (Ξ ξ)", emoji: "Ξ" },
294-
{ letter: "O", description: "Fifteenth letter of the Greek alphabet. Sound: 'o' as in pot.", text: "Omicron (Ο ο)", emoji: "Ο" },
295-
{ letter: "P", description: "Sixteenth letter of the Greek alphabet. Sound: 'p' as in pen.", text: "Pi (Π π)", emoji: "Π" },
296-
{ letter: "R", description: "Seventeenth letter of the Greek alphabet. Sound: 'r' as in run (often rolled).", text: "Rho (Ρ ρ)", emoji: "Ρ" },
297-
{ letter: "S", description: "Eighteenth letter of the Greek alphabet. Sound: 's' as in sun.", text: "Sigma (Σ σ/ς)", emoji: "Σ" },
298-
{ letter: "T", description: "Nineteenth letter of the Greek alphabet. Sound: 't' as in tap.", text: "Tau (Τ τ)", emoji: "Τ" },
299-
{ letter: "U", description: "Twentieth letter of the Greek alphabet. Sound: 'i' as in machine (Modern Greek).", text: "Upsilon (Υ υ)", emoji: "Υ" },
300-
{ letter: "F", description: "Twenty-first letter of the Greek alphabet. Sound: 'f' as in fan.", text: "Phi (Φ φ)", emoji: "Φ" },
301-
{ letter: "C", description: "Twenty-second letter of the Greek alphabet. Sound: 'ch' as in Scottish loch, or 'h' as in huge.", text: "Chi (Χ χ)", emoji: "Χ" },
302-
{ letter: "Y", description: "Twenty-third letter of the Greek alphabet. Sound: 'ps' as in psychology.", text: "Psi (Ψ ψ)", emoji: "Ψ" },
303-
{ letter: "W", description: "Twenty-fourth letter of the Greek alphabet. Sound: 'o' as in go.", text: "Omega (Ω ω)", emoji: "Ω" }
279+
{
280+
letter: "A",
281+
description: "First letter of the Greek alphabet. Sound: 'a' as in father.",
282+
text: "Alpha (Α α)",
283+
emoji: "A"
284+
},
285+
{
286+
letter: "B",
287+
description: "Second letter of the Greek alphabet. Sound: 'v' as in vase (Modern Greek).",
288+
text: "Beta (Β β)",
289+
emoji: "Β"
290+
},
291+
{
292+
letter: "G",
293+
description: "Third letter of the Greek alphabet. Sound: 'g' as in go, or 'y' as in yes.",
294+
text: "Gamma (Γ γ)",
295+
emoji: "Γ"
296+
},
297+
{
298+
letter: "D",
299+
description: "Fourth letter of the Greek alphabet. Sound: 'th' as in then (Modern Greek).",
300+
text: "Delta (Δ δ)",
301+
emoji: "Δ"
302+
},
303+
{
304+
letter: "E",
305+
description: "Fifth letter of the Greek alphabet. Sound: 'e' as in met.",
306+
text: "Epsilon (Ε ε)",
307+
emoji: "Ε"
308+
},
309+
{
310+
letter: "Z",
311+
description: "Sixth letter of the Greek alphabet. Sound: 'z' as in zoo.",
312+
text: "Zeta (Ζ ζ)",
313+
emoji: "Ζ"
314+
},
315+
{
316+
letter: "H",
317+
description: "Seventh letter of the Greek alphabet. Sound: 'i' as in machine.",
318+
text: "Eta (Η η)",
319+
emoji: "Η"
320+
},
321+
{
322+
letter: "Q",
323+
description: "Eighth letter of the Greek alphabet. Sound: 'th' as in thin.",
324+
text: "Theta (Θ θ)",
325+
emoji: "Θ"
326+
},
327+
{
328+
letter: "I",
329+
description: "Ninth letter of the Greek alphabet. Sound: 'i' as in machine.",
330+
text: "Iota (Ι ι)",
331+
emoji: "Ι"
332+
},
333+
{
334+
letter: "K",
335+
description: "Tenth letter of the Greek alphabet. Sound: 'k' as in kite.",
336+
text: "Kappa (Κ κ)",
337+
emoji: "Κ"
338+
},
339+
{
340+
letter: "L",
341+
description: "Eleventh letter of the Greek alphabet. Sound: 'l' as in lamp.",
342+
text: "Lambda (Λ λ)",
343+
emoji: "Λ"
344+
},
345+
{
346+
letter: "M",
347+
description: "Twelfth letter of the Greek alphabet. Sound: 'm' as in map.",
348+
text: "Mu (Μ μ)",
349+
emoji: "Μ"
350+
},
351+
{
352+
letter: "N",
353+
description: "Thirteenth letter of the Greek alphabet. Sound: 'n' as in net.",
354+
text: "Nu (Ν ν)",
355+
emoji: "Ν"
356+
},
357+
{
358+
letter: "X",
359+
description: "Fourteenth letter of the Greek alphabet. Sound: 'x' as in axe.",
360+
text: "Xi (Ξ ξ)",
361+
emoji: "Ξ"
362+
},
363+
{
364+
letter: "O",
365+
description: "Fifteenth letter of the Greek alphabet. Sound: 'o' as in pot.",
366+
text: "Omicron (Ο ο)",
367+
emoji: "Ο"
368+
},
369+
{
370+
letter: "P",
371+
description: "Sixteenth letter of the Greek alphabet. Sound: 'p' as in pen.",
372+
text: "Pi (Π π)",
373+
emoji: "Π"
374+
},
375+
{
376+
letter: "R",
377+
description: "Seventeenth letter of the Greek alphabet. Sound: 'r' as in run (often rolled).",
378+
text: "Rho (Ρ ρ)",
379+
emoji: "Ρ"
380+
},
381+
{
382+
letter: "S",
383+
description: "Eighteenth letter of the Greek alphabet. Sound: 's' as in sun.",
384+
text: "Sigma (Σ σ/ς)",
385+
emoji: "Σ"
386+
},
387+
{
388+
letter: "T",
389+
description: "Nineteenth letter of the Greek alphabet. Sound: 't' as in tap.",
390+
text: "Tau (Τ τ)",
391+
emoji: "Τ"
392+
},
393+
{
394+
letter: "U",
395+
description: "Twentieth letter of the Greek alphabet. Sound: 'i' as in machine (Modern Greek).",
396+
text: "Upsilon (Υ υ)",
397+
emoji: "Υ"
398+
},
399+
{
400+
letter: "F",
401+
description: "Twenty-first letter of the Greek alphabet. Sound: 'f' as in fan.",
402+
text: "Phi (Φ φ)",
403+
emoji: "Φ"
404+
},
405+
{
406+
letter: "C",
407+
description: "Twenty-second letter of the Greek alphabet. Sound: 'ch' as in Scottish loch, or 'h' as in huge.",
408+
text: "Chi (Χ χ)",
409+
emoji: "Χ"
410+
},
411+
{
412+
letter: "Y",
413+
description: "Twenty-third letter of the Greek alphabet. Sound: 'ps' as in psychology.",
414+
text: "Psi (Ψ ψ)",
415+
emoji: "Ψ"
416+
},
417+
{
418+
letter: "W",
419+
description: "Twenty-fourth letter of the Greek alphabet. Sound: 'o' as in go.",
420+
text: "Omega (Ω ω)",
421+
emoji: "Ω"
422+
}
304423
];
305424

306425
export const GREEK_DATASETS: AlphabetDataset = {
@@ -309,7 +428,7 @@ export const GREEK_DATASETS: AlphabetDataset = {
309428
icon: "🔤",
310429
data: greekData.map((item, index) => ({
311430
id: index + 1,
312-
code: item.text.charCodeAt(0),
431+
code: item.text.charCodeAt(0),
313432
...item
314433
}))
315434
};
@@ -409,7 +528,12 @@ const colorsData = [
409528
{ letter: "F", text: "Fuchsia", description: "A vivid purplish-red color.", colorCode: "#FF00FF" },
410529
{ letter: "G", text: "Green", description: "The color of living grass and leaves.", colorCode: "#008000" },
411530
{ letter: "H", text: "Heliotrope", description: "A pink-purple tint.", colorCode: "#DF73FF" },
412-
{ letter: "I", text: "Indigo", description: "A deep and rich color close to the color wheel blue.", colorCode: "#4B0082" },
531+
{
532+
letter: "I",
533+
text: "Indigo",
534+
description: "A deep and rich color close to the color wheel blue.",
535+
colorCode: "#4B0082"
536+
},
413537
{ letter: "J", text: "Jade", description: "A light green color.", colorCode: "#00A86B" },
414538
{ letter: "K", text: "Khaki", description: "A light brownish-yellow color.", colorCode: "#C3B091" },
415539
{ letter: "L", text: "Lavender", description: "A light purple color.", colorCode: "#E6E6FA" },
@@ -588,7 +712,6 @@ export const HINDI_DATASETS: AlphabetDataset = {
588712
}))
589713
};
590714

591-
592715
/** TODO: add others from alphabets.json */
593716

594717
export const DATASET: { [key: string]: AlphabetDataset } = {

src/pages/hidenseek/index.astro

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ const games = {
3434
<div class="header-content">
3535
<h1 class="selection-title">Select a creative mode</h1>
3636
</div>
37-
<div class="selection-buttons-grid">
38-
{
39-
Object.entries(games).map(([route, game]) => (
40-
<GameCard
41-
cardType={route as "grid" | "kbd"}
42-
title={game.title}
43-
description={game.description}
44-
href={game.href}
45-
>
46-
{route === "grid" && <GridGameIcon slot="grid-icon" />}
47-
{route === "kbd" && <KeyboardGameIcon slot="keyboard-icon" />}
48-
</GameCard>
49-
))
50-
}
51-
</div>
37+
<div class="selection-buttons-grid">
38+
{
39+
Object.entries(games).map(([route, game]) => (
40+
<GameCard
41+
cardType={route as "grid" | "kbd"}
42+
title={game.title}
43+
description={game.description}
44+
href={game.href}
45+
>
46+
{route === "grid" && <GridGameIcon slot="grid-icon" />}
47+
{route === "kbd" && <KeyboardGameIcon slot="keyboard-icon" />}
48+
</GameCard>
49+
))
50+
}
51+
</div>
5252
</div>
53-
</BaseLayout>
53+
</BaseLayout>

0 commit comments

Comments
 (0)