diff options
Diffstat (limited to 'src/frontend')
| -rw-r--r-- | src/frontend/ts/login.ts | 12 | ||||
| -rw-r--r-- | src/frontend/tsconfig.json | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/frontend/ts/login.ts b/src/frontend/ts/login.ts new file mode 100644 index 0000000..6ff53cd --- /dev/null +++ b/src/frontend/ts/login.ts @@ -0,0 +1,12 @@ +let html = /* html */` + <div class="container text-center fs-1" style="margin-top: 45vh;"> + <label for="username">Vad heter du?</label> + <input type="text" name="username" required> + <button type="button" class="btn btn-light btn-lg" onclick="login">Starta spelet</button> + </div> +`; +document.body.innerHTML = html; + +function login() { + +}
\ No newline at end of file diff --git a/src/frontend/tsconfig.json b/src/frontend/tsconfig.json new file mode 100644 index 0000000..b0975f3 --- /dev/null +++ b/src/frontend/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "lib": [ + "DOM" + ], + "outDir": "../../public/js" + }, + "include": [ + "ts/**/*" + ] +}
\ No newline at end of file |
