diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/LoginBody.astro | 2 | ||||
-rw-r--r-- | src/components/ResultsBody.astro | 5 | ||||
-rw-r--r-- | src/components/SignupBody.astro | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/components/LoginBody.astro b/src/components/LoginBody.astro index d965274..59c2ca1 100644 --- a/src/components/LoginBody.astro +++ b/src/components/LoginBody.astro @@ -45,7 +45,7 @@ // Redirect to admin page if login is successful if (response.ok) { - window.location.href = "/admin"; + window.location.href = "/announce"; } else { errorMessageElement.innerText = (await response.json()).error; } diff --git a/src/components/ResultsBody.astro b/src/components/ResultsBody.astro index b08b017..03914db 100644 --- a/src/components/ResultsBody.astro +++ b/src/components/ResultsBody.astro @@ -1,4 +1,6 @@ --- +import CountdownTimer from "./CountdownTimer.astro"; + // Can be used in other pages to check if the user is logged in or not @@ -15,8 +17,9 @@ else{ --- -<div class="resultsContainer"> +<div class="resultsContainer "> <div class="pre min-h-screen flex flex-col items-center justify-center"> + <CountdownTimer /> <h1 class="mb-10">Results will be announced soon</h1> <a href = "/login" type="submit" class="w-40 bg-purple-600 no-underline text-center text-white py-2 rounded-lg hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-600" id="Adminbtn">Admin Login<a/> </div> diff --git a/src/components/SignupBody.astro b/src/components/SignupBody.astro index 70b12df..f98afb9 100644 --- a/src/components/SignupBody.astro +++ b/src/components/SignupBody.astro @@ -47,7 +47,7 @@ }); // Redirect to admin page if successful if (response.ok) { - window.location.href = "/admin"; + window.location.href = "/announce"; } else { errorMessageElement.innerText = (await response.json()).error; } |