clove/pkviewer
web/src/routes/manage/+error.svelte
<!-- web/src/routes/manage/+error.svelte -->
<script lang="ts">
import { page } from "$app/state";
import Icon from "$lib/components/Icon.svelte";
// A missing system and one you cannot manage read identically, so neither confirms the other exists.
// The error itself is never rendered: it can carry internal detail.
</script>
<svelte:head>
<title>Manage · pkviewer</title>
</svelte:head>
<div class="mg-shell">
{#if page.status === 404}
<section class="mg-panel">
<h2><Icon name="question-circle" /> Not found</h2>
<p class="hint">
This is not something you can manage. It may not exist, or it may
belong to someone else.
</p>
<a class="btn" href="/manage">Back to your systems</a>
</section>
{:else}
<section class="mg-panel" role="alert">
<h2><Icon name="exclamation-triangle" /> This page could not be loaded</h2>
<p class="hint">
Something went wrong on our side. Your settings have not been changed.
</p>
<button type="button" class="primary" onclick={() => location.reload()}>
<Icon name="arrow-clockwise" /> Try again
</button>
<a class="btn" href="/manage">Back to your systems</a>
</section>
{/if}
</div>