Skip to content

Commit

Permalink
Fix redirection in blocked page
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrench56 committed Jul 8, 2024
1 parent 7ee7dd9 commit a0eb1fc
Showing 1 changed file with 27 additions and 16 deletions.
43 changes: 27 additions & 16 deletions src/frontend/src/routes/blocked/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
<script lang="ts">
function redirect() {
window.location.href = "/";
}
</script>

<h1>Blocked</h1>
<p>You are not logged in!</p>
<a href="/login">Login here</a>

<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<p class="redirect" on:click={() => redirect()}>Login here</p>

<style>
h1 {
color: whitesmoke;
font-family: monaco, Consolas, "Lucida Console", monospace;
}
h1 {
color: whitesmoke;
font-family: monaco, Consolas, "Lucida Console", monospace;
}
p {
color: whitesmoke;
font-family: monaco, Consolas, "Lucida Console", monospace;
}
p {
color: whitesmoke;
font-family: monaco, Consolas, "Lucida Console", monospace;
}
a {
color: rgb(102, 153, 255);
font-family: monaco, Consolas, "Lucida Console", monospace;
}
.redirect {
margin-top: 0px;
color: rgb(102, 153, 255);
font-family: monaco, Consolas, "Lucida Console", monospace;
cursor: pointer;
}
:root {
background-color: black;
}
:root {
background-color: black;
}
</style>

0 comments on commit a0eb1fc

Please sign in to comment.