Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions dashboard/src/routes/+error.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<script lang="ts">
import { page } from '$app/stores';
</script>

<svelte:head>
<title>Error {$page.status} — Coverage Tracker</title>
</svelte:head>

<div class="error-page">
<p class="status">{$page.status}</p>
<h1>{$page.error?.message ?? 'Something went wrong'}</h1>
<a href="/">Back to dashboard</a>
</div>

<style>
.error-page {
max-width: 1180px;
margin: 0 auto;
padding: 60px 24px 72px;
}

.status {
font-family: var(--font-mono);
font-size: 13px;
font-weight: 600;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.06em;
margin: 0 0 12px;
}

h1 {
font-family: var(--font-mono);
font-size: 22px;
font-weight: 700;
color: var(--text);
margin: 0 0 24px;
letter-spacing: -0.01em;
}

a {
font-size: 13px;
color: var(--link);
text-decoration: none;
}

a:hover {
text-decoration: underline;
}
</style>
2 changes: 1 addition & 1 deletion dashboard/static/_headers
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Referrer-Policy: strict-origin-when-cross-origin
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com; style-src 'self' 'unsafe-inline'; img-src 'self' https://avatars.githubusercontent.com; connect-src 'self' https://cloudflareinsights.com; frame-ancestors 'none'; base-uri 'self'; form-action 'self'
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src 'self' https://avatars.githubusercontent.com; connect-src 'self' https://cloudflareinsights.com; frame-ancestors 'none'; base-uri 'self'; form-action 'self'
Loading