2020-12-24 20:32:05 +02:00
|
|
|
<script>
|
2023-07-15 19:45:04 +00:00
|
|
|
import { goto } from '@sapper/app';
|
|
|
|
|
import { appStore } from '../utils/store/app';
|
|
|
|
|
import ErrorIcon from '../components/Icons/ErrorIcon.svelte';
|
|
|
|
|
import ErrorIconDarkMode from '../components/Icons/ErrorIconDarkMode.svelte';
|
|
|
|
|
|
2021-07-31 23:06:14 +03:00
|
|
|
export let status;
|
|
|
|
|
export let error;
|
2020-12-24 20:32:05 +02:00
|
|
|
|
2023-07-15 19:45:04 +00:00
|
|
|
if (status == 404) {
|
|
|
|
|
goto('/404');
|
2021-08-21 10:18:10 +03:00
|
|
|
}
|
2023-07-15 19:45:04 +00:00
|
|
|
console.error(error);
|
2020-12-24 20:32:05 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<svelte:head>
|
2021-07-31 23:06:14 +03:00
|
|
|
<title>{status}</title>
|
2020-12-24 20:32:05 +02:00
|
|
|
</svelte:head>
|
|
|
|
|
|
2023-07-15 19:45:04 +00:00
|
|
|
<div
|
|
|
|
|
class="error-container m-auto flex flex-col-reverse lg:flex-row md:flex-col-reverse items-center justify-center h-full py-10 dark:bg-gray-800"
|
|
|
|
|
>
|
|
|
|
|
<div class="md:w-full p-2 lg:w-2/4">
|
|
|
|
|
<h2 class="w-full text-lg lg:text-3xl font-medium lg:font-normal">
|
|
|
|
|
Something unexpected occured.
|
|
|
|
|
</h2>
|
|
|
|
|
<p class="dark:text-white w-full text-base font-normal my-6 text-gray-600">
|
|
|
|
|
Don't worry, your learning is safe. It isn't your fault, it is ours. We
|
|
|
|
|
have gotten the error notification and will push a fix ASAP. In the
|
|
|
|
|
meantime, take a short break and come back a bit later.
|
|
|
|
|
</p>
|
|
|
|
|
<a
|
|
|
|
|
class="bg-blue-700 hover:bg-blue-900 hover:no-underline transition-all py-3 px-9 rounded-xl text-white mt-3"
|
|
|
|
|
href="mailto:support@classroomio.com">Contact Us</a
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="w-72 lg:w-2/4 flex items-center justify-center">
|
|
|
|
|
<!-- to check if it's in dark mode so as to render the appropriate svg -->
|
|
|
|
|
{#if $appStore.isDark}
|
|
|
|
|
<ErrorIconDarkMode />
|
|
|
|
|
{:else}
|
|
|
|
|
<ErrorIcon />
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
2021-08-21 10:18:10 +03:00
|
|
|
</div>
|
2020-12-24 20:32:05 +02:00
|
|
|
|
2021-07-31 23:06:14 +03:00
|
|
|
<style>
|
2023-07-15 19:45:04 +00:00
|
|
|
.error-container {
|
|
|
|
|
max-width: 964px;
|
2021-07-31 23:06:14 +03:00
|
|
|
}
|
|
|
|
|
</style>
|