✨ Status pages
All checks were successful
release-nightly / build-docker (push) Successful in 1m53s
All checks were successful
release-nightly / build-docker (push) Successful in 1m53s
This commit is contained in:
6
pkg/hypertext/status/views/bad-gateway.gohtml
Normal file
6
pkg/hypertext/status/views/bad-gateway.gohtml
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1 class="text-2xl font-bold">502</h1>
|
||||
<h2 class="text-lg">No one is standing...</h2>
|
||||
|
||||
<div class="mt-3 mx-auto p-5 w-[360px] max-w-screen bg-neutral text-neutral-content rounded">
|
||||
<code class="capitalize">{{ .Message }}</code>
|
||||
</div>
|
6
pkg/hypertext/status/views/fallback.gohtml
Normal file
6
pkg/hypertext/status/views/fallback.gohtml
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1 class="text-2xl font-bold">Oops</h1>
|
||||
<h2 class="text-lg">Something went wrong...</h2>
|
||||
|
||||
<div class="mt-3 mx-auto p-5 w-[360px] max-w-screen bg-neutral text-neutral-content rounded">
|
||||
<code class="capitalize">{{ .Message }}</code>
|
||||
</div>
|
6
pkg/hypertext/status/views/gateway-timeout.gohtml
Normal file
6
pkg/hypertext/status/views/gateway-timeout.gohtml
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1 class="text-2xl font-bold">504</h1>
|
||||
<h2 class="text-lg">Looks like the server in the back fell asleep</h2>
|
||||
|
||||
<div class="mt-3 mx-auto p-5 w-[360px] max-w-screen bg-neutral text-neutral-content rounded">
|
||||
<code class="capitalize">{{ .Message }}</code>
|
||||
</div>
|
83
pkg/hypertext/status/views/index.gohtml
Normal file
83
pkg/hypertext/status/views/index.gohtml
Normal file
@@ -0,0 +1,83 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.6.1/dist/full.min.css" rel="stylesheet" type="text/css" />
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
|
||||
<script>
|
||||
tailwind.config = {
|
||||
daisyui: {
|
||||
themes: [
|
||||
{
|
||||
light: {
|
||||
primary: "#4750a3",
|
||||
secondary: "#93c5fd",
|
||||
accent: "#0f766e",
|
||||
info: "#67e8f9",
|
||||
success: "#15803d",
|
||||
warning: "#f97316",
|
||||
error: "#dc2626",
|
||||
neutral: "#2B3440",
|
||||
"secondary-content": "oklch(98.71% 0.0106 342.55)",
|
||||
"neutral-content": "#D7DDE4",
|
||||
"base-100": "oklch(100% 0 0)",
|
||||
"base-200": "#F2F2F2",
|
||||
"base-300": "#E5E6E6",
|
||||
"base-content": "#1f2937",
|
||||
"color-scheme": "light",
|
||||
"--rounded-box": "0",
|
||||
"--rounded-btn": "0",
|
||||
"--rounded-badge": "0",
|
||||
"--tab-radius": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
dark: {
|
||||
primary: "#4750a3",
|
||||
secondary: "#93c5fd",
|
||||
accent: "#0f766e",
|
||||
info: "#67e8f9",
|
||||
success: "#15803d",
|
||||
warning: "#f97316",
|
||||
error: "#dc2626",
|
||||
neutral: "#2a323c",
|
||||
"neutral-content": "#A6ADBB",
|
||||
"base-100": "#1d232a",
|
||||
"base-200": "#191e24",
|
||||
"base-300": "#15191e",
|
||||
"base-content": "#A6ADBB",
|
||||
"color-scheme": "dark",
|
||||
"--rounded-box": "0",
|
||||
"--rounded-btn": "0",
|
||||
"--rounded-badge": "0",
|
||||
"--tab-radius": "0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<title>{{ .Title }} | RoadSign</title>
|
||||
</head>
|
||||
<body>
|
||||
<main class="w-full h-screen flex justify-center items-center">
|
||||
<div class="text-center">
|
||||
{{embed}}
|
||||
|
||||
<footer class="mt-3 text-sm text-neutral">
|
||||
<p>
|
||||
Powered by
|
||||
<a href="https://wiki.smartsheep.studio/roadsign/index.html" target="_blank" class="link link-primary">
|
||||
RoadSign
|
||||
</a>
|
||||
</p>
|
||||
<p class="text-xs">v{{ .Version }}</p>
|
||||
</footer>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
6
pkg/hypertext/status/views/not-found.gohtml
Normal file
6
pkg/hypertext/status/views/not-found.gohtml
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1 class="text-2xl font-bold">404</h1>
|
||||
<h2 class="text-lg">Not Found</h2>
|
||||
|
||||
<div class="mt-3 mx-auto p-5 w-[360px] max-w-screen bg-neutral text-neutral-content rounded">
|
||||
<code class="capitalize">{{ .Message }}</code>
|
||||
</div>
|
6
pkg/hypertext/status/views/request-too-large.gohtml
Normal file
6
pkg/hypertext/status/views/request-too-large.gohtml
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1 class="text-2xl font-bold">413</h1>
|
||||
<h2 class="text-lg">Auh, you are too big.</h2>
|
||||
|
||||
<div class="mt-3 mx-auto p-5 w-[360px] max-w-screen bg-neutral text-neutral-content rounded">
|
||||
<code class="capitalize">{{ .Message }}</code>
|
||||
</div>
|
6
pkg/hypertext/status/views/too-many-requests.gohtml
Normal file
6
pkg/hypertext/status/views/too-many-requests.gohtml
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1 class="text-2xl font-bold">429</h1>
|
||||
<h2 class="text-lg">Stop it, you just to fast!</h2>
|
||||
|
||||
<div class="mt-3 mx-auto p-5 w-[360px] max-w-screen bg-neutral text-neutral-content rounded">
|
||||
<code class="capitalize">{{ .Message }}</code>
|
||||
</div>
|
Reference in New Issue
Block a user