fonts and cleanup
This commit is contained in:
1 parent
1ba1649c20
commit
11d575e8cb
4 files changed
+48
-52
No files matched your search
+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