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
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
79467e29f2
commit
b6359bcb5d
21 changed files with 2002 additions and 927 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue