File size: 1,038 Bytes
0ad74ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<script lang="ts">
	import { page } from "$app/stores";
	import gradio_banner from "$lib/assets/img/header-faded.jpg";
	import logo_melted from "$lib/assets/img/logo-melted.png";
</script>

<div class="flex-1 m-auto">
	<div class="pb-32 pt-16 text-center 2xl:pb-40 2xl:pt-16">
		<img class="m-auto w-32 logo" src={logo_melted} />
		<h1
			class="error-code m-auto max-w-xl text-4xl font md:text-6xl pb-4 z-10 relative"
		>
			{$page.status}
		</h1>
		<h2
			class="mx-auto max-w-xl text-2xl text-gray-500 md:text-4xl z-10 relative"
		>
			{$page.error?.message}
		</h2>
		<img class="banner-faded mx-auto" src={gradio_banner} />
	</div>
</div>

<style>
	.banner-faded {
		-webkit-mask-image: -webkit-gradient(
			linear,
			left bottom,
			left top,
			from(rgba(0, 0, 0, 1)),
			to(rgba(0, 0, 0, 0))
		);
		mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
		position: absolute;
		top: 0;
		left: 10%;
		width: 80%;
	}
	.logo {
		position: relative;
		z-index: 10;
	}

	.error-code {
		color: #f77b05;
	}
</style>