Files
zbiorki_app/zbiorka_app/templates/error.html
Mateusz Gruszczyński 29b07f6431 error handling
2026-03-20 10:54:01 +01:00

75 lines
1.8 KiB
HTML

<!doctype html>
<html lang="pl">
<head>
<meta charset="utf-8">
<title>{{ error_code }} {{ error_name }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if asset_url is defined %}
<link rel="stylesheet" href="{{ asset_url('css/style.css') }}">
{% else %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
{% endif %}
<style>
body {
margin: 0;
padding: 0;
}
.error-page {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem 1rem;
}
.error-box {
width: 100%;
max-width: 720px;
text-align: center;
padding: 2rem;
border-radius: 12px;
background: #fff;
box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.error-code {
font-size: 3rem;
font-weight: 700;
margin-bottom: 1rem;
}
.error-name {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.error-message {
margin-bottom: 1.5rem;
opacity: .9;
}
.error-actions a {
display: inline-block;
padding: .75rem 1.25rem;
text-decoration: none;
border-radius: 8px;
}
</style>
</head>
<body>
<main class="error-page">
<section class="error-box">
<div class="error-code">{{ error_code }}</div>
<h1 class="error-name">{{ error_name }}</h1>
<p class="error-message">{{ error_message }}</p>
<div class="error-actions">
<a href="/">Powrot na strone glowna</a>
</div>
</section>
</main>
</body>
</html>