xref: /webtrees/resources/views/layouts/offline.phtml (revision 0db1e7d20bab9209012a4f3fdc1af3ef87a1a528)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Webtrees;
7
8/**
9 * @var string $message
10 * @var string $url
11 */
12
13?>
14
15<!DOCTYPE html>
16<html dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
17    <head>
18        <meta charset="UTF-8">
19        <meta name="viewport" content="width=device-width, initial-scale=1">
20
21        <title><?= e(Webtrees::NAME) ?></title>
22
23        <link rel="icon" href="favicon.ico" type="image/x-icon">
24        <style>
25            body {
26                color: gray;
27                background-color: white;
28                font: 14px tahoma, arial, helvetica, sans-serif;
29                padding: 10px;
30            }
31
32            a {
33                color: #81A9CB;
34                font-weight: bold;
35                text-decoration: none;
36            }
37
38            a:hover {
39                text-decoration: underline;
40            }
41
42            h1 {
43                color: #81A9CB;
44                font-weight: normal;
45                text-align: center;
46            }
47
48            li {
49                line-height: 2;
50            }
51
52            blockquote {
53                color: red;
54            }
55
56            .content { /*margin:auto; width:800px;*/
57                border: 1px solid gray;
58                padding: 15px;
59                border-radius: 15px;
60            }
61
62            .good {
63                color: green;
64            }
65        </style>
66    </head>
67
68    <body class="container-lg">
69        <h1><?= I18N::translate('This website is temporarily unavailable') ?></h1>
70        <div class="content">
71            <p>
72                <?= str_replace('index.php', e($url), I18N::translate('This website is down for maintenance. You should <a href="index.php">try again</a> in a few minutes.')) ?>
73            </p>
74            <p>
75                <?= $message ?>
76            </p>
77        </div>
78    </body>
79</html>
80