Skip to content

Commit

Permalink
Updating relative sizes and responsive layout for used by logos (with…
Browse files Browse the repository at this point in the history
…astro#667)

* updating relative sizes and responsive layout for used by logos

* tweaks to account for height lost to y-padding

* removing trivago top margin

---------

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
  • Loading branch information
tony-sull and Tony Sullivan authored May 15, 2023
1 parent 335e438 commit f9e079a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/pages/_components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import ExternalLink from "~/components/ExternalLink.astro"
import PageTitleBlock from "~/components/PageTitleBlock.astro"
const logos = [
{ src: "logos/google", alt: "Google Logo" },
{ src: "logos/google", alt: "Google Logo", class: "py-1" },
{ src: "logos/netlify", alt: "Netlify Logo" },
{ src: "logos/nordvpn", alt: "NordVPN Logo" },
{ src: "logos/rokt", alt: "Rokt Logo" },
{ src: "logos/theguardian", alt: "The Guardian Logo" },
{ src: "logos/trivago", alt: "Trivago Logo" },
{ src: "logos/nordvpn", alt: "NordVPN Logo", class: "py-1" },
{ src: "logos/rokt", alt: "Rokt Logo", class: "py-2" },
{ src: "logos/theguardian", alt: "The Guardian Logo", class: "py-1.5" },
{ src: "logos/trivago", alt: "Trivago Logo", class: "py-1" },
]
---

Expand Down Expand Up @@ -41,18 +41,18 @@ const logos = [
</div>
</div>

<div class="flex flex-col gap-y-8 px-4 md:px-6 lg:flex-row lg:items-center">
<p class="body px-8 text-astro-gray-200 lg:max-w-[12rem] lg:px-0 lg:text-left">
<div class="flex flex-col gap-y-8 gap-x-6 px-4 md:px-6 lg:flex-row lg:items-center">
<p class="body px-8 text-astro-gray-200 lg:max-w-[12rem] lg:px-0 lg:text-left xl:text-lg">
Used by over 100,000 developers and teams around the world:
</p>
<div class="flex flex-wrap justify-center gap-x-8 gap-y-6 px-4">
<div class="flex flex-wrap items-center justify-center gap-x-8 gap-y-6 px-4">
{
logos.map((logo) => (
<Icon
name={logo.src}
aria-label={logo.alt}
height={48}
class="h-6 object-contain text-white sm:h-8 md:h-10 lg:h-11"
class:list={["h-8 object-contain text-white sm:h-10 lg:h-11 xl:h-12", logo.class]}
/>
))
}
Expand Down

0 comments on commit f9e079a

Please sign in to comment.