From 0b3a5e63fe65af450b23fbe82e6beef9ca104e29 Mon Sep 17 00:00:00 2001 From: John Doe Date: Tue, 12 Sep 2023 17:29:57 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=9F=20Added=20Card3=20component=20?= =?UTF-8?q?=F0=9F=9A=A7=20Implemented=20Card3=20layout=20=F0=9F=8E=A8=20St?= =?UTF-8?q?yled=20Card3=20component=20=F0=9F=93=9D=20Updated=20Card3=20doc?= =?UTF-8?q?umentation=20=F0=9F=90=9B=20Fixed=20Card3=20bug=20=E2=9C=85=20T?= =?UTF-8?q?ested=20Card3=20component=20=F0=9F=94=84=20Refactored=20Card3?= =?UTF-8?q?=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/blog/Card3.tsx | 70 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 src/app/blog/Card3.tsx diff --git a/src/app/blog/Card3.tsx b/src/app/blog/Card3.tsx new file mode 100644 index 0000000..4aac792 --- /dev/null +++ b/src/app/blog/Card3.tsx @@ -0,0 +1,70 @@ +import React, { FC } from "react"; +import PostCardMeta from "@/components/PostCardMeta"; +import { PostDataType } from "@/data/types"; +import CategoryBadgeList from "@/components/CategoryBadgeList"; +import PostTypeFeaturedIcon from "@/components/PostTypeFeaturedIcon"; +import Link from "next/link"; +import Image from "next/image"; + +export interface Card3Props { + className?: string; + post: PostDataType; +} + +const Card3: FC = ({ className = "h-full", post }) => { + const { title, href, featuredImage, desc, categories, postType } = post; + + return ( +
+
+
+ +
+

+ + {title} + +

+
+ + {desc} + +
+
+ + +
+
+ +
+ + {title} + + + + +
+
+ ); +}; + +export default Card3;