summaryrefslogtreecommitdiff
path: root/includes/system.inc
blob: ae6477c96558cdd00ca4822940fc5700f976c509 (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 global $system; global $systemCommonName; global $systemID; $title = $systemCommonName; require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';

?>

<div id="system-banner-container" style="width: 100%;height: 65vh;position: fixed;background-image: url('/assets/uploads/banner-<?= $system ?>.jpg');background-size: cover;background-position: center; top: 0;">
    <div id="system-banner-inner" style="height: 100%;width: 100%;background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);"></div>
</div>

<script>
    window.onscroll = () => {
        document.getElementById("system-banner-container").style.height = (65 - ((window.scrollY / window.screen.availHeight) * 100)) + "vh";
    }
</script>

<br>
<div class="container">

    <div id="system-page" style="background-color: rgba(26,26,26,0.8);border-radius: 10px;padding:20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);margin-top:30vh;">
        <?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/sysbanner.inc"; ?>
        <br>

        <div id="page-content">
            <?php global $isLoggedIn; if ($isLoggedIn): ?>
                <small style="opacity:.5;display:block;">(<a href="/-/edit/<?= $system ?>">edit</a>)</small>
            <?php endif; ?>
            <?= file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$systemID/content.html") ?>
        </div>
        <?php if ($system === "cloudburst") cloudburst(true); else raindrops(true); ?>
    </div>
</div>

<style>
    #hpd-cloudburst, #hpd-raindrops {
        background: transparent !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }

    @media (max-width: 767px) {
        #system-info > img {
            display: block;
            margin-left: auto;
            margin-right: auto;
        }
    }
</style>

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