error page, cleanup +layout slightly
This commit is contained in:
parent
3f3eea8f09
commit
ace334e5a3
|
@ -0,0 +1,39 @@
|
||||||
|
<script>
|
||||||
|
import { page } from '$app/stores';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.content {
|
||||||
|
max-width: 600px;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
.gradient {
|
||||||
|
font-size: 5rem;
|
||||||
|
line-height: 1.0;
|
||||||
|
background: repeating-linear-gradient(98deg, rgba(190,190,190,1) 0%, rgba(190,190,190,1) 10%, rgba(207,207,207,1) 10%, rgba(207,207,207,1) 20%);
|
||||||
|
background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
margin-bottom: 0.15em;
|
||||||
|
}
|
||||||
|
.error {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<div class="error">
|
||||||
|
<div class="gradient">
|
||||||
|
<h1>{$page.status}</h1>
|
||||||
|
</div>
|
||||||
|
{$page.error.message}
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -30,11 +30,23 @@
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.location.errored {
|
||||||
|
color: #e95678;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
<header>
|
<header>
|
||||||
<CommandLine>
|
<CommandLine>
|
||||||
cd {(new URL($page.url)).pathname}
|
cd <span class="location" class:errored={$page.error !== null}>{(new URL($page.url)).pathname}</span>
|
||||||
</CommandLine>
|
</CommandLine>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
@ -47,3 +59,4 @@
|
||||||
<a href={constants.repo} target="_blank" rel="noopener noreferrer">powered by {constants.name}</a>
|
<a href={constants.repo} target="_blank" rel="noopener noreferrer">powered by {constants.name}</a>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
</div>
|
Loading…
Reference in New Issue