diff --git a/src/info/components/introduction-card.js b/src/info/components/introduction-card.js new file mode 100644 index 0000000..20e8fa1 --- /dev/null +++ b/src/info/components/introduction-card.js @@ -0,0 +1,11 @@ +export default function introductionCard({ introduction }) { + return ( +
+ {Object.keys(introduction).map((info) => ( +

+ {introduction[info]} +

+ ))} +
+ ); +} diff --git a/src/info/components/support-block.js b/src/info/components/support-block.js new file mode 100644 index 0000000..35a7dfa --- /dev/null +++ b/src/info/components/support-block.js @@ -0,0 +1,80 @@ +import Link from "next/link"; +import WCard from "./werefox-card.js"; +import Iframe from "react-iframe"; + +export default function SupportBlock() { + return ( + +
+

+ You could support me through Patreon, Ko-fi, or Liberapay +

+
+ + +

+ + Subscribe to Alexis' Patreon + {" "} + Become a Patron! +

+
+ +
+
+ + +

+ + Buy Alexis a Coffee + {" "} + Buy me a Coffee! +

+
+ +
+
+ + + Donate using Liberapay + + +
+
+
+ + Open/Close Ko-fi Donation Widget + +
+
+ +
+
+
+
+
+
+ ); +} diff --git a/src/info/data/partners.yml b/src/info/data/identities/partners.yml similarity index 100% rename from src/info/data/partners.yml rename to src/info/data/identities/partners.yml diff --git a/src/info/data/introduction.yml b/src/info/data/introduction.yml new file mode 100644 index 0000000..4cb9205 --- /dev/null +++ b/src/info/data/introduction.yml @@ -0,0 +1,7 @@ +--- # Introduction YAML + +intro: | + I'd describe myself as somewhere between a hot date and a hot mess. Just a witchy foxxo programmer trying to make it in the world tbh. + Feel free to click/tap any of the cute buttons above this to learn more about my different aspects of personality. + Down below, I've got some more neat little pages and useful info you can look at. + Please do look around and enjoy your stay!~ 💙 diff --git a/src/info/data/other.yml b/src/info/data/projects/other.yml similarity index 100% rename from src/info/data/other.yml rename to src/info/data/projects/other.yml diff --git a/src/info/data/private.yml b/src/info/data/projects/private.yml similarity index 100% rename from src/info/data/private.yml rename to src/info/data/projects/private.yml diff --git a/src/info/data/services.yml b/src/info/data/projects/services.yml similarity index 100% rename from src/info/data/services.yml rename to src/info/data/projects/services.yml diff --git a/src/info/data/streaming.yml b/src/info/data/projects/streaming.yml similarity index 100% rename from src/info/data/streaming.yml rename to src/info/data/projects/streaming.yml diff --git a/src/info/pages/identities/partners/index.js b/src/info/pages/identities/partners/index.js index bb1649c..3f73a39 100644 --- a/src/info/pages/identities/partners/index.js +++ b/src/info/pages/identities/partners/index.js @@ -9,7 +9,7 @@ export async function getStaticProps() { let PARTNERS = {}; try { - let fileContent = fs.readFileSync("./data/partners.yml", "utf8"); + let fileContent = fs.readFileSync("./data/identities/partners.yml", "utf8"); PARTNERS = yaml.load(fileContent); } catch (e) { console.log(e); diff --git a/src/info/pages/index.js b/src/info/pages/index.js index c0f563d..733bbd3 100644 --- a/src/info/pages/index.js +++ b/src/info/pages/index.js @@ -1,6 +1,7 @@ import HomePage from "../components/home-page"; import IDBlock from "../components/identity-block"; import WCard from "../components/werefox-card"; +import ICard from "../components/introduction-card"; import PBlock from "../components/page-block"; // An object listing pages folks can visit @@ -8,15 +9,18 @@ export async function getStaticProps() { const fs = require("fs"); const yaml = require("js-yaml"); let IDENTITIES = {}; + let INTRODUCTION = {}; let PAGES = {}; let PARTNERS = {}; try { let fileContent = fs.readFileSync("./data/identities.yml", "utf8"); IDENTITIES = yaml.load(fileContent); + fileContent = fs.readFileSync("./data/introduction.yml", "utf8"); + INTRODUCTION = yaml.load(fileContent); fileContent = fs.readFileSync("./data/pages.yml", "utf8"); PAGES = yaml.load(fileContent); - fileContent = fs.readFileSync("./data/partners.yml", "utf8"); + fileContent = fs.readFileSync("./data/identities/partners.yml", "utf8"); PARTNERS = yaml.load(fileContent); } catch (e) { console.log(e); @@ -24,35 +28,26 @@ export async function getStaticProps() { return { props: { IDENTITIES, + INTRODUCTION, PAGES, PARTNERS, }, }; } -export default function Home({ IDENTITIES, PAGES, PARTNERS }) { +export default function Home({ IDENTITIES, INTRODUCTION, PAGES, PARTNERS }) { const partnerslen = PARTNERS ? Object.keys(PARTNERS).length : 0; + let introarray = INTRODUCTION["intro"].split("\n"); + introarray = introarray.slice(0, introarray.length - 1); + const introdict = Object.assign({}, introarray); + return ( -

- I'd describe myself as somewhere between a hot date and a hot mess. - Just a witchy foxxo programmer trying to make it in the world tbh. -

-

- Feel free to click/tap any of the cute buttons above this to learn - more about my different aspects of personality. -

-

- Down below, I've got some more neat little pages and useful info you - can look at. -

-

- Please do look around and enjoy your stay!~ 💙 -

+
diff --git a/src/info/pages/projects/other/index.js b/src/info/pages/projects/other/index.js index 9e1d846..75e38d6 100644 --- a/src/info/pages/projects/other/index.js +++ b/src/info/pages/projects/other/index.js @@ -8,7 +8,7 @@ export async function getStaticProps() { let OTHER = {}; try { - let fileContent = fs.readFileSync("./data/other.yml", "utf8"); + let fileContent = fs.readFileSync("./data/projects/other.yml", "utf8"); OTHER = yaml.load(fileContent); } catch (e) { console.log(e); diff --git a/src/info/pages/projects/private/index.js b/src/info/pages/projects/private/index.js index 9e48489..9929ac2 100644 --- a/src/info/pages/projects/private/index.js +++ b/src/info/pages/projects/private/index.js @@ -8,7 +8,7 @@ export async function getStaticProps() { let PRIVATE = {}; try { - let fileContent = fs.readFileSync("./data/private.yml", "utf8"); + let fileContent = fs.readFileSync("./data/projects/private.yml", "utf8"); PRIVATE = yaml.load(fileContent); } catch (e) { console.log(e); diff --git a/src/info/pages/projects/services/index.js b/src/info/pages/projects/services/index.js index fad4ff2..4129309 100644 --- a/src/info/pages/projects/services/index.js +++ b/src/info/pages/projects/services/index.js @@ -8,7 +8,7 @@ export async function getStaticProps() { let SERVICES = {}; try { - let fileContent = fs.readFileSync("./data/services.yml", "utf8"); + let fileContent = fs.readFileSync("./data/projects/services.yml", "utf8"); SERVICES = yaml.load(fileContent); } catch (e) { console.log(e); diff --git a/src/info/pages/projects/streaming/index.js b/src/info/pages/projects/streaming/index.js index 7587e9b..8dbf13f 100644 --- a/src/info/pages/projects/streaming/index.js +++ b/src/info/pages/projects/streaming/index.js @@ -8,7 +8,7 @@ export async function getStaticProps() { let STREAMING = {}; try { - let fileContent = fs.readFileSync("./data/streaming.yml", "utf8"); + let fileContent = fs.readFileSync("./data/projects/streaming.yml", "utf8"); STREAMING = yaml.load(fileContent); } catch (e) { console.log(e); diff --git a/src/info/pages/support/index.js b/src/info/pages/support/index.js index 9762ad4..161f2b3 100644 --- a/src/info/pages/support/index.js +++ b/src/info/pages/support/index.js @@ -1,83 +1,10 @@ import BasicPage from "../../components/basic-page"; -import WCard from "../../components/werefox-card"; -import Link from "next/link"; -import Iframe from "react-iframe"; +import SBlock from "../../components/support-block"; export default function Support() { return ( - -
-

- You could support me through Patreon, Ko-fi, or Liberapay -

- - -
- - - Donate using Liberapay - - -
-
-
- - Open/Close Ko-fi Donation Widget - -
-
- -
-
-
-
-
-
+
); }