aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/index.php b/index.php
index e42381e..aecd3a7 100644
--- a/index.php
+++ b/index.php
@@ -4,6 +4,39 @@
<img src="/assets/img/icon.png" id="hero-img" alt="">
<h1>Cloudburst System</h1>
<h4>Lorem ipsum dolor sit amet</h4>
+ <b>Current Fronter·s:</b> <?php
+
+ $config = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/pluralkit.json"), true);
+ $data = json_decode(file_get_contents("https://api.pluralkit.me/v2/systems/$config[system]/fronters"), true);
+ foreach ($data["members"] as $index => $fronter) {
+ if ($index + 1 === count($data["members"])) {
+ echo($fronter["display_name"]);
+ } else if ($index + 2 === count($data["members"])) {
+ echo($fronter["display_name"] . " and ");
+ } else {
+ echo($fronter["display_name"] . ", ");
+ }
+ }
+
+ ?>
+</div>
+<br>
+
+<div class="container">
+ <div class="row">
+ <?php foreach (json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/projects.json"), true) as $project): if ($project["showcase"]): ?>
+ <div class="col">
+ <div class="card stylized-card">
+ <div class="card-body">
+ <img class="stylized-card-icon" src="<?= $project["icon"] ?>" alt="">
+ <h4 class="card-title"><?= $project["name"] ?></h4>
+ <p class="card-text"><?= $project["description"] ?></p>
+ <a href="<?= $project["source"] ?>" target="_blank" class="btn btn-outline-light">View Project</a>
+ </div>
+ </div>
+ </div>
+ <?php endif; endforeach; ?>
+ </div>
</div>
<?php require_once $_SERVER["DOCUMENT_ROOT"] . "/includes/gui/footer.php"; ?> \ No newline at end of file