summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-14 21:11:27 +0100
committerMinteck <contact@minteck.org>2023-02-14 21:11:27 +0100
commitecabd813e1d1ebe079b6d0033030b12f562ff391 (patch)
treea0d4368db142c3f48e8045871966f0fa8e6305ca /pages
parent7efa4400ea7f8b852476d43b6e1e4765a600ca1a (diff)
downloadpluralconnect-ecabd813e1d1ebe079b6d0033030b12f562ff391.tar.gz
pluralconnect-ecabd813e1d1ebe079b6d0033030b12f562ff391.tar.bz2
pluralconnect-ecabd813e1d1ebe079b6d0033030b12f562ff391.zip
Updated pages/home.inc and added assets/icons/legacy.svg (automated)
Diffstat (limited to 'pages')
-rw-r--r--pages/home.inc22
1 files changed, 22 insertions, 0 deletions
diff --git a/pages/home.inc b/pages/home.inc
index d61d467..2f97dd7 100644
--- a/pages/home.inc
+++ b/pages/home.inc
@@ -54,6 +54,28 @@
<?php if ($_SERVER['HTTP_HOST'] !== "fr.equestria.horse") cloudburst(false); ?>
<?php raindrops(false); ?>
+ <div id="hpd-legacy" style="background:rgba(255, 255, 255, .1);border-radius:10px;padding:10px 10px 10px 20px;display:grid;grid-template-columns: 128px 1fr;margin-bottom:10px;">
+ <a style="display:flex;margin: -10px -20px;align-items:center;justify-content:center;text-align:center;padding: 10px 20px;border-radius: 10px;background: #77777755;width: 148px;text-decoration:none;color:white;filter:none !important;" class="hpd-system">
+ <div style="text-align:center;"><img src="/assets/icons/legacy.svg" style="width:64px;"><br>Pony Legacy</div>
+ </a>
+
+ <div style="display:grid;grid-template-columns:repeat(6, 1fr);padding-left:10px;grid-gap:10px;">
+ <?php foreach (array_filter(scandir($_SERVER['DOCUMENT_ROOT'] . "/includes/data/legacy"), function ($i) {
+ return !str_starts_with($i, ".");
+ }) as $id):
+ $id = substr($id, 0, -5);
+ $member = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/legacy/" . $id . ".json"), true);
+
+ echo('<a style="text-decoration:none !important;filter:none !important;"><div class="hpd-item-card" style="background-color:rgba(255, 255, 255, .1);border:1px solid ' . (isset($member['color']) ? "#" . $member['color'] . "55" : "transparent") . ';outline-color:' . (isset($member['color']) ? "#" . $member['color'] . "55" : "transparent") . ';border-radius:10px;text-align:center;display:flex;align-items:center;justify-content:center;padding:5px;opacity:5;"><div>
+<img alt="" src="' . $member["avatar"] . '" style="border-radius:999px;background-color:rgba(0, 0, 0, .25);height:48px;display:block;margin-left:auto;margin-right:auto;">
+<div style="text-decoration:none;color:white;margin-top:5px;">' . ($member['name'] ?? $id) . '</div>
+<div style="text-decoration:none !important;color:white !important;">' . date('j F Y', strtotime($member["date"])) . '</div>
+</div></div></a>');
+
+ endforeach; ?>
+ </div>
+ </div>
+
</div>
</div>