From 211c8aa5441a2dcfcc5ebce543bfb1ba079717c1 Mon Sep 17 00:00:00 2001 From: Sasank123k <96263090+Sasank123k@users.noreply.github.com> Date: Thu, 20 Jun 2024 08:52:10 +0530 Subject: [PATCH] Update Card.tsx --- src/components/Card/Card.tsx | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/components/Card/Card.tsx b/src/components/Card/Card.tsx index 8221d19..4fdf022 100644 --- a/src/components/Card/Card.tsx +++ b/src/components/Card/Card.tsx @@ -154,7 +154,35 @@ const CardSection: React.FC = () => {
{cards.map((card, index) => (
-
+ {card.type === 'imageCard' && ( +
+ {`${card.title} +
+

{card.title}

+

{card.text}

+ Go somewhere +
+
+ )} + {card.type === 'titleCard' && ( +
+
+

{card.title}

+

{card.text}

+ Go somewhere +
+
+ )} + {card.type === 'testimonialCard' && ( +
+
+

{card.title}

+

{card.text}

+
"{card.testimonial}"
+ Go somewhere +
+
+ )}