fix: improve design of error pages (#68)

This commit is contained in:
Daniel Roe 2022-03-10 20:26:33 +00:00 committed by GitHub
parent 62e2f94fcd
commit 2d0f988ed1
2 changed files with 55 additions and 45 deletions

View File

@ -17,22 +17,23 @@
dark:text-sky-surface dark:text-sky-surface
"> ">
<div class="min-h-screen md:flex"> <div class="min-h-screen md:flex">
<div class="flex items-center justify-center w-full md:w-1/2"> <div class="flex items-center justify-center w-full max-w-full">
<div class="max-w-sm m-8"> <div class="max-w-full lg:max-w-10xl m-8 p-4">
<div class="text-5xl font-bold dark:text-white md:text-15xl"> <div class="md:max-w-sm text-5xl font-bold dark:text-white md:text-15xl">
{{ messages.statusCode }} {{ messages.statusCode }}
</div> </div>
<div class="w-16 h-1 my-3 bg-primary md:my-6"></div> <div class="w-16 h-1 my-3 bg-primary md:my-6"></div>
<p class=" <div class="
mb-8 mb-8
text-2xl text-2xl
font-light font-light
leading-normal leading-normal
dark:text-cloud-lighter dark:text-cloud-lighter
md:text-3xl md:text-3xl
"> max-w-sm
">
{{ messages.description }} {{ messages.description }}
</p> </div>
</div> </div>
</div> </div>
<div class=" <div class="

View File

@ -1,45 +1,54 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<title>{{ messages.statusCode }} - {{ messages.statusMessage }} | {{ messages.appName }}</title> <head>
<meta charset="utf-8" /> <title>{{ messages.statusCode }} - {{ messages.statusMessage }} | {{ messages.appName }}</title>
<meta <meta charset="utf-8" />
content="width=device-width,initial-scale=1.0,minimum-scale=1.0" <meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0" name="viewport" />
name="viewport" <script type="module" src="/styles.ts"></script>
/> </head>
<script type="module" src="/styles.ts"></script>
</head> <body class="
<body
class="
font-sans font-sans
antialiased antialiased
bg-cloud-surface bg-cloud-surface
dark:bg-sky-darker dark:bg-sky-darker
text-sky-darkest text-sky-darkest
dark:text-sky-surface dark:text-sky-surface
" ">
> <div class="min-h-screen md:flex">
<div class="min-h-screen md:flex"> <div class="flex items-center justify-center w-full max-w-full">
<div class="flex items-center justify-center w-full md:w-1/2"> <div class="max-w-full lg:max-w-10xl m-8 p-4">
<div class="max-w-sm m-8"> <div class="md:max-w-sm text-5xl font-bold dark:text-white md:text-15xl">
<div class="text-5xl font-bold dark:text-white md:text-15xl"> {{ messages.statusCode }}
{{ messages.statusCode }} </div>
</div> <div class="w-16 h-1 my-3 bg-primary md:my-6"></div>
<div class="w-16 h-1 my-3 bg-primary md:my-6"></div> <div class="
<p mb-8
class=" text-2xl
mb-8 font-light
text-2xl leading-normal
font-light dark:text-cloud-lighter
leading-normal md:text-3xl
dark:text-cloud-lighter max-w-sm
md:text-3xl ">
" {{ messages.description }}
> </div>
{{ messages.description }} <div class="
</p> mb-8
text-sm
leading-normal
dark:text-cloud-lighter
md:text-lg
white
overflow-scroll
max-w-full
">
{{ messages.stack }}
</div> </div>
</div> </div>
</div> </div>
</body> </div>
</body>
</html> </html>