Files
hop-gate/internal/errorpages/templates/500.html
dalbodeule 0c4e02f832 [feat](errorpages): add custom templates for HTTP errors and assets
- Implemented custom HTML templates for `400`, `404`, `500`, and `525` error pages with multilingual support.
- Added embedded file system for error page templates and assets.
- Introduced fallback mechanism to serve minimal plain text for missing error templates.
- Integrated TailwindCSS for styling error pages, with a build script in `package.json`.
2025-12-02 21:57:30 +09:00

32 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>500 Internal Server Error - HopGate</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/__hopgate_assets__/errors.css">
</head>
<body class="min-h-screen bg-slate-950 text-slate-50 flex items-center justify-center px-4">
<div class="w-full max-w-xl text-center">
<div class="inline-flex items-center gap-3 mb-8">
<img src="/__hopgate_assets__/hop-gate.png" alt="HopGate" class="h-8 w-auto opacity-90" />
<span class="text-sm font-medium tracking-[0.25em] uppercase text-slate-400">HopGate</span>
</div>
<div class="inline-flex items-baseline gap-4 mb-4">
<span class="text-6xl md:text-7xl font-extrabold tracking-[0.25em] text-rose-400">500</span>
<span class="text-lg md:text-xl font-semibold text-slate-100">Internal Server Error</span>
</div>
<p class="text-sm md:text-base text-slate-300 leading-relaxed">
Something went wrong while processing your request.<br>
요청을 처리하는 중 서버 내부 오류가 발생했습니다.
</p>
<div class="mt-8 text-xs md:text-sm text-slate-500">
The issue has been logged and may be investigated by the operator.<br>
이 문제는 로그로 기록되었으며, 운영자가 확인할 수 있습니다.
</div>
</div>
</body>
</html>