Skip to content

Commit 21ea0b8

Browse files
1046prtrecursivezero
authored andcommitted
[RZA-250154]: Refactored the description and title of left over pages
1 parent 5713de8 commit 21ea0b8

28 files changed

+93
-72
lines changed

src/pages/akshar.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const meta = {
1818
<SharePopover />
1919
<Help
2020
title="Indic Alphabets"
21-
description="Learn Indian culture and diversity through Indian languages. Learn alphabets of different Indian languages by alphabet comparison , their pronunciation and examples."
21+
description="Learn alphabets of different Indian languages by alphabet comparison."
2222
/>
2323
</Fragment>
2424
<IndicLanguageGrid primary="hi" secondary="kn" />

src/pages/alphabets/[alphabet]/board.astro

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
import "@/assets/styles/tile.css";
33
import BackButton from "@/components/BackButton.astro";
4+
import Help from "@/components/Help.astro";
45
import LetterCard from "@/components/LetterCard.astro";
6+
import SharePopover from "@/components/ShareButton.astro";
57
import BaseLayout from "@/layouts/Base";
68
import { DATASET } from "@/mappers/dataset";
7-
import Help from "@/components/Help.astro";
8-
import SharePopover from "@/components/ShareButton.astro";
99
1010
export const prerender = true;
1111
@@ -18,9 +18,14 @@ export async function getStaticPaths() {
1818
const { alphabet } = Astro.params;
1919
2020
const data = DATASET[alphabet].data;
21+
22+
const meta = {
23+
title: "Alphabets",
24+
description: `Explore the "${alphabet}" category with interactive flashcards to learn associated words and objects.`
25+
};
2126
---
2227

23-
<BaseLayout meta={{ title: `Alphabets - ${alphabet.charAt(0).toUpperCase() + alphabet.slice(1)}` }}>
28+
<BaseLayout meta={meta}>
2429
<Fragment slot="header-left">
2530
<SharePopover />
2631
<Help title="Board" description="Learn new information from the selected alphabet category!" />

src/pages/alphabets/[alphabet]/playground.astro

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ const defaultCategory = {
2626
const { alphabet } = Astro.params;
2727
const currentCategory = DATASET[alphabet] || defaultCategory;
2828
29-
const title = `${capitalizeThis(alphabet)} - Playground`;
29+
const meta = {
30+
title: `${capitalizeThis(alphabet)} - Playground`,
31+
description: `Type or navigate to interactively explore the "${capitalizeThis(
32+
alphabet
33+
)}" alphabet set using keyboard or arrows.`
34+
};
3035
---
3136

32-
<BaseLayout meta={{ title }}>
37+
<BaseLayout meta={meta}>
3338
<div class="container__heading">
3439
<BackButton />
3540
<span class="info">Press a key to see the magic</span>
@@ -38,7 +43,7 @@ const title = `${capitalizeThis(alphabet)} - Playground`;
3843
<KeyboardTrigger />
3944
<SharePopover />
4045
<Help
41-
title={title}
46+
title={meta.title}
4247
description="Press Next Arrow > to get next letter. navigate through < and > from your keyboard"
4348
/>
4449
</Fragment>

src/pages/alphabets/hindi/board.astro

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ import BaseLayout from "@/layouts/Base";
66
77
import { consonants, vowels } from "@/data/hindi.json";
88
9-
const title = "Hindi Alphabets | हिन्दी वर्णमाला";
10-
const description = "Explore Swar (स्वर) and Vyanjan (व्यंजन) in this interactive guide.";
11-
const category = "hindi";
9+
const meta = {
10+
title: "हिन्दी वर्णमाला",
11+
description: "Explore Swar (स्वर) and Vyanjan (व्यंजन) in this interactive guide."
12+
};
13+
const category = "Hindi";
1214
---
1315

14-
<BaseLayout meta={{ title, description }}>
16+
<BaseLayout meta={meta}>
1517
<BackButton href="/alphabets" />
1618
<div class="container__page">
1719
<div class="page__header">
18-
<h2 class="page__title">{title}</h2>
20+
<h2 class="page__title">{meta.title}</h2>
1921
<button id="flip-all-button" class="btn__flip__all">Flip All Cards</button>
2022
</div>
2123
<article class="page__content">

src/pages/canvas/text.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import SharePopover from "@/components/ShareButton.astro";
66
import BaseLayout from "@/layouts/Base";
77
88
const meta = {
9-
title: "Canvas Image Generator",
9+
title: "Canvas Generator",
1010
description: "Generate custom canvas images with text or time"
1111
};
1212
---

src/pages/crossword.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import BaseLayout from "@/layouts/Base";
99
const meta = {
1010
title: "Crossword",
1111
description:
12-
"Play an interactive crossword puzzle! Draw words by clicking and dragging through letters in any direction. Use hints to find word directions."
12+
"Play an interactive crossword puzzle! Draw words by clicking and dragging through letters in any direction."
1313
};
1414
---
1515

src/pages/gallery/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import SharePopover from "@/components/ShareButton.astro";
88
import BaseLayout from "@/layouts/Base";
99
1010
const meta = {
11-
title: "Gallery | Explore Alphabet Card Layouts | abcdkbd",
11+
title: "Gallery",
1212
description:
1313
"Discover interactive ways to learn alphabets with Stack, Queue, and Slider gallery layouts. Choose your favorite mode to visualize and play with alphabet cards."
1414
};

src/pages/gallery/queue.astro

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@ import "@/assets/styles/cards/queue.css";
88
import SharePopover from "@/components/ShareButton.astro";
99
import KeyboardTrigger from "@/components/KeyboardTrigger.astro";
1010
11-
const pageTitle = "Queue | Interactive Alphabet";
12-
const pageDescription =
13-
"Explore the interactive alphabet with images and descriptions for each letter in a queue format.";
14-
15-
const pageMeta = {
16-
title: pageTitle,
17-
description: pageDescription
11+
const meta = {
12+
title: "Queue Alphabet",
13+
description: "Explore the interactive alphabet with images and descriptions for each letter in a queue format."
1814
};
1915
2016
interface AlphabetItem {
@@ -45,7 +41,7 @@ function randomAngle(max: number, min: number): number {
4541
let currentIndex = 0;
4642
---
4743

48-
<BaseLayout meta={pageMeta}>
44+
<BaseLayout meta={meta}>
4945
<Fragment slot="header-right">
5046
<KeyboardTrigger />
5147
<SharePopover />

src/pages/gallery/slider.astro

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ import Help from "@/components/Help.astro";
77
import "@/assets/styles/cards/slider.css";
88
import SharePopover from "@/components/ShareButton.astro";
99
10-
const pageTitle = "Slider | Interactive Alphabet";
11-
const pageDescription = "Explore the alphabet through interactive images. Click or use arrow keys to slide.";
12-
13-
const pageMeta = {
14-
title: pageTitle,
15-
description: pageDescription
10+
const meta = {
11+
title: "Slider Alphabet",
12+
description: "Explore the alphabet through interactive images."
1613
};
1714
1815
interface AlphabetItem {
@@ -36,7 +33,7 @@ const items: Record<string, AlphabetItem> = alphabetMapper.reduce(
3633
const entries = Object.entries(items);
3734
---
3835

39-
<BaseLayout meta={pageMeta}>
36+
<BaseLayout meta={meta}>
4037
<Fragment slot="header-right">
4138
<div class="header-tools-wrapper"></div>
4239
<SharePopover />

src/pages/gallery/stack.astro

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ import Help from "@/components/Help.astro";
77
import "@/assets/styles/cards/stack.css";
88
import SharePopover from "@/components/ShareButton.astro";
99
10-
const pageTitle = "Stack | Interactive Alphabet";
11-
const pageDescription =
12-
"Explore the interactive alphabet with images and descriptions for each letter in a stack display format.";
13-
14-
const pageMeta = {
15-
title: pageTitle,
16-
description: pageDescription
10+
const meta = {
11+
title: "Stack Alphabet",
12+
description:
13+
"Explore the interactive alphabet with images and descriptions for each letter in a stack display format."
1714
};
1815
1916
interface AlphabetItem {
@@ -44,7 +41,7 @@ function randomAngle(max: number, min: number): number {
4441
let currentIndex = 0;
4542
---
4643

47-
<BaseLayout meta={pageMeta}>
44+
<BaseLayout meta={meta}>
4845
<Fragment slot="header-right">
4946
<div class="header-tools-wrapper"></div>
5047
<SharePopover />

0 commit comments

Comments
 (0)