This commit is contained in:
2024-03-27 00:32:01 +01:00
parent 6e163f67d5
commit 368e1c9712
20 changed files with 427 additions and 13 deletions

35
src/web/Startup.tsx Normal file
View File

@ -0,0 +1,35 @@
import {Component} from "react";
import GameSetup from "./GameSetup";
interface StartupState {
started: boolean,
}
export default class Startup extends Component<{}, StartupState> {
constructor(props: {}) {
super(props);
this.state = {started: false};
}
componentDidMount() {
}
componentWillUnmount() {
}
render() {
if(!this.state.started)
return <div className="startup">
<h1>Willkommen!</h1>
<p>Smart Monopoly wird gestartet...</p>
{!this.state.started ? <span className="loader"></span> : null}
</div>
else
return <h1>Willkommen!</h1>
}
}