mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-07 13:17:57 -05:00
improve info and error messages
This commit is contained in:
parent
8e913325a1
commit
fbfdd075d7
@ -42,23 +42,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<body class="h-full text-gray-200 bg-fixed bg-black bg-center bg-cover font-samo" style="background-image: url('/static/assets/gradient.webp');">
|
||||
{{if .Error}}
|
||||
<div class="px-4 py-3 text-neutral-100 bg-error">
|
||||
<p class="text-sm font-bold text-center">
|
||||
{{ .Error }}
|
||||
</p>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if .Message}}
|
||||
<div class="px-4 py-3 text-neutral-100 bg-info">
|
||||
<p class="text-sm font-bold text-center">
|
||||
{{ .Message }}
|
||||
</p>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<body class="h-full text-gray-200 bg-fixed bg-black bg-center bg-cover font-samo" style="background-image: url('/static/assets/gradient.webp');">
|
||||
<!-- Nav Bar -->
|
||||
<nav class="flex justify-center items-center w-full bg-none">
|
||||
<div class="flex flex-col justify-between items-center px-4 w-full max-w-6xl md:flex-row">
|
||||
@ -98,6 +82,22 @@
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{{if .Error}}
|
||||
<div class="flex justify-center items-center">
|
||||
<p class="px-2 py-2 font-bold text-center rounded-lg bg-red-500/70 text-md text-neutral-100">
|
||||
{{ .Error }}
|
||||
</p>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if .Message}}
|
||||
<div class="flex justify-center items-center">
|
||||
<p class="px-2 py-2 font-bold text-center rounded-lg text-md bg-blue-500/70 text-neutral-100">
|
||||
{{ .Message }}
|
||||
</p>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
<!---->
|
||||
|
||||
{{ template "content" . }}
|
||||
|
Loading…
Reference in New Issue
Block a user