Skip to content

Commit d5251e7

Browse files
committed
Update sponsors logos.
1 parent ea29f1b commit d5251e7

File tree

4 files changed

+42
-43
lines changed

4 files changed

+42
-43
lines changed

src/components/SponsorLogo.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const logo = sponsorLogos[sponsor.id];
2222
---
2323

2424
<div
25-
class="lg:max-w-[400px] flex flex-col gap-6 p-6 rounded-lg shadow-md bg-white text-black"
25+
class="lg:max-w-[400px] flex flex-col p-6 bg-white"
2626
>
2727
<div class="w-full flex justify-center items-center md:items-center">
2828
{

src/components/sponsors/sponsor-tier.astro

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import { getCollection } from "astro:content";
3+
import SponsorLogo from "@components/SponsorLogo.astro";
34
import { Image } from "astro:assets";
45
56
type Sponsor = Awaited<ReturnType<typeof getCollection<"sponsors">>>[0];
@@ -29,7 +30,7 @@ const { tier, top } = Astro.props;
2930
</h4>
3031
<div
3132
class:list={[
32-
"grid gap-6 lg:gap-12 ml-12 items-center justify-items-center",
33+
"grid ml-12 items-center justify-items-center",
3334
{
3435
"grid-cols-1 md:grid-cols-2 lg:grid-cols-3": !top,
3536
"grid-cols-1 md:grid-cols-1": top,
@@ -43,14 +44,8 @@ const { tier, top } = Astro.props;
4344
href={sponsor.data.url}
4445
target="_blank"
4546
rel="noopener noreferrer"
46-
class="pb-8"
4747
>
48-
<Image
49-
src={sponsorLogos[sponsor.id]}
50-
alt={sponsor.data.name}
51-
width={500}
52-
class="max-w-[250px] max-h-[120px]"
53-
/>
48+
<SponsorLogo sponsor={sponsor.id} />
5449
</a>
5550
</div>
5651
))

src/components/sponsors/sponsors.astro

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import { getCollection } from "astro:content";
33
import Separator from "@ui/Separator.astro";
44
import { Fragment } from "react";
5-
import Headline from "@ui/Headline.astro"
6-
import Section from "@ui/Section.astro"
5+
import Headline from "@ui/Headline.astro";
6+
import Section from "@ui/Section.astro";
77
88
import Button from "@ui/Button.astro";
99
@@ -20,7 +20,7 @@ const tiers = [
2020
"Patron",
2121
"Financial Aid",
2222
"Supporters",
23-
"Partners"
23+
"Partners",
2424
] as const;
2525
2626
const sponsors = await getCollection("sponsors");
@@ -46,46 +46,50 @@ const sponsorTiers = tiers
4646
4747
const topTier = sponsorTiers.find((tier) => tier.name === "Keystone");
4848
---
49+
4950
<Section variant="secondary">
50-
<Headline id="sponsors" title="Sponsors & Partners" center=true />
51-
<div>
52-
{
53-
hasSponsors ? (
54-
<p class="text-center">
55-
EuroPython wouldn't be such an affordable event without the help
56-
of the sponsors and partners. We'd like to thank all of them for their
57-
support.
58-
</p>
59-
) : (
60-
<p class="text-center">
61-
Sponsoring EuroPython guarantees you highly targeted visibility
62-
and the opportunity to present yourself and your sponsor to one
63-
of the largest and most diverse Python communities in Europe and
64-
beyond.
65-
</p>
66-
)
67-
}
51+
<Headline id="sponsors" title="Sponsors & Partners" center="true" />
52+
<div class="mb-10">
53+
{
54+
hasSponsors ? (
55+
<p class="text-center">
56+
EuroPython wouldn't be such an affordable event without the help of
57+
the sponsors and partners. We'd like to thank all of them for their
58+
support.
59+
</p>
60+
) : (
61+
<p class="text-center">
62+
Sponsoring EuroPython guarantees you highly targeted visibility and
63+
the opportunity to present yourself and your sponsor to one of the
64+
largest and most diverse Python communities in Europe and beyond.
65+
</p>
66+
)
67+
}
6868

69-
<div class="mt-4 text-center">
70-
<Button url="/sponsor">Become a sponsor</Button>
71-
</div>
72-
{
73-
topTier && topTier.sponsors.length > 0 && (
74-
<SponsorTier tier={topTier} top={true} />
75-
)
76-
}
69+
<div class="mt-4 text-center">
70+
<Button url="/sponsor">Become a sponsor</Button>
7771
</div>
72+
{
73+
topTier && topTier.sponsors.length > 0 && (
74+
<SponsorTier tier={topTier} top={true} />
75+
)
76+
}
77+
</div>
7878

79-
{sponsorTiers.length > 0 && <Separator light />}
79+
{sponsorTiers.length > 0 && <hr />}
8080

81-
<div class="mb-20">
81+
<div class="">
8282
{
8383
sponsorTiers.map((tier, index) => (
8484
<Fragment>
8585
<SponsorTier tier={tier} top={tier.name === "Platinum"} />
86-
{index !== sponsorTiers.length - 1 && <Separator light />}
86+
{index !== sponsorTiers.length - 1 && <hr />}
8787
</Fragment>
8888
))
8989
}
90-
</div>
90+
</div>
9191
</Section>
92+
93+
<style>
94+
hr {margin: 10px 0;}
95+
</style>

src/content/sponsors/bloomberg/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ socials:
1212
linkedin: "https://www.linkedin.com/company/bloomberg"
1313
twitter: "https://x.com/TechAtBloomberg"
1414
tier: Platinum
15-
logo_padding: 20px 10px
15+
logo_padding: 10px 0px
1616

1717
draft: true
1818
---

0 commit comments

Comments
 (0)