2021-05-01 01:15:09 -05:00
|
|
|
import BasicPage from "../../components/basic-page";
|
2021-04-29 23:15:29 -05:00
|
|
|
import PBlock from "../../components/project-block";
|
|
|
|
|
2021-06-11 03:45:19 -05:00
|
|
|
// An object listing pages folks can visit
|
|
|
|
export async function getStaticProps() {
|
|
|
|
const fs = require("fs");
|
|
|
|
const yaml = require("js-yaml");
|
|
|
|
let PROJECTS = {};
|
|
|
|
|
|
|
|
try {
|
2021-07-11 01:12:40 -05:00
|
|
|
let fileContent = fs.readFileSync("./data/pages/projects.yml", "utf8");
|
2021-06-11 03:45:19 -05:00
|
|
|
PROJECTS = yaml.load(fileContent);
|
|
|
|
} catch (e) {
|
|
|
|
console.log(e);
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
props: {
|
|
|
|
PROJECTS,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function Services({ PROJECTS }) {
|
2021-04-29 23:15:29 -05:00
|
|
|
return (
|
2021-05-01 01:15:09 -05:00
|
|
|
<BasicPage page_title="Personal Projects" card_title="Some stuff I do!">
|
|
|
|
<div className="rounded-lg ring-2 ring-werefox-grey dark:ring-werefox-grey-darker bg-werefox-grey-light dark:bg-werefox-grey">
|
|
|
|
<PBlock title="Personal Projects" cards={PROJECTS} />
|
|
|
|
</div>
|
2021-04-29 23:15:29 -05:00
|
|
|
</BasicPage>
|
|
|
|
);
|
|
|
|
}
|