From 092384582eb9f6e881fc877c5d15ffe85cc9c070 Mon Sep 17 00:00:00 2001 From: versecafe <147033096+versecafe@users.noreply.github.com> Date: Tue, 9 Jul 2024 16:03:57 -0400 Subject: [PATCH] Port to tailwind & make dynamic --- src/components/landing/sponsors.astro | 144 ++++++++++++++------------ src/styles/global.css | 92 ---------------- 2 files changed, 76 insertions(+), 160 deletions(-) diff --git a/src/components/landing/sponsors.astro b/src/components/landing/sponsors.astro index 489a23b..dcef25b 100644 --- a/src/components/landing/sponsors.astro +++ b/src/components/landing/sponsors.astro @@ -1,74 +1,82 @@ -
+--- +const sponsors = [ + { + name: "Platinum", + sponsors: [ + { + name: "Shopify", + href: "https://www.shopify.com/", + logo: "/assets/img/sponsor-shopify.svg", + }, + ], + }, + { + name: "Silver", + sponsors: [ + { + name: "Packet Clearing House", + href: "https://www.pch.net/", + logo: "/assets/img/sponsor-pch.svg", + }, + { + name: "Null Games", + href: "https://www.null.com/", + logo: "/assets/img/sponsor-null.svg", + }, + { + name: "Playbit", + href: "https://www.playb.it/", + logo: "/assets/img/sponsor-playbit.svg", + }, + { + name: "ohne-makler.net", + href: "https://www.ohne-makler.net/", + logo: "/assets/img/sponsor-ohne-makler.svg", + }, + ], + }, + { + name: "Bronze", + sponsors: [ + { + name: "Tuple", + href: "https://www.tuple.app/", + logo: "/assets/img/sponsor-tuple.svg", + }, + ], + }, +]; +--- + +
-

Sponsors

-
-
-
- - Platinum - -
-
-
- Shopify -
-
-
- -
-
- - Silver - -
-
-
- Packet Clearing House -
-
- Null Games -
-
- Playbit -
-
- ohne-makler.net -
-
-
- -
-
- - Bronze - -
-
-
- Tuple +

Sponsors

+ { + sponsors.map((tier) => { + return ( +
+
+ + {tier.name} + +
+
+ {tier.sponsors.map((sponsor) => { + return ( + + ); + })} +
-
-
-
+ ); + }) + }
diff --git a/src/styles/global.css b/src/styles/global.css index 2af3d16..a460088 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -694,18 +694,6 @@ a { } } -.sponsors { - position: relative; - margin-bottom: 100px; - padding: 0 20px; -} - -@media (min-width: 768px) { - .sponsors { - margin-bottom: 114px; - } -} - .sponsors__eclipse-big { position: absolute; top: -200px; @@ -733,86 +721,6 @@ a { display: block; } -.sponsors h2 { - color: #000; - margin-bottom: 50px; -} - -.sponsors__block { - margin-bottom: 64px; - position: relative; -} - -.sponsors__title { - display: flex; - align-items: center; - margin-bottom: 24px; -} - -.sponsors__title-text { - font-size: 24px; - font-weight: 600; - line-height: 150%; - letter-spacing: 0.2px; - padding: 0 20px; -} - -.sponsors__title-line { - width: 100%; - height: 1px; - background: #d3d2d6; - display: block; -} - -.sponsors__grid { - display: flex; - flex-wrap: wrap; - align-content: center; - grid-template-columns: 1fr 1fr; - gap: 16px; - justify-content: center; -} - -.sponsors__grid-item { - position: relative; - display: flex; - align-items: center; - justify-content: center; - min-height: 102px; - border: 6px solid #fff; - border-radius: 30px; - box-shadow: 0 0 8px 0 rgba(202, 205, 226, 0.3803921569); - padding: 16px; -} - -.sponsors__grid-small { - display: flex; - flex-wrap: wrap; - justify-content: center; - gap: 16px; -} - -.sponsors__grid-small-item { - position: relative; - display: flex; - align-items: center; - justify-content: center; - min-height: 70px; - max-height: 70px; - border: 6px solid #fff; - border-radius: 30px; - padding: 16px; - box-shadow: 0 0 8px 0 rgba(202, 205, 226, 0.3803921569); -} - -.sponsors__grid-small-item > span { - font-weight: 600; - background-image: linear-gradient(#6d98cc, #8a64e5); - -webkit-background-clip: text; - background-clip: text; - color: transparent; -} - .faq { position: relative; padding: 0 20px 140px 20px;