diff --git a/src/info/components/werefox-card.js b/src/info/components/werefox-card.js
index 950683e..fe49e25 100644
--- a/src/info/components/werefox-card.js
+++ b/src/info/components/werefox-card.js
@@ -1,11 +1,32 @@
import WCT from "./werefox-card-title";
-export default function WerefoxCard({ local, title_emoji, title, children }) {
- if (local) {
+export default function WerefoxCard({ theme, title_emoji, title, children }) {
+ if (theme == "Ada") {
+ if (Boolean(title_emoji)) {
+ return (
+
+ );
+ }
+ }
+ if (theme == "Skye") {
if (Boolean(title_emoji)) {
return (
-
+
{children}
@@ -14,7 +35,7 @@ export default function WerefoxCard({ local, title_emoji, title, children }) {
} else {
return (
-
+
{children}
diff --git a/src/info/data/minecraft/introduction.yml b/src/info/data/minecraft/introduction.yml
new file mode 100644
index 0000000..de8b9e2
--- /dev/null
+++ b/src/info/data/minecraft/introduction.yml
@@ -0,0 +1,4 @@
+--- # Introduction YAML
+
+intro: |
+ Here's some information on the Queercule's Minecraft server.
diff --git a/src/info/pages/hrt/index.js b/src/info/pages/hrt/index.js
index 8863af0..f0c1291 100644
--- a/src/info/pages/hrt/index.js
+++ b/src/info/pages/hrt/index.js
@@ -30,8 +30,9 @@ export const getServerSideProps = async () => {
};
};
-export default function HRT({ startTimes }) {
+export default function HRT({ startTimes, a }) {
const [timesArray, setTimesArray] = useState(startTimes);
+ const result = useState(a);
useEffect(() => {
const interval = setInterval(() => {
@@ -53,6 +54,7 @@ export default function HRT({ startTimes }) {
{timesArray[t]}
))}
+
{result}
);
diff --git a/src/info/pages/local/index.js b/src/info/pages/local/index.js
index f2614e3..e37bb81 100644
--- a/src/info/pages/local/index.js
+++ b/src/info/pages/local/index.js
@@ -33,19 +33,19 @@ export default function Home({ INTRODUCTION, SUBDOMAINS }) {
return (
-
+
-
-
+
+
);
diff --git a/src/info/pages/minecraft/index.js b/src/info/pages/minecraft/index.js
new file mode 100644
index 0000000..d86511b
--- /dev/null
+++ b/src/info/pages/minecraft/index.js
@@ -0,0 +1,66 @@
+import HomePage from "../../components/home-page";
+import ICard from "../../components/introduction-card";
+import WCard from "../../components/werefox-card";
+import axios from "axios";
+
+export const getPlugins = async () =>
+ await axios.get("http://192.168.0.202:8111/api/plugins/list").then(
+ (result) => {
+ return result.data;
+ },
+ (error) => {
+ console.log(error);
+ return null;
+ }
+ );
+
+// Grab data from a static YAML file
+export async function getStaticProps() {
+ const fs = require("fs");
+ const yaml = require("js-yaml");
+ let INTRODUCTION = {};
+ const promise = getPlugins();
+ const plugins = await Promise.resolve(promise);
+ const plugins_sorted = plugins.plugins
+ .map((p) => {
+ return p[0].toUpperCase() + p.substr(1);
+ })
+ .sort();
+
+ try {
+ let fileContent = fs.readFileSync(
+ "./data/minecraft/introduction.yml",
+ "utf8"
+ );
+ INTRODUCTION = yaml.load(fileContent);
+ } catch (e) {
+ console.log(e);
+ }
+ return {
+ props: {
+ INTRODUCTION,
+ plugins_list: plugins_sorted,
+ },
+ };
+}
+
+export default function Minecraft({ plugins_list, INTRODUCTION }) {
+ return (
+
+
+
+
+
+ {Object.keys(plugins_list).map((plugin) => (
+
+ - {plugins_list[plugin]}
+
+ ))}
+
+
+ );
+}
diff --git a/src/info/tailwind.config.js b/src/info/tailwind.config.js
index 95ccaa2..9c1f8da 100644
--- a/src/info/tailwind.config.js
+++ b/src/info/tailwind.config.js
@@ -12,6 +12,14 @@ module.exports = {
DEFAULT: "#50FFFF",
dark: "#008888",
},
+ "ada-werefox-grey": {
+ lightest: "#EEE",
+ lighter: "#DBDBDB",
+ light: "#CCC",
+ DEFAULT: "#424242",
+ dark: "#242424",
+ darker: "#121212",
+ },
"skye-werefox-blue": {
light: "#94C2FF",
DEFAULT: "#75B1FF",