Skip to content

Commit 5afaa2f

Browse files
something went wrong page
Signed-off-by: jackdisalvatore <[email protected]>
1 parent 215221e commit 5afaa2f

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<script>
2+
import { fade } from 'svelte/transition';
3+
</script>
4+
5+
<div
6+
class="flex h-full w-full items-center justify-center"
7+
style="background-color: hsl(var(--primary));height: 100dvh;"
8+
>
9+
<div>
10+
<h1 in:fade={{ duration: 2000 }}>
11+
{`:( Oh No!`}
12+
</h1>
13+
<h1 in:fade={{ delay: 1000, duration: 2000 }}>
14+
{`Something Went Wrong`}
15+
</h1>
16+
</div>
17+
</div>
18+
19+
<style>
20+
h1 {
21+
font-size: 4.5rem;
22+
color: hsl(var(--primary-content));
23+
margin: 2%;
24+
}
25+
</style>

frontend/src/routes/+layout.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import UnityAuthContextProvider from '$lib/context/UnityAuthContextProvider.svelte';
1111
import { getModeFromEnv, type Mode } from '$lib/services/mode/mode';
1212
import User from '$lib/components/User/User.svelte';
13+
import SomethingWentWrong from '$lib/components/SomethingWentWrong/SomethingWentWrong.svelte';
1314
1415
let contextProviderProps: AsyncResult<UnityAuthContextProviderProps> = ASYNC_IN_PROGRESS;
1516
@@ -51,7 +52,7 @@
5152
{:else if contextProviderProps.type == 'inProgress'}
5253
<!-- <SplashLoading /> -->
5354
{:else}
54-
<!-- <SomethingWentWrong /> -->
55+
<SomethingWentWrong />
5556
{/if}
5657

5758
<style>

0 commit comments

Comments
 (0)