Some fiddling, but also version upgrades and a new button for downloading a pdf version of the current maze.
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Manuel Friedli 2026-01-24 05:30:33 +01:00
parent 79467e29f2
commit b6359bcb5d
Signed by: manuel
GPG key ID: 41D08ABA75634DA1
21 changed files with 2002 additions and 927 deletions

View file

@ -1,6 +1,6 @@
'use client'
import styles from "./page.module.css";
import styles from "./page.module.scss";
import {useReducer} from "react";
import reduce from "./state/reducer.ts";
import {INITIAL_STATE} from "./state/state.ts";
@ -24,6 +24,12 @@ export default function Home() {
<>
<h1>The Maze ({state.maze!.width}x{state.maze!.height}, Algorithm: {state.maze!.algorithm},
ID: {state.maze!.id})</h1>
<a href={"https://manuel.friedli.info/labyrinth/create/pdffile?w="
+ state.maze!.width
+ "&h=" + state.maze!.height
+ "&id=" + state.maze!.id
+ "&a=" + state.maze!.algorithm}
className={styles.downloadlink}>Download as PDF file</a>
<input type={"checkbox"}
checked={state.showSolution}
onChange={(e) => {