pcmt/templates/errorPage.tmpl

25 lines
896 B
Go HTML Template

{{ template "head.tmpl" . }}
<body class="h-screen bg-white dark:bg-gray-900">
{{ template "navbar.tmpl" . }}
<main class="grow">
<div class="container mx-auto md:items-center text-center">
<div class="place-items-center text-center">
<h1 class="px-2 mt-10 text-7xl font-bold text-purple-700 dark:text-purple-400">
Error {{ .Status }}
</h1>
<h2 class="px-2 mt-10 text-3xl font-bold text-purple-500 dark:text-purple-300">
{{ .StatusText }}
</h2>
{{ if .DevelMode }}
<p class="p-2 mt-4 text-xl font-medium italic text-red-600 dark:text-red-500">
Debug: {{ .Error }}<br />
</p>
{{ end }}
<div class="w-1/2 md:w-full px-auto py-3 mx-auto text-sm font-medium tracking-wide text-blue-500 dark:text-blue-500 transition-colors duration-300 hover:underline">
<a href="/">Get back home</a>
</div>
</div>
</div>
</main>
{{ template "footer.tmpl" . }}