2020-12-24 20:32:05 +02:00
|
|
|
<script>
|
2021-07-31 23:06:14 +03:00
|
|
|
export let status;
|
|
|
|
|
export let error;
|
2020-12-24 20:32:05 +02:00
|
|
|
|
2021-08-21 10:18:10 +03:00
|
|
|
// const dev = process.env.NODE_ENV === 'development';
|
|
|
|
|
let errorContent;
|
|
|
|
|
|
|
|
|
|
// function report() {}
|
|
|
|
|
|
|
|
|
|
$: {
|
|
|
|
|
try {
|
|
|
|
|
errorContent = !!error ? JSON.stringify(error) : '';
|
|
|
|
|
} catch (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>
|
|
|
|
|
|
2021-08-21 10:18:10 +03:00
|
|
|
<div class="w-3/5 h-3/5 m-auto flex flex-col items-center justify-center">
|
|
|
|
|
<h1>Opps 😢</h1>
|
|
|
|
|
<h2>Something wen't wrong and it's our fault.</h2>
|
|
|
|
|
<p>Please screenshot this page and send to me.</p>
|
|
|
|
|
<pre>
|
|
|
|
|
{errorContent}
|
|
|
|
|
</pre>
|
|
|
|
|
</div>
|
2020-12-24 20:32:05 +02:00
|
|
|
|
2021-08-21 10:18:10 +03:00
|
|
|
<!-- {#if dev && error.stack}
|
|
|
|
|
<h1>{status}</h1>
|
2020-12-24 20:32:05 +02:00
|
|
|
|
2021-08-21 10:18:10 +03:00
|
|
|
<p>{error.message}</p>
|
2021-07-31 23:06:14 +03:00
|
|
|
<pre>{error.stack}</pre>
|
2021-08-21 10:18:10 +03:00
|
|
|
{/if} -->
|
2021-07-31 23:06:14 +03:00
|
|
|
<style>
|
|
|
|
|
h1,
|
|
|
|
|
p {
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-21 10:18:10 +03:00
|
|
|
pre {
|
|
|
|
|
width: 500px;
|
|
|
|
|
white-space: pre-wrap; /* css-3 */
|
|
|
|
|
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
|
|
|
|
white-space: -pre-wrap; /* Opera 4-6 */
|
|
|
|
|
white-space: -o-pre-wrap; /* Opera 7 */
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-31 23:06:14 +03:00
|
|
|
h1 {
|
|
|
|
|
font-size: 2.8em;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
margin: 0 0 0.5em 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
p {
|
|
|
|
|
margin: 1em auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 480px) {
|
|
|
|
|
h1 {
|
|
|
|
|
font-size: 4em;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|