-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.twig
47 lines (46 loc) · 1.66 KB
/
errors.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ app.name |title }}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css" rel="stylesheet">
<style>
.error-container {
max-width: 600px;
}
.error-code {
font-weight: 700;
font-size: 9rem;
line-height: 8rem;
padding-bottom: 0.5rem;
text-align: right;
}
.error-message {
border-left: 2px solid var(--bs-body-color);
font-size: 1.25rem;
}
</style>
</head>
<body>
<div class="vh-100 d-flex justify-content-center align-items-center">
<div class="row error-container">
<div class="col-auto error-code">
{{ error.code }}
</div>
<div class="col error-message">
<div class="mb-3">{{ error.message }}</div>
<div class="text-end">
<button class="btn btn-outline-primary back-button" onclick="history.back()"><i class="bi bi-arrow-counterclockwise me-2"></i>Back</button>
</div>
</div>
</div>
</div>
{% if error.details %}
<div class="container">
{{ error.details | raw }}
</div>
{% endif %}
</body>
</html>