From a9c31d695999c002cb2096bdec7f36fdf9c909f9 Mon Sep 17 00:00:00 2001 From: Alexis Werefox Date: Mon, 26 Sep 2022 18:38:11 +0000 Subject: [PATCH] Rough draft of Minecraft server page. --- src/info/components/footer-button.js | 19 ++++++- src/info/components/footer-card.js | 58 +++++++++++++++++--- src/info/components/home-page.js | 23 ++++++-- src/info/components/introduction-card.js | 11 +++- src/info/components/page-block.js | 6 +-- src/info/components/page-button.js | 4 +- src/info/components/title-card.js | 20 ++++++- src/info/components/werefox-card-title.js | 31 ++++++++++- src/info/components/werefox-card.js | 29 ++++++++-- src/info/data/minecraft/introduction.yml | 4 ++ src/info/pages/hrt/index.js | 4 +- src/info/pages/local/index.js | 10 ++-- src/info/pages/minecraft/index.js | 66 +++++++++++++++++++++++ src/info/tailwind.config.js | 8 +++ 14 files changed, 258 insertions(+), 35 deletions(-) create mode 100644 src/info/data/minecraft/introduction.yml create mode 100644 src/info/pages/minecraft/index.js diff --git a/src/info/components/footer-button.js b/src/info/components/footer-button.js index 697de29..c66b335 100644 --- a/src/info/components/footer-button.js +++ b/src/info/components/footer-button.js @@ -1,8 +1,23 @@ import Link from "next/link"; -export default function footerButton({ local, url, inner_text, is_external }) { +export default function footerButton({ theme, url, inner_text, is_external }) { const target = Boolean(is_external) ? is_external : ""; - if (local) { + if (theme == "Ada") { + return ( +
+ + +
+

+ {inner_text} +

+
+
+ +
+ ); + } + if (theme == "Skye") { return (
diff --git a/src/info/components/footer-card.js b/src/info/components/footer-card.js index 5f49396..08ee6ae 100755 --- a/src/info/components/footer-card.js +++ b/src/info/components/footer-card.js @@ -1,18 +1,60 @@ import FButton from "./footer-button"; -export default function FooterCard({ local }) { - if (local) { +export default function FooterCard({ theme }) { + if (theme == "Ada") { return ( -