Update error handling page
This commit is contained in:
parent
ec0fff381f
commit
3695f9ff76
2 changed files with 55 additions and 389 deletions
|
|
@ -1,8 +1,11 @@
|
|||
<script>
|
||||
import {onMount} from 'svelte'
|
||||
import Banner from '../components/Banner.svelte'
|
||||
<script lang="ts">
|
||||
import { onMount } from "svelte";
|
||||
import Banner from "../components/Banner.svelte";
|
||||
|
||||
const dev = process.env.NODE_ENV === 'development';
|
||||
export let status: string;
|
||||
export let error: Error;
|
||||
|
||||
const dev = process.env.NODE_ENV === "development";
|
||||
|
||||
var appa = ` .,-:;//;:=,
|
||||
. :H@@@MM@M#H/.,+%;,
|
||||
|
|
@ -216,16 +219,79 @@ H@: :HHHHHHHHHHHHHHHHHHX, =@H
|
|||
|
||||
// appa, atom, nuke
|
||||
var options = [cake, heart, fire, tick, bang, mesa, cube];
|
||||
let active = cake
|
||||
let active = cake;
|
||||
|
||||
function updateView() {
|
||||
active = options[Math.floor((Math.random() * options.length))];
|
||||
active = options[Math.floor(Math.random() * options.length)];
|
||||
setTimeout(updateView, 5000);
|
||||
}
|
||||
|
||||
onMount(() => updateView());
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>Quartnzet -</title>
|
||||
</svelte:head>
|
||||
|
||||
<Banner title={status} />
|
||||
|
||||
<main class="container">
|
||||
<!-- <p>{error.message}</p> -->
|
||||
|
||||
<!-- {#if dev && error.stack} -->
|
||||
<!-- <pre>{error.stack}</pre> -->
|
||||
<!-- {:else} -->
|
||||
<audio controls autoplay>
|
||||
<track kind="captions" />
|
||||
<source src="http://quartznet.info/alive.ogg" type="audio/wav" />
|
||||
</audio>
|
||||
<div class="ascii">
|
||||
<div>
|
||||
<pre><br />{active}</pre>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<p class="info">This was a triumph! I'm making a note here: Huge success!
|
||||
It's hard to overstate my satisfaction.
|
||||
|
||||
Aperture Science: We do what we must because we can.
|
||||
For the good of all of us. Except the ones who are dead.
|
||||
|
||||
But there's no sense crying over every mistake. You just keep on trying 'til you run out of cake.
|
||||
And the science gets done. And you make a neat gun for the people who are still alive.
|
||||
|
||||
I'm not even angry... I'm being so sincere right now. Even though you broke my heart, and killed me.
|
||||
And tore me to pieces. And threw every piece into a fire.
|
||||
|
||||
As they burned it hurt because I was so happy for you!
|
||||
Now, these points of data make a beautiful line. And we're out of beta. We're releasing on time!
|
||||
|
||||
So I'm GLaD I got burned! Think of all the things we learned! for the people who are still alive.
|
||||
|
||||
Go ahead and leave me... I think I'd prefer to stay inside... Maybe you'll find someone else to help
|
||||
you.
|
||||
|
||||
Maybe Black Mesa?
|
||||
That was a joke. Ha Ha. Fat Chance! Anyway this cake is great! It's so delicious and moist!
|
||||
|
||||
Look at me: still talking when there's science to do! When I look out there, it makes me glad I'm not you.
|
||||
I've experiments to run. There is research to be done. On the people who are still alive.
|
||||
|
||||
And believe me I am still alive.
|
||||
|
||||
I'm doing science and I'm still alive.
|
||||
|
||||
I feel fantastic and I'm still alive.
|
||||
|
||||
While you're dying I'll be still alive.
|
||||
|
||||
And when you're dead I will be still alive.
|
||||
|
||||
Still alive.
|
||||
Still alive.</p>
|
||||
<!-- {/if} -->
|
||||
</main>
|
||||
|
||||
<style>
|
||||
* {
|
||||
color: white !important;
|
||||
|
|
@ -234,7 +300,7 @@ H@: :HHHHHHHHHHHHHHHHHHX, =@H
|
|||
}
|
||||
|
||||
.ascii {
|
||||
text-align: center;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
|
@ -251,100 +317,3 @@ H@: :HHHHHHHHHHHHHHHHHHX, =@H
|
|||
white-space: pre;
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:head>
|
||||
<title>404 - Page not found</title>
|
||||
</svelte:head>
|
||||
|
||||
<Banner title="404"/>
|
||||
|
||||
<main class="container">
|
||||
<p>The requested page could not be found.</p>
|
||||
|
||||
<audio controls autoplay>
|
||||
<track kind="captions"/>
|
||||
<source src="http://quartznet.info/../../alive.ogg" type="audio/wav">
|
||||
</audio>
|
||||
<div class="ascii">
|
||||
<div>
|
||||
<pre><br>{active}</pre>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<p class="info">
|
||||
This was a triumph!
|
||||
I'm making a note here:
|
||||
Huge success!
|
||||
|
||||
It's hard to overstate
|
||||
my satisfaction.
|
||||
|
||||
Aperture Science:
|
||||
We do what we must
|
||||
because we can
|
||||
For the good of all of us.
|
||||
Except the ones who are dead.
|
||||
|
||||
But there's no sense crying
|
||||
over every mistake.
|
||||
You just keep on trying
|
||||
'til you run out of cake.
|
||||
And the science gets done.
|
||||
And you make a neat gun
|
||||
for the people who are
|
||||
still alive.
|
||||
|
||||
I'm not even angry...
|
||||
I'm being so sincere right now.
|
||||
Even though you broke my heart,
|
||||
and killed me.
|
||||
|
||||
And tore me to pieces.
|
||||
And threw every piece into a fire.
|
||||
As they burned it hurt because
|
||||
I was so happy for you!
|
||||
|
||||
Now, these points of data
|
||||
make a beautiful line.
|
||||
And we're out of beta.
|
||||
We're releasing on time!
|
||||
So I'm GLaD I got burned!
|
||||
Think of all the things we learned!
|
||||
for the people who are
|
||||
still alive.
|
||||
|
||||
Go ahead and leave me...
|
||||
I think I'd prefer to stay inside...
|
||||
Maybe you'll find someone else
|
||||
to help you.
|
||||
Maybe Black Mesa?
|
||||
That was a joke. Ha Ha. Fat Chance!
|
||||
|
||||
Anyway this cake is great!
|
||||
It's so delicious and moist!
|
||||
|
||||
Look at me: still talking
|
||||
when there's science to do!
|
||||
When I look out there,
|
||||
it makes me glad I'm not you.
|
||||
|
||||
I've experiments to run.
|
||||
There is research to be done.
|
||||
On the people who are
|
||||
still alive.
|
||||
And believe me I am
|
||||
still alive.
|
||||
I'm doing science and I'm
|
||||
still alive.
|
||||
I feel fantastic and I'm
|
||||
still alive.
|
||||
While you're dying I'll be
|
||||
still alive.
|
||||
And when you're dead I will be
|
||||
still alive
|
||||
|
||||
Still alive.
|
||||
|
||||
Still alive.
|
||||
</p>
|
||||
</main>
|
||||
Loading…
Reference in a new issue