fisharebest/webtrees

View on GitHub
resources/views/layouts/offline.phtml

Summary

Maintainability
Test Coverage
<?php

declare(strict_types=1);

use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Webtrees;

/**
 * @var string $message
 * @var string $url
 */

?>

<!DOCTYPE html>
<html dir="<?= I18N::locale()->direction() ?>" lang="<?= I18N::locale()->languageTag() ?>">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title><?= e(Webtrees::NAME) ?></title>

        <link rel="icon" href="favicon.ico" type="image/x-icon">
        <style>
            body {
                color: gray;
                background-color: white;
                font: 14px tahoma, arial, helvetica, sans-serif;
                padding: 10px;
            }

            a {
                color: #81A9CB;
                font-weight: bold;
                text-decoration: none;
            }

            a:hover {
                text-decoration: underline;
            }

            h1 {
                color: #81A9CB;
                font-weight: normal;
                text-align: center;
            }

            li {
                line-height: 2;
            }

            blockquote {
                color: red;
            }

            .content { /*margin:auto; width:800px;*/
                border: 1px solid gray;
                padding: 15px;
                border-radius: 15px;
            }

            .good {
                color: green;
            }
        </style>
    </head>

    <body class="container-lg">
        <h1><?= I18N::translate('This website is temporarily unavailable') ?></h1>
        <div class="content">
            <p>
                <?= 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.')) ?>
            </p>
            <p>
                <?= $message ?>
            </p>
        </div>
    </body>
</html>