added more gardens
10
gardens/azlen-elza.mdx
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
title: Azlen Elza
|
||||
url: https://notes.azlen.me/
|
||||
image: /azlen1.png
|
||||
tools: ["Notion"]
|
||||
---
|
||||
|
||||

|
||||

|
||||

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

|
||||

|
||||

|
||||

|
||||
|
|
10
gardens/shawn-wang.mdx
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
title: Shawn Wang
|
||||
url: https://www.swyx.io/
|
||||
image: /swyx1.png
|
||||
tools: ["svelte"]
|
||||
---
|
||||
|
||||

|
||||

|
||||

|
|
@ -1,9 +1,50 @@
|
|||
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 (
|
||||
<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>
|
||||
);
|
||||
}
|
||||
|
||||
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 } };
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@ export default function Index({ gardens }) {
|
|||
}}
|
||||
className="flex flex-wrap mt-24"
|
||||
>
|
||||
{gardens.map((garden) => (
|
||||
{gardens.slice(0, 7).map((garden) => (
|
||||
<Card garden={garden} />
|
||||
))}
|
||||
</motion.ul>
|
||||
|
|
BIN
public/azlen1.png
Normal file
After Width: | Height: | Size: 410 KiB |
BIN
public/azlen2.png
Normal file
After Width: | Height: | Size: 347 KiB |
BIN
public/azlen3.png
Normal file
After Width: | Height: | Size: 393 KiB |
BIN
public/buster1.png
Normal file
After Width: | Height: | Size: 252 KiB |
BIN
public/buster2.png
Normal file
After Width: | Height: | Size: 315 KiB |
BIN
public/buster3.png
Normal file
After Width: | Height: | Size: 269 KiB |
BIN
public/buster4.png
Normal file
After Width: | Height: | Size: 238 KiB |
BIN
public/swyx1.png
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
public/swyx2.png
Normal file
After Width: | Height: | Size: 404 KiB |
BIN
public/swyx3.png
Normal file
After Width: | Height: | Size: 137 KiB |