diff --git a/src/components/ExpandedCard.jsx b/src/components/ExpandedCard.jsx new file mode 100644 index 0000000..a0b26ec --- /dev/null +++ b/src/components/ExpandedCard.jsx @@ -0,0 +1,56 @@ +import Footer from "./Footer"; + +const ExpandedCard = ({ post, similarPosts, onBack }) => { + return ( + <> +
+ {/* Back button in the top-left corner */} + + +
{/* Added margin-top to adjust spacing below the back button */} + {post.title} +

{post.title}

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent + commodo cursus magna, vel scelerisque nisl consectetur et. +

+ +

Similar Posts

+
+ {similarPosts.map((similarPost) => ( +
+ {similarPost.title} +
+

{similarPost.title}

+
+
+ ))} +
+ +
+ +
+ +