From 96bdc0d6b270a4c6dd5cffa632a9eb89e054fc68 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 7 Apr 2022 22:47:01 +0200 Subject: Prototype home and projects pages --- api/pluralkit/fronters/index.php | 2 +- assets/css/main.css | 11 +++++++++++ data/projects.json | 4 ++-- index.php | 33 +++++++++++++++++++++++++++++++++ projects/index.php | 24 ++++++++++++++++++++++++ 5 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 projects/index.php diff --git a/api/pluralkit/fronters/index.php b/api/pluralkit/fronters/index.php index ae4b196..4dcb08f 100644 --- a/api/pluralkit/fronters/index.php +++ b/api/pluralkit/fronters/index.php @@ -2,4 +2,4 @@ $config = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/pluralkit.json"), true); header("Content-Type: application/json"); -die(file_get_contents("https://api.pluralkit.me/v2/systems/$config[system]/list")); \ No newline at end of file +die(file_get_contents("https://api.pluralkit.me/v2/systems/$config[system]/fronters")); \ No newline at end of file diff --git a/assets/css/main.css b/assets/css/main.css index 1cff20a..c9df151 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -20,4 +20,15 @@ nav.navbar { #hero-img { width: 256px; max-width: 100vw; +} + +.stylized-card { + background: rgba(0, 0, 0, .5) !important; + text-align: center; +} + +.stylized-card-icon { + width: 64px; + height: 64px; + margin-bottom: 5px; } \ No newline at end of file diff --git a/data/projects.json b/data/projects.json index 507a3be..bf9b365 100644 --- a/data/projects.json +++ b/data/projects.json @@ -11,13 +11,13 @@ "description": "A fake PIM app created for this template", "icon": "https:\/\/sattelite.cdn.minteck.org\/logo.svg", "source": "https:\/\/gitlab.minteck.org\/minteck\/cloudsdale", - "showcase": false + "showcase": true }, { "name": "Random Projecto", "description": "Random Project, yay!", "icon": "about:blank", "source": "https:\/\/gitlab.minteck.org\/minteck\/kartik-client", - "showcase": false + "showcase": true } ] \ No newline at end of file diff --git a/index.php b/index.php index e42381e..aecd3a7 100644 --- a/index.php +++ b/index.php @@ -4,6 +4,39 @@

Cloudburst System

Lorem ipsum dolor sit amet

+ Current Fronter·s: $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"] . ", "); + } + } + + ?> + +
+ +
+
\ No newline at end of file diff --git a/projects/index.php b/projects/index.php new file mode 100644 index 0000000..4521314 --- /dev/null +++ b/projects/index.php @@ -0,0 +1,24 @@ + + +
+
+

Projects

+
+ + +
+ + \ No newline at end of file -- cgit