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,20 +30,33 @@
|
||||||
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>
|
||||||
|
|
||||||
<header>
|
<div class="content">
|
||||||
<CommandLine>
|
<header>
|
||||||
cd {(new URL($page.url)).pathname}
|
<CommandLine>
|
||||||
</CommandLine>
|
cd <span class="location" class:errored={$page.error !== null}>{(new URL($page.url)).pathname}</span>
|
||||||
</header>
|
</CommandLine>
|
||||||
|
</header>
|
||||||
|
|
||||||
<slot/>
|
<slot/>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<a href="https://cohost.org/{config.handle}/tagged/{config.tag}" target="_blank" rel="noopener noreferrer">view on cohost</a>
|
<a href="https://cohost.org/{config.handle}/tagged/{config.tag}" target="_blank" rel="noopener noreferrer">view on cohost</a>
|
||||||
·
|
·
|
||||||
<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