Skip to content

Commit

Permalink
fix(ceremony): move
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Sep 13, 2024
1 parent f63025b commit 6ed4ca8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
11 changes: 10 additions & 1 deletion ceremony/src/lib/components/Ceremony.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import H3 from "$lib/components/typography/H3.svelte"
import H2 from "$lib/components/typography/H2.svelte"
import Install from "$lib/components/Install.svelte"
import { start } from "$lib/client"
import H4 from "$lib/components/typography/H4.svelte";
type Props = {
contributor: ContributorState
Expand All @@ -18,6 +19,11 @@ $effect(() => {
start()
}
})
window.addEventListener("beforeunload", (e: BeforeUnloadEvent) => {
e.preventDefault()
e.returnValue = ""
})
</script>

<div class="p-8 bg-gradient-to-t from-transparent via-black/50 to-transparent backdrop-blur w-full flex items-center justify-center flex-col h-48">
Expand Down Expand Up @@ -50,7 +56,10 @@ $effect(() => {
{:else}
<H1>Loading...</H1>
{/if}

</div>



<div class="absolute bottom-10 left-10">
<H4>Client: <span class="text-union-accent-500">{contributor.clientState}</span></H4>
</div>
5 changes: 0 additions & 5 deletions ceremony/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ $effect(() => {
subscription.unsubscribe()
}
})
window.addEventListener("beforeunload", (e: BeforeUnloadEvent) => {
e.preventDefault()
e.returnValue = ""
})
</script>

<style>
Expand Down
1 change: 0 additions & 1 deletion ceremony/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
{/if}
{/if}


<div class="absolute bottom-10 left-10">
<H4>Client: <span class="text-union-accent-500">{contributor.clientState}</span></H4>
</div>
Expand Down

0 comments on commit 6ed4ca8

Please sign in to comment.