Skip to content

Commit 0acf9e2

Browse files
committed
feat: nonogram game
1 parent 1b1d11d commit 0acf9e2

File tree

4 files changed

+376
-0
lines changed

4 files changed

+376
-0
lines changed

public/apps/apps.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@
116116
"title": "Lights Out",
117117
"description": "A classic logic puzzle where you turn off all the lights.",
118118
"icon": "LightbulbFilamentIcon"
119+
},
120+
{
121+
"slug": "nonogram",
122+
"to": "/apps/nonogram",
123+
"title": "Nonogram",
124+
"description": "Solve picture logic puzzles by filling cells according to numerical clues.",
125+
"icon": "GridFourIcon"
119126
}
120127
]
121128
},

src/components/AnimatedRoutes.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import MorseCodeTranslatorPage from '../pages/apps/MorseCodeTranslatorPage';
5757
import MastermindPage from '../pages/apps/MastermindPage';
5858
import WordLadderPage from '../pages/apps/WordLadderPage'; // Import WordLadderPage
5959
import LightsOutPage from '../pages/apps/LightsOutPage'; // Import LightsOutPage
60+
import NonogramPage from '../pages/apps/NonogramPage'; // Import NonogramPage
6061
import SettingsPage from '../pages/SettingsPage';
6162

6263
import UsefulLinksPage from '../pages/UsefulLinksPage';
@@ -554,6 +555,10 @@ function AnimatedRoutes() {
554555
path="/apps::lo"
555556
element={<Navigate to="/apps/lights-out" replace />}
556557
/>
558+
<Route
559+
path="/apps::ng"
560+
element={<Navigate to="/apps/nonogram" replace />}
561+
/>
557562
{/* End of hardcoded redirects */}
558563
<Route
559564
path="/apps/ip"
@@ -1102,6 +1107,20 @@ function AnimatedRoutes() {
11021107
</motion.div>
11031108
}
11041109
/>
1110+
<Route
1111+
path="/apps/nonogram"
1112+
element={
1113+
<motion.div
1114+
initial="initial"
1115+
animate="in"
1116+
exit="out"
1117+
variants={pageVariants}
1118+
transition={pageTransition}
1119+
>
1120+
<NonogramPage />
1121+
</motion.div>
1122+
}
1123+
/>
11051124
{/* D&D specific 404 page */}
11061125
<Route
11071126
path="/stories/*"

0 commit comments

Comments
 (0)