-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.php
44 lines (43 loc) · 1.91 KB
/
template.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdn.tailwindcss.com"></script>
<title><?= $code; ?> - <?= $site['name']; ?></title>
</head>
<body>
<div class="max-w-5xl mx-auto px-2 sm:px-6 lg:px-8 mt-12">
<h1 class="xl:text-4xl text-3xl my-2 text-center">
Error <?= $code; ?><br>
<strong><?= $error['name']; ?></strong>
</h1>
</div>
<div class="max-w-5xl mx-auto px-2 sm:px-6 lg:px-8 mt-12">
<div class="md:flex md:space-x-4 w-full">
<div class="border border-neutral-300 rounded-xl w-full mb-4 md:mb-0">
<div class="px-6 py-6">
<?php if ($error['image'] != NULL) { ?>
<p class="mb-8">
<img src="<?= $error['image']; ?>" class="mx-auto w-1/2 md:w-1/3 lg:w-1/4" alt="<?= $error['name']; ?> Image">
</p>
<?php } if ($error['description'] != NULL) { ?>
<h2 class="xl:text-xl text-lg my-4">
<?= $error['description']; ?>
</h2>
<?php } if ($error['tip'] != NULL) { ?>
<h2 class="xl:text-xl text-lg mb-4 py-1 px-2 bg-blue-100 border-l-2 border-blue-500 rounded-r-md">
<?= $error['tip']; ?>
</h2>
<?php } if ($site['support_contact'] != NULL) { ?>
<p>
<?= $site['support_contact']; ?>
</p>
<?php } ?>
</div>
</div>
</div>
</div>
<div class="absolute bottom-0 text-xs">
Powered by <a href="https://github.com/LMWNWeb/Bonfire" target="_blank">Bonfire</a>.
</div>
</body>
</html>