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