From 455a2d918f8e40b17157a760fa516a0f9a94a48e Mon Sep 17 00:00:00 2001 From: RecursiveZero Date: Tue, 4 Aug 2026 23:19:18 +0530 Subject: [PATCH 1/2] crossword mobile view enabled --- .vscode/dictionaries/project-words.txt | 1 + .../styles/{crossword2.css => crossword.css} | 20 +- src/components/Puzzle.astro | 1002 ++++++++++------- src/components/Puzzle2.astro | 641 ----------- src/pages/crossword.astro | 8 +- 5 files changed, 582 insertions(+), 1090 deletions(-) rename src/assets/styles/{crossword2.css => crossword.css} (96%) delete mode 100644 src/components/Puzzle2.astro diff --git a/.vscode/dictionaries/project-words.txt b/.vscode/dictionaries/project-words.txt index 8afd973c..6fd50a2b 100755 --- a/.vscode/dictionaries/project-words.txt +++ b/.vscode/dictionaries/project-words.txt @@ -120,6 +120,7 @@ waitlist webring werkzeug withastro +wordsearch अक्टूबर अगस्त अप्रैल diff --git a/src/assets/styles/crossword2.css b/src/assets/styles/crossword.css similarity index 96% rename from src/assets/styles/crossword2.css rename to src/assets/styles/crossword.css index 1c3369c6..9770a661 100644 --- a/src/assets/styles/crossword2.css +++ b/src/assets/styles/crossword.css @@ -27,7 +27,7 @@ min-height: 100vh; padding: 20px; box-sizing: border-box; - touch-action: none; + touch-action: pan-y; } /* ── Top Controls (Word List ke upar) ── */ @@ -357,7 +357,6 @@ details:not([open]) summary::after { display: flex !important; justify-content: center !important; align-items: center !important; - background: #f8fafc !important; border: 1.5px solid #e2e8f0 !important; border-radius: 5px !important; font-size: calc((100vw - 40px) / 8 * 0.45) !important; @@ -366,22 +365,7 @@ details:not([open]) summary::after { cursor: pointer !important; user-select: none !important; -webkit-user-select: none !important; - touch-action: none !important; - min-width: 0 !important; - min-height: 0 !important; - padding: 0 !important; - overflow: hidden !important; - box-sizing: border-box !important; - } - - .stats-container { - gap: 4px; - margin: 8px 0; - } - - .stats-button { - padding: 8px 10px; - font-size: 11px; + touch-action: manipulation !important; border-radius: 10px; } diff --git a/src/components/Puzzle.astro b/src/components/Puzzle.astro index 881c07e3..44154515 100644 --- a/src/components/Puzzle.astro +++ b/src/components/Puzzle.astro @@ -1,10 +1,94 @@ --- -import Settings from "@/components/Settings.astro"; import HintIcon from "@/assets/icons/hint.svg"; --- + +
- +
+
+ +
+ + + +
+
+ + +
+
Word List
@@ -17,486 +101,550 @@ import HintIcon from "@/assets/icons/hint.svg";
Found: 0/
- +
+ - - + } + } + + // ── Start ── + generatePuzzle(); + setupEvents(); + + // cross.json — sirf tab override karo jab zyada sets hon + fetch("/assets/json/cross.json") + .then(function (r) { + return r.json(); + }) + .then(function (data) { + if (Array.isArray(data) && data.length > WORD_SETS.length) { + WORD_SETS = data; + state.currentWordSet = WORD_SETS[0]; + generatePuzzle(); + } + }) + .catch(function () {}); + diff --git a/src/components/Puzzle2.astro b/src/components/Puzzle2.astro deleted file mode 100644 index fafb37fb..00000000 --- a/src/components/Puzzle2.astro +++ /dev/null @@ -1,641 +0,0 @@ ---- -import HintIcon from "@/assets/icons/hint.svg"; ---- - - - -
-
-
- -
- - - -
-
- - -
- -
- Word List -
-
- -
-
- Clicks: 0 -
-
- Found: 0/ -
- - -
- -
-
- - diff --git a/src/pages/crossword.astro b/src/pages/crossword.astro index 8120740a..41fb2b0f 100644 --- a/src/pages/crossword.astro +++ b/src/pages/crossword.astro @@ -1,11 +1,11 @@ --- -import "@/assets/styles/crossword2.css"; +import "@/assets/styles/crossword.css"; import Back from "@/components/BackButton.astro"; import Help from "@/components/Help.astro"; -import Puzzle2 from "@/components/Puzzle2.astro"; +import MobileSplash from "@/components/MobileSplash.astro"; +import Puzzle from "@/components/Puzzle.astro"; import SharePopover from "@/components/ShareButton.astro"; import BaseLayout from "@/layouts/Base"; -import MobileSplash from "@/components/MobileSplash.astro"; const meta = { title: "Word Search", @@ -25,7 +25,7 @@ const meta = {

🔍 Word Search

- +
From a54aab28aa994a9f2fa5bc2e88b7aa59a6e8f414 Mon Sep 17 00:00:00 2001 From: RecursiveZero Date: Tue, 4 Aug 2026 23:21:55 +0530 Subject: [PATCH 2/2] update patch version --- CHANGELOG.md | 5 +++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 534972d0..e6e08131 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,11 @@ Created Repo from template - Added Featured and Category section - Added a keyboard game. +## [3.4.1] - Aug 04 2026 + +- Crossword page redesign for mobile view +- typing page added + ### [Unreleased] Here we write upgrading notes for brands. It's a team effort to make them as straightforward as possible. diff --git a/package-lock.json b/package-lock.json index f48c9701..03f48221 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@recursivezero/abcd", - "version": "3.4.0", + "version": "3.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@recursivezero/abcd", - "version": "3.4.0", + "version": "3.4.1", "license": "MIT", "dependencies": { "@astrojs/check": "0.9.4", diff --git a/package.json b/package.json index 30d41c1e..88cf2efa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@recursivezero/abcd", - "version": "3.4.0", + "version": "3.4.1", "description": "A website for kids whio want to learn the alphabet in a fun and interactive way. It is built using Astro and TypeScript.", "homepage": "https://abcdkbd.com", "displayName": "abcd",