fonts and cleanup
This commit is contained in:
1 parent
1ba1649c20
commit
11d575e8cb
4 files changed
+48
-52
No files matched your search
Generated
+10
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
|
||||
+1
-52
@@ -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<HTMLInputElement>): 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 (
|
||||
<div style={{ marginBottom: "1rem" }}>
|
||||
<ChargedButton holdDuration={duration} onAction={() => {
|
||||
setClicked(true);
|
||||
setTimeout(() => {
|
||||
setClicked(false);
|
||||
}, 1000);
|
||||
}
|
||||
}>
|
||||
{`${duration}ms`}
|
||||
</ChargedButton>
|
||||
<p>{clicked ? "Click!" : ""}</p>
|
||||
</div>
|
||||
);
|
||||
};*/
|
||||
|
||||
const content = [
|
||||
/*(<div key={999} style={{
|
||||
display: "flex",
|
||||
flexDirection: "row",
|
||||
columnGap: "2rem",
|
||||
alignItems: "center"
|
||||
}}>
|
||||
<div style={{textAlign: "center"}}>
|
||||
<input type="number" placeholder="Dauer" value={test.toString()} onChange={handleChange} style={{marginBottom: "1rem"}}/>
|
||||
<br></br>
|
||||
<ExampleButton duration={test}></ExampleButton>
|
||||
</div>
|
||||
<div>
|
||||
<div style={{
|
||||
marginBottom: "1rem"
|
||||
}}><ChargedButton disabled={true}>Disabled</ChargedButton></div>
|
||||
{[200, 250, 300, 400, 500, 1000, 2000, 3000].flatMap((v) => {
|
||||
return <ExampleButton duration={v} key={v}></ExampleButton>
|
||||
})}
|
||||
</div>
|
||||
</div>),*/
|
||||
(<WelcomeScreen key={0}/>),
|
||||
(<Intro key={1} />),
|
||||
(<Tour key={2} />)
|
||||
|
||||
Reference in new issue
Block a user