From a97ce218b2304de860790d1c037acf759f6d6e09 Mon Sep 17 00:00:00 2001 From: Filip Skaug Date: Mon, 14 Oct 2024 23:40:52 +0200 Subject: [PATCH] rewrite styling to fit mobile --- src/components/TextPictureCard.tsx | 8 ++++---- src/pages/public/ForForeldre/components/ForForeldre.tsx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/TextPictureCard.tsx b/src/components/TextPictureCard.tsx index dce2b86b..4bf502b4 100644 --- a/src/components/TextPictureCard.tsx +++ b/src/components/TextPictureCard.tsx @@ -17,18 +17,18 @@ const TextPictureCard = ({ {alt} ); return ( -
+
{pictureOnLeft && image}
-

+

{title}

-

{text}

+

{text}

{!pictureOnLeft && image}
diff --git a/src/pages/public/ForForeldre/components/ForForeldre.tsx b/src/pages/public/ForForeldre/components/ForForeldre.tsx index 354525b4..2beddfa5 100644 --- a/src/pages/public/ForForeldre/components/ForForeldre.tsx +++ b/src/pages/public/ForForeldre/components/ForForeldre.tsx @@ -4,11 +4,11 @@ import TextPictureCard from "@/components/TextPictureCard"; const ForForeldre = (): JSX.Element => { const { title, ingress, cards, bottomText } = getContent(); return ( -
-

+
+

{title}

-

{ingress}

+

{ingress}

{cards.map(({ title: cardTitle, text, image }) => ( { alt={image.alt} /> ))} -

+

{bottomText}