diff --git a/layouts/MainLayout.tsx b/layouts/MainLayout.tsx
index 01b832f..105e2dc 100644
--- a/layouts/MainLayout.tsx
+++ b/layouts/MainLayout.tsx
@@ -1,13 +1,12 @@
-import { PropsWithChildren } from "react";
-import { R3Gradient } from '../components/R3Background';
-import { Navbar } from "../components/Navbar";
+import { PropsWithChildren } from 'react'
+import { R3Gradient } from '../components/R3Background'
+import { Navbar } from '../components/Navbar'
export const MainLayout = ({ children }: PropsWithChildren) => {
- return (
-
-
-
- {formatDate(project.date)}
+const ProjectCard = ({ project, slug }: { project: BasicArticleProps; slug: string }) => {
+ return (
+
+
+
{formatDate(project.date)}
+
{project.title}
+
{project.description}
+
+
+
+
+ {project.thumbnail && (
+

+ )}
-
{project.title}
-
- {project.description}
-
-
-
-
-
- {project.thumbnail && (
-

- )}
-
- );
-};
+ )
+}
const Projects = ({ posts }: { posts: Post[] }) => {
- return (
-
-
- Projects
-
-
-
- {posts.map((post, index) => (
-
- ))}
-
-
- );
-};
+ return (
+
+ Projects
+
+
+ {posts.map((post, index) => (
+
+ ))}
+
+
+ )
+}
export const getServerSideProps: GetServerSideProps = async () => {
- const posts = getAllProjectsFrontMatter();
- return {
- props: {
- posts,
- },
- };
-};
+ const posts = getAllProjectsFrontMatter()
+ return {
+ props: {
+ posts,
+ },
+ }
+}
-export default Projects;
+export default Projects