|
|
@@ -0,0 +1,27 @@
|
|
|
+<script>
|
|
|
+ let title = $state("");
|
|
|
+ let gameContext = $state("");
|
|
|
+
|
|
|
+ const submit = async ()=>{
|
|
|
+ console.log("submit");
|
|
|
+ }
|
|
|
+
|
|
|
+ const autofocus = (node)=>{
|
|
|
+ node.focus();
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<main>
|
|
|
+ <form onsubmit={submit}>
|
|
|
+ <label>Title:
|
|
|
+ <input bind:value={title} type="text" required use:autofocus>
|
|
|
+ </label>
|
|
|
+
|
|
|
+ <label>Game Information:
|
|
|
+ <textarea
|
|
|
+ bind:value={gameContext}
|
|
|
+ required
|
|
|
+ ></textarea>
|
|
|
+ </label>
|
|
|
+ </form>
|
|
|
+</main>
|