Create 500 page
This commit is contained in:
parent
010e82bb0f
commit
97dfa3d122
1 changed files with 22 additions and 0 deletions
22
src/pages/500.astro
Normal file
22
src/pages/500.astro
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
// Fetch Error Message
|
||||||
|
interface Props {
|
||||||
|
error: unknown
|
||||||
|
}
|
||||||
|
|
||||||
|
const { error } = Astro.props
|
||||||
|
---
|
||||||
|
|
||||||
|
<h2>Error 500</h2>
|
||||||
|
<p style="color: gray; font-size: 12px; margin: 0px; font-weight: bold;">An error happened in Astro:</p>
|
||||||
|
<p style="margin-top: 6px;">{error.message}</p>
|
||||||
|
|
||||||
|
<style is:global>
|
||||||
|
body {
|
||||||
|
background: #111c29;
|
||||||
|
color: white;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
margin: auto;
|
||||||
|
max-width: 1200px;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in a new issue