CLASSROOMIO-T-47:fixed the dark mode and also made the it vertically aligned on mobile
This commit is contained in:
+35
-23
@@ -1,42 +1,54 @@
|
|||||||
<script>
|
<script>
|
||||||
import { stores, goto } from '@sapper/app';
|
import { stores, goto } from '@sapper/app';
|
||||||
const { page } = stores();
|
import { appStore } from '../utils/store/app';
|
||||||
import PrimaryButton from '../components/PrimaryButton/index.svelte';
|
import PrimaryButton from '../components/PrimaryButton/index.svelte';
|
||||||
|
const { page } = stores();
|
||||||
const src = './bg-404.png';
|
const src = './bg-404.png';
|
||||||
|
|
||||||
$: console.log('route', $page);
|
$: console.log('route', $page);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style="background-image:url({src});
|
style={$appStore.isDark ? `background-image:url(${src})` : ''}
|
||||||
background-size:contain"
|
class={`error bg-gray-200 bg-no-repeat bg-cover flex items-center justify-center w-screen gap-20`}
|
||||||
class="error flex items-center justify-center w-screen overflow-hidden"
|
|
||||||
>
|
>
|
||||||
<div
|
<div class=" dark:text-white gap-3 w-4/5 lg:w-2/5">
|
||||||
class="error flex items-center justify-center gap-20 bg-gray-200 dark:bg-transparent"
|
<p class="text-3xl dark:text-white font-semibold mb-5">
|
||||||
>
|
Oops😕,where did the page go?
|
||||||
<div class=" dark:text-white gap-3 w-2/5">
|
</p>
|
||||||
<p class="text-3xl dark:text-white font-semibold mb-5">
|
<p class="text-base text-gray-600 dark:text-white mb-5">
|
||||||
Oops😕,where did the page go?
|
We're sorry, but something went wrong and we can't show you the page
|
||||||
</p>
|
you're looking for. In the meantime, here's a joke to make you laugh:<br
|
||||||
<p class="text-base text-gray-600 dark:text-white mb-5">
|
|
||||||
We're sorry, but something went wrong and we can't show you the page
|
|
||||||
you're looking for. In the meantime, here's a joke to make you laugh:<br
|
|
||||||
/>
|
|
||||||
What do you call a fish with no eyes? Fsh!
|
|
||||||
</p>
|
|
||||||
<PrimaryButton
|
|
||||||
label="Go to Home"
|
|
||||||
className="rounded-md"
|
|
||||||
onClick={() => goto('/')}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
What do you call a fish with no eyes? Fsh!
|
||||||
<img src="/classroom-404.png" alt="classroomio_error_image" />
|
</p>
|
||||||
|
<PrimaryButton
|
||||||
|
label="Go to Home"
|
||||||
|
className="rounded-md"
|
||||||
|
onClick={() => goto('/')}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<img
|
||||||
|
src="/classroom-404.png"
|
||||||
|
alt="classroomio_error_image"
|
||||||
|
class="errorImg"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.error {
|
.error {
|
||||||
height: calc(100vh - 57px);
|
height: calc(100vh - 57px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 920px) {
|
||||||
|
.error {
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
.errorImg {
|
||||||
|
width: 160px;
|
||||||
|
height: 160px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user