Skip to content

Commit 960c2c1

Browse files
authored
fix error page (#226)
1 parent f24605a commit 960c2c1

File tree

1 file changed

+7
-27
lines changed

1 file changed

+7
-27
lines changed

apps/svelte.dev/src/routes/+error.svelte

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,12 @@
2525
</p>
2626
{:else}
2727
<h1>Yikes!</h1>
28-
<p>Something went wrong when we tried to render this page.</p>
29-
{#if $page.error?.message}
30-
<p class="error">{$page.status}: {$page.error.message}</p>
31-
{:else}
32-
<p class="error">Encountered a {$page.status} error.</p>
33-
{/if}
34-
<p>Please try reloading the page.</p>
28+
29+
<p>Something went wrong when we tried to render this page. Please try reloading.</p>
30+
3531
<p>
36-
If the error persists, please drop by the
37-
<a href="/chat"> Discord chatroom </a>
38-
and let us know, or raise an issue on
39-
<a href="https://github.com/sveltejs/sites">GitHub</a>. Thanks!
32+
If the error persists, please let us know on <a href="/chat">Discord</a> or
33+
<a href="https://github.com/sveltejs/svelte.dev/issues">GitHub</a>. Thanks!
4034
</p>
4135
{/if}
4236
{:else}
@@ -58,7 +52,7 @@
5852
}
5953
6054
.inner {
61-
max-width: 50rem;
55+
max-width: 48rem;
6256
text-align: center;
6357
text-wrap: balance;
6458
@@ -67,26 +61,12 @@
6761
}
6862
}
6963
70-
h1,
71-
p {
72-
margin: 0 auto;
73-
}
74-
7564
h1 {
76-
font-size: 2.8em;
77-
font-weight: 300;
65+
font-size: var(--sk-text-xxl);
7866
margin: 0 0 0.5em 0;
7967
}
8068
8169
p {
8270
margin: 1em auto;
8371
}
84-
85-
.error {
86-
background-color: var(--sk-theme-2);
87-
color: white;
88-
padding: 12px 16px;
89-
font: 600 16px/1.7 var(--sk-font-body);
90-
border-radius: 2px;
91-
}
9272
</style>

0 commit comments

Comments
 (0)