diff options
Diffstat (limited to 'frontend/index.html')
| -rw-r--r-- | frontend/index.html | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/frontend/index.html b/frontend/index.html index deceae5..0eeb0b0 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,9 +2,9 @@ <html lang="en"> <head> <meta charset="UTF-8" /> - <link rel="icon" type="image/svg+xml" href="/vite.svg" /> + <link rel="stylesheet" href="./style.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <title>frontend</title> + <title>Victoria Hall LaundryWeb</title> <script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script> <script> window.OneSignalDeferred = window.OneSignalDeferred || []; @@ -19,7 +19,27 @@ </script> </head> <body> - <button id="notbtn"></button> - <script src="main.js"></script> + <div class="section-container row bg-1" style="height: 164px;"> + <span id="logo">Victoria Hall<br>LaundryWeb</span> + <span id="logo-id">H1</span> + </div> + <div class="section-container row bg-2" style="padding: 8px; gap: 8px;"> + <button class="button button-tab bg-3" disabled>Timer</button> + <button class="button button-tab bg-3" onclick="window.location.href = '/status/'">Status</button> + </div> + <div class="section-container no-pad"> + <span>Loading...</span> + </div> + <script src="/main.js"></script> + <script> + (async () => { + const result = await checkUserStatus(); + if (result != "you got laundry") { + window.location.href = './start/'; + } else { + window.location.href = './timer/'; + } + })(); + </script> </body> </html> |
