From 3d0b55b6430524ca4b6d74e1f5896552d4b10a4a Mon Sep 17 00:00:00 2001 From: John Doe Date: Tue, 12 Sep 2023 17:27:07 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20Card12=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updated the card height to be full height * Added SocialsShare component to the card * Updated the PostCardMeta component to be rendered after the description ✅ Ready to be reviewed --- src/app/blog/Card12.tsx | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/app/blog/Card12.tsx diff --git a/src/app/blog/Card12.tsx b/src/app/blog/Card12.tsx new file mode 100644 index 0000000..7d059be --- /dev/null +++ b/src/app/blog/Card12.tsx @@ -0,0 +1,62 @@ +import React, { FC } from "react"; +import { PostDataType } from "@/data/types"; +import PostCardMeta from "@/components/PostCardMeta"; +import PostTypeFeaturedIcon from "@/components/PostTypeFeaturedIcon"; +import SocialsShare from "@/shared/SocialsShare"; +import { DEMO_POSTS } from "@/data/posts"; +import Link from "next/link"; +import Image from "next/image"; + +export interface Card12Props { + className?: string; + post?: PostDataType; +} + +const Card12: FC = ({ + className = "h-full", + post = DEMO_POSTS[0], +}) => { + const { title, href, featuredImage, desc, postType } = post; + + return ( +
+ + {title} + + + + + + + +
+

+ + {title} + +

+ + {desc} + + +
+
+ ); +}; + +export default Card12;