summaryrefslogtreecommitdiff
path: root/pages/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/home.php')
-rw-r--r--pages/home.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/pages/home.php b/pages/home.php
new file mode 100644
index 0000000..4e853a6
--- /dev/null
+++ b/pages/home.php
@@ -0,0 +1,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'; ?> \ No newline at end of file