-
-
+
+
+
+ {cardType === "grid" ? : }
+
+
{title}
+
{description}
- {title}
- {description}
diff --git a/src/components/Header.astro b/src/components/Header.astro
deleted file mode 100644
index 863fce33..00000000
--- a/src/components/Header.astro
+++ /dev/null
@@ -1,10 +0,0 @@
----
-import LanguageSwitcher from "./LanguageSwitcher.astro";
----
-
-
diff --git a/src/components/Help.astro b/src/components/Help.astro
index 3b909594..fce577e1 100644
--- a/src/components/Help.astro
+++ b/src/components/Help.astro
@@ -29,6 +29,9 @@ const { title, description } = Astro.props;
}
+
+
+
?
@@ -57,6 +60,26 @@ const { title, description } = Astro.props;
diff --git a/src/components/IndiaMap.astro b/src/components/IndiaMap.astro
index 8fd0bcdb..87e446b5 100644
--- a/src/components/IndiaMap.astro
+++ b/src/components/IndiaMap.astro
@@ -1,5 +1,5 @@
---
-import stateJson from "@/data/state.json";
+import stateJson from "@/assets/json/state.json";
import BackButton from "@/components/BackButton.astro";
---
diff --git a/src/components/IndicLanguageGrid.astro b/src/components/IndicLanguageGrid.astro
deleted file mode 100644
index 2779f154..00000000
--- a/src/components/IndicLanguageGrid.astro
+++ /dev/null
@@ -1,207 +0,0 @@
----
-import {
- englishVowels,
- englishConsonants,
- allAlphabet,
- letterPairs,
- languages,
- getLetterForLanguage
-} from "@/utils/languageLetters";
-import "@/assets/styles/indic.css";
-
-const { primary, secondary } = Astro.props;
----
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
VOWELS
- {
- letterPairs
- .filter((pair) => pair.type === "vowel")
- .map((pair, index) => (
-
-
{getLetterForLanguage(pair, primary)}
-
{getLetterForLanguage(pair, secondary)}
-
- ))
- }
-
-
-
-
CONSONANTS
- {
- letterPairs
- .filter((pair) => pair.type === "consonant")
- .map((pair, index) => (
-
-
{getLetterForLanguage(pair, primary)}
-
{getLetterForLanguage(pair, secondary)}
-
- ))
- }
-
-
-
diff --git a/src/components/IndicLetters.astro b/src/components/IndicLetters.astro
new file mode 100644
index 00000000..2cfb4731
--- /dev/null
+++ b/src/components/IndicLetters.astro
@@ -0,0 +1,244 @@
+---
+import {
+ englishVowels,
+ englishConsonants,
+ allAlphabet,
+ letterPairs,
+ languages,
+ languages2,
+ selectedLanguage1,
+ selectedLanguage2,
+ getLetterForLanguage
+} from "@/utils/languageLetters.ts";
+import BackIcon from "@/components/Back.astro";
+import "@/assets/styles/indic.css";
+---
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
VOWELS
+ {
+ letterPairs
+ .filter((pair) => pair.type === "vowel")
+ .map((pair, index) => (
+
+
{getLetterForLanguage(pair, selectedLanguage1)}
+
{getLetterForLanguage(pair, selectedLanguage2)}
+
+ ))
+ }
+
+
+
+
CONSONANTS
+ {
+ letterPairs
+ .filter((pair) => pair.type === "consonant")
+ .map((pair, index) => (
+
+
{getLetterForLanguage(pair, selectedLanguage1)}
+
{getLetterForLanguage(pair, selectedLanguage2)}
+
+ ))
+ }
+
+
+
+
+
diff --git a/src/components/Keyboard.astro b/src/components/Keyboard.astro
index c1a1773e..95b0aa8a 100644
--- a/src/components/Keyboard.astro
+++ b/src/components/Keyboard.astro
@@ -1,5 +1,5 @@
---
-import "@/assets/styles/keyboard.css";
+import "@/assets/styles/Keyboard.css";
const rows = [
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"],
["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P"],
diff --git a/src/components/LanguageSwitcher.astro b/src/components/LanguageSwitcher.astro
deleted file mode 100644
index 11a4178c..00000000
--- a/src/components/LanguageSwitcher.astro
+++ /dev/null
@@ -1,20 +0,0 @@
----
-export const setLang = `(lang) => {
- localStorage.setItem('language', lang);
- document.documentElement.lang = lang === 'hindi' ? 'hi' : 'en';
- document.body.classList.toggle('hindi', lang === 'hindi');
- window.dispatchEvent(new Event('languagechange'));
-}`;
----
-
-
-
-
-
-
diff --git a/src/components/Letter.astro b/src/components/Letter.astro
index 192fa0b0..9087dc80 100644
--- a/src/components/Letter.astro
+++ b/src/components/Letter.astro
@@ -2,9 +2,9 @@
import type { LetterEntity } from "@/types";
import CopyIcon from "@/assets/icons/copy.svg";
-interface Props {
+type Props = {
item: LetterEntity;
-}
+};
const {
item: { letter, code }
diff --git a/src/components/LetterCard.astro b/src/components/LetterCard.astro
index ebcb5741..cdd9e262 100644
--- a/src/components/LetterCard.astro
+++ b/src/components/LetterCard.astro
@@ -1,17 +1,12 @@
---
import { type AlphabetEntry } from "@/types/alphabet.ts";
-import "@/assets/styles/letter-card.css";
-
interface Props {
- class?: string;
item: AlphabetEntry;
category: string;
}
-const { class: className, ...rest } = Astro.props;
-
-const { item, category } = rest as Props;
+const { item, category } = Astro.props;
---
@@ -21,7 +16,7 @@ const { item, category } = rest as Props;
Flip Card
{item.text}
@@ -29,9 +24,9 @@ const { item, category } = rest as Props;
-