From 21c255abde08142fa669c8b6e86aee983db1cf3c Mon Sep 17 00:00:00 2001 From: Chocolate1999 <2816778271@qq.com> Date: Sun, 11 Sep 2022 21:51:36 +0800 Subject: [PATCH] feat: new projects page --- .../content/projects/ProjectItem.tsx | 37 ++++++++++++ src/components/layout/Footer.tsx | 2 +- src/pages/blog.tsx | 2 +- src/pages/collection.tsx | 2 +- src/pages/projects.tsx | 43 +++++++------- src/store/collections/index.tsx | 19 ------- src/store/projects.tsx | 56 +++++++++++++++++++ src/store/projects/index.tsx | 19 ------- src/styles/globals.css | 2 +- src/types/frontmatters.ts | 3 +- 10 files changed, 120 insertions(+), 65 deletions(-) create mode 100644 src/components/content/projects/ProjectItem.tsx delete mode 100644 src/store/collections/index.tsx create mode 100644 src/store/projects.tsx delete mode 100644 src/store/projects/index.tsx diff --git a/src/components/content/projects/ProjectItem.tsx b/src/components/content/projects/ProjectItem.tsx new file mode 100644 index 0000000..2cffdae --- /dev/null +++ b/src/components/content/projects/ProjectItem.tsx @@ -0,0 +1,37 @@ +import * as React from 'react'; + +import UnstyledLink from '@/components/links/UnstyledLink'; + +import { ProjectsType } from '@/types/frontmatters'; + +type ProjectCardProps = { + project: ProjectsType; +} & React.ComponentPropsWithoutRef<'li'>; + +export default function ProjectCard({ project }: ProjectCardProps) { + return ( + + ); +} diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 9ab0664..54d3794 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -2,7 +2,7 @@ import CustomLink from '@/components/links/CustomLink'; export default function Footer() { return ( -