added more gardens

This commit is contained in:
Maggie Appleton 2021-09-06 16:55:45 +01:00
parent 8e4d516d85
commit 185109c782
15 changed files with 70 additions and 6 deletions

10
gardens/azlen-elza.mdx Normal file
View file

@ -0,0 +1,10 @@
---
title: Azlen Elza
url: https://notes.azlen.me/
image: /azlen1.png
tools: ["Notion"]
---
![](/azlen1.png)
![](/azlen3.png)
![](/azlen2.png)

View file

@ -1,7 +1,10 @@
--- ---
title: Buster Benson title: Buster Benson
image: https://via.placeholder.com/250 image: /buster3.png
tools: [''] tools: [""]
--- ---
This is an example post ![](/buster1.png)
![](/buster2.png)
![](/buster3.png)
![](/buster4.png)

10
gardens/shawn-wang.mdx Normal file
View file

@ -0,0 +1,10 @@
---
title: Shawn Wang
url: https://www.swyx.io/
image: /swyx1.png
tools: ["svelte"]
---
![](/swyx1.png)
![](/swyx2.png)
![](/swyx3.png)

View file

@ -1,9 +1,50 @@
import Layout from "../components/Layout"; import Layout from "../components/Layout";
import fs from "fs";
import path from "path";
import matter from "gray-matter";
import Card from "../components/Card";
import { motion } from "framer-motion";
import { gardenFilePath, GARDENS_PATH } from "../utils/mdxUtils";
export default function Directory() { export default function Directory({ gardens }) {
return ( return (
<Layout> <Layout>
<div>hello</div> <motion.ul
initial="hidden"
animate="show"
variants={{
hidden: { opacity: 0, y: 50 },
show: {
opacity: 1,
y: 0,
transition: {
delay: 0.6,
ease: "easeInOut",
duration: 0.7,
},
},
}}
className="flex flex-wrap mt-24"
>
{gardens.map((garden) => (
<Card garden={garden} />
))}
</motion.ul>
</Layout> </Layout>
); );
} }
export function getStaticProps() {
const gardens = gardenFilePath.map((filePath) => {
const source = fs.readFileSync(path.join(GARDENS_PATH, filePath));
const { content, data } = matter(source);
return {
content,
data,
filePath,
};
});
return { props: { gardens } };
}

View file

@ -55,7 +55,7 @@ export default function Index({ gardens }) {
}} }}
className="flex flex-wrap mt-24" className="flex flex-wrap mt-24"
> >
{gardens.map((garden) => ( {gardens.slice(0, 7).map((garden) => (
<Card garden={garden} /> <Card garden={garden} />
))} ))}
</motion.ul> </motion.ul>

BIN
public/azlen1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 KiB

BIN
public/azlen2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 KiB

BIN
public/azlen3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 KiB

BIN
public/buster1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

BIN
public/buster2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

BIN
public/buster3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB

BIN
public/buster4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

BIN
public/swyx1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
public/swyx2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 KiB

BIN
public/swyx3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB