From 95dc2ad917d00695da2931ec92896ba9496dfe88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Haugsb=C3=B8?= Date: Wed, 18 Sep 2024 11:00:39 +0200 Subject: [PATCH] :nail_care: Sponsors better mobile support --- src/components/Main/Sponsors.astro | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/components/Main/Sponsors.astro b/src/components/Main/Sponsors.astro index 912d75c..9e512d8 100644 --- a/src/components/Main/Sponsors.astro +++ b/src/components/Main/Sponsors.astro @@ -12,16 +12,16 @@ const t = useTranslation(Astro.url);

{t("sponsors.title")}

-
+
{ sponsors.map((sponsor) => ( - + {sponsor.name )) }
- + {t("sponsors.apply")} arrow up right @@ -38,24 +38,27 @@ const t = useTranslation(Astro.url); text-align: center; } } - .greenTxt { - color: #12e8be; - } - .sponsorsCont { + + .sponsors-container { display: flex; + flex-direction: row; flex-wrap: wrap; - gap: 7%; - justify-content: center; + justify-content: space-evenly; align-items: center; margin: 6rem 0; + gap: 1rem; a { - width: 25%; - margin: 2rem 0; + max-width: 300px; + + img { + width: 100%; + height: auto; + } } } - .cta { + .call-to-action { width: max-content; background-color: #12e8be; display: flex; @@ -66,7 +69,7 @@ const t = useTranslation(Astro.url); border-radius: 4rem; border: 1px solid transparent; } - .cta:hover { + .call-to-action:hover { /* border-color: #3f3f3f; */ background-color: #3ff1ce; }