diff --git a/src/components/Puzzle.astro b/src/components/Puzzle.astro new file mode 100644 index 0000000..684dddb --- /dev/null +++ b/src/components/Puzzle.astro @@ -0,0 +1,565 @@ +
+ + + + +
+
+ + + + +
+
+ +
+ Word List +
+
+ +
+
+ Clicks: 0 +
+
+ Found: 0/ +
+ + + +
+ +
+
+ + diff --git a/public/mocks/crossword-data.json b/src/data/crossword-data.json similarity index 100% rename from public/mocks/crossword-data.json rename to src/data/crossword-data.json diff --git a/src/pages/crossword.astro b/src/pages/crossword.astro index 93c1339..dcee4bf 100644 --- a/src/pages/crossword.astro +++ b/src/pages/crossword.astro @@ -1,21 +1,20 @@ --- import "@/assets/styles/crossword.css"; -import crosswordData from '../../public/mocks/crossword-data.json'; +import Help from "@/components/Help.astro"; import WordSearchPuzzle from "@/components/Puzzle.astro"; +import crosswordData from "@/data/crossword-data.json"; import BaseLayout from "@/layouts/Base"; -import Help from "@/components/Help.astro"; const categories = crosswordData.categories; let selectedCategory = null; -let words: any= []; - +let words: any = []; const selectCategory = (category: string) => { selectedCategory = category; words = (crosswordData as any).words[category] || []; }; - --- + { /> - - \ No newline at end of file + + diff --git a/src/pages/varnmala/english.astro b/src/pages/varnmala/english.astro index df315ca..55e999b 100644 --- a/src/pages/varnmala/english.astro +++ b/src/pages/varnmala/english.astro @@ -13,64 +13,6 @@ import BackButton from "@/components/ui/backButton.astro"; /> -
-
-
- - - -
- -
- - - -
-
- - - -
-
-
- - - -
- -
- - - -
-
- - -
A
diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 3025f2a..ae7350e 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -61,13 +61,6 @@ export const NavbarLinks: LinkProps[] = [ path: "/feedback", isActive: true }, - { - name: "Feedback", - title: "Feedback Form", - path: "/feedback", - isActive: true - }, - { name: "crossword", title: "Crossword", path: "/crossword", isActive: true }, { name: "Societree", title: "Clan",