From 0006bbb1c2e928723ba80f76587148cbe238116f Mon Sep 17 00:00:00 2001 From: John Doe Date: Tue, 12 Sep 2023 17:26:15 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20PostCardMeta=20to=20Card13?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added PostCardMeta component to the Card13 component * Updated the code to render the PostCardMeta component after the description ✅ Ready to be reviewed --- src/app/blog/Card13.tsx | 57 +++++++++++++++++++++++++++++++++++++++++ src/app/blog/layout.tsx | 7 +++++ 2 files changed, 64 insertions(+) create mode 100644 src/app/blog/Card13.tsx create mode 100644 src/app/blog/layout.tsx diff --git a/src/app/blog/Card13.tsx b/src/app/blog/Card13.tsx new file mode 100644 index 0000000..826f21f --- /dev/null +++ b/src/app/blog/Card13.tsx @@ -0,0 +1,57 @@ +import React, { FC } from "react"; +import PostCardMeta from "@/components/PostCardMeta"; +import { PostDataType } from "@/data/types"; +import PostTypeFeaturedIcon from "@/components/PostTypeFeaturedIcon"; +import Link from "next/link"; +import Image from "next/image"; + +export interface Card13Props { + className?: string; + post: PostDataType; +} + +const Card13: FC = ({ className = "", post }) => { + const { title, href, desc, featuredImage, date, postType } = post; + + return ( +
+
+

+ + {title} + +

+ + {desc} + + + {date} + +
+ +
+
+ + + {title} + + +
+ ); +}; + +export default Card13; diff --git a/src/app/blog/layout.tsx b/src/app/blog/layout.tsx new file mode 100644 index 0000000..f628112 --- /dev/null +++ b/src/app/blog/layout.tsx @@ -0,0 +1,7 @@ +export default function DashboardLayout({ + children, // will be a page or nested layout +}: { + children: React.ReactNode; +}) { + return
{children}
; +}