diff --git a/package-lock.json b/package-lock.json index da01748..eecd824 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.1.0", "dependencies": { "@serwist/next": "^9.5.12", + "clsx": "^2.1.1", "maplibre-gl": "^6.8.0", "next": "16.3.4", "react": "19.2.8", @@ -3678,6 +3679,15 @@ "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", "license": "MIT" }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", diff --git a/package.json b/package.json index e5b0211..b5b41ed 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "@serwist/next": "^9.5.12", + "clsx": "^2.1.1", "maplibre-gl": "^6.8.0", "next": "16.3.4", "react": "19.2.8", diff --git a/src/app/globals.css b/src/app/globals.css index 61eb324..2e1e63e 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,3 +1,39 @@ +@font-face { + font-family: 'Lancelot'; + src: url(../../public/fonts/Lancelot-Regular.woff2) format('woff2'); + font-weight: normal; + font-style: normal; +} + +@font-face { + font-family: 'Eisenkraft'; + src: url(../../public/fonts/Eisenkraft.woff2) format('woff2'); + font-weight: normal; + font-style: normal; +} + +.lancelot-regular { + font-family: 'Lancelot'; +} + +.test { + color: red; +} + +.lancelot-italic { + font-family: 'Lancelot'; + font-style: oblique 15deg; +} + +.lancelot-bold { + font-family: 'Lancelot'; + -webkit-text-stroke: 0.5pt currentColor; +} + +.eisenkraft-regular { + font-family: 'Eisenkraft'; +} + :root { --background: #ffffff; --foreground: #171717; diff --git a/src/app/page.tsx b/src/app/page.tsx index d0550f9..a1d5369 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -13,6 +13,7 @@ import { Player } from "@/types/player"; import { formatPlayerData, parsePlayerData } from "@/utils/dataparser"; import { parse } from "path"; import Tour from "@/components/screens/Tour"; +import clsx from "clsx"; export default function Main() { const [ stepStr, setStep ] = useLocalStorage(PREF.step, "0"); @@ -24,59 +25,7 @@ export default function Main() { console.log("PLAYERS", players, parsePlayerData(players)); console.log("TourCode", tourCode); - /*const [test, setTest] = useState(100); - const handleChange = (event: ChangeEvent): boolean => { - const value = Number.parseInt(event.target.value); - if (event.target.value.length > 0) { - if (value < 0 || isNaN(value)) { - event.preventDefault(); - return false; - } - } - setTest(value); - return true; - }; - - const ExampleButton = ({ duration }: { duration: number}) => { - const [clicked, setClicked] = useState(false); - - return ( -
- { - setClicked(true); - setTimeout(() => { - setClicked(false); - }, 1000); - } - }> - {`${duration}ms`} - -

{clicked ? "Click!" : ""}

-
- ); - };*/ - const content = [ - /*(
-
- -

- -
-
-
Disabled
- {[200, 250, 300, 400, 500, 1000, 2000, 3000].flatMap((v) => { - return - })} -
-
),*/ (), (), ()