summaryrefslogtreecommitdiff
path: root/pages/home.php
blob: 4e853a630509b6a6ef349aca989148de2bcf8520 (plain)
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
48
<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.php'; ?>

<br>
<div class="container">
    <?php if (isset($_GET['error'])): ?>
        <div class="alert alert-danger alert-dismissible">
            <button onclick='window.history.pushState({"html":null,"pageTitle":document.title},"", "/");' type="button" class="btn-close" data-bs-dismiss="alert"></button>
            <b>Error: </b><?= strip_tags($_GET['error']) ?>
        </div>
    <?php endif; ?>

    <div style="background:rgba(255, 255, 255, .1);max-width:100%;width:max-content;display:grid;grid-template-columns:128px 1fr;border-radius:10px;margin-left:auto;margin-right:auto;color:white;">

        <!-- Logo -->
        <img src="/assets/uploads/logo.jpg" alt="" style="width:128px;border-top-left-radius:10px;border-bottom-left-radius:10px;">

        <!-- Banner text -->
        <div style="padding:20px;display:flex;align-items:center;justify-content:center;">
            <div>

                <!-- Main title -->
                <span style="font-weight:bold;font-size:24px;">Cuties and Plurality</span><br>

                <!-- Tagline -->
                <span style="font-weight:normal;font-size:16px;">Just a small safe place for two plural systems</span>

            </div>
        </div>

    </div>

    <?php global $isLoggedIn; global $_PROFILE; if ($isLoggedIn && ((int)date('H') >= 20 || (int)date('H') < 6)): ?>
    <a href="/emergency" style="text-decoration: none;margin-top:15px;display:block;font-size:24px;">
        <div class="alert alert-danger">
            <b>Are you in need of help?</b> If you need immediate help from a loved one, you may want to enable the emergency alert by clicking here, even if that will wake up the <?= $_PROFILE['name'] === "Raindrops System" ? "Cloudburst System" : "Raindrops System" ?>. Use it as you need.
        </div>
    </a>
    <?php endif; ?>

    <div id="homepage-desktop" style="margin-top:10px;">

        <?php cloudburst(false); ?>
        <?php raindrops(false); ?>

    </div>
</div>

<?php require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'; ?>