Skip to content

Commit 8c532c8

Browse files
committed
Convert highlight stats to astro component
1 parent 9565885 commit 8c532c8

File tree

4 files changed

+21
-22
lines changed

4 files changed

+21
-22
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div class="rounded-lg shadow-md p-5">
2+
<ul class="space-y-2">
3+
<slot />
4+
</ul>
5+
</div>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<li class="flex">
2+
<span class="mr-2">📌</span>
3+
<span><slot /></span>
4+
</li>

src/content/pages/sponsorship/sponsor.mdx

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,14 @@ subtitle:
88

99
# Wny Sponsor EuroPython?
1010
<span class="text-2xl font-bold">Reach the heart of the European Python ecosystem!</span>
11-
<div className="rounded-lg shadow-md p-5">
12-
<ul className="space-y-2">
13-
{[
14-
"**~1,500** participants from **~50** countries",
15-
"**24th** edition – the world’s **longest-running** Python conference",
16-
"**190+** speakers across diverse Python topics",
17-
"**40K+** social media followers",
18-
"**34K** YouTube subscribers and **4M+** YouTube views",
19-
"**25%** of participants from underrepresented groups in tech"
20-
].map((stat, index) => (
21-
<li key={index} className="flex items-start gap-3">
22-
<span className="mr-2">📌</span>
23-
<span>
24-
{stat.split(/\*\*(.*?)\*\*/g).map((part, i) =>
25-
i % 2 === 1 ? <strong key={i}>{part}</strong> : part
26-
)}
27-
</span>
28-
</li>
29-
))}
30-
</ul>
31-
</div>
32-
11+
<HighlightCard>
12+
<HighlightItem>**~1,500** participants from **~50** countries</HighlightItem>
13+
<HighlightItem>**24th** edition – the world’s **longest-running** Python conference</HighlightItem>
14+
<HighlightItem>**190+** speakers across diverse Python topics</HighlightItem>
15+
<HighlightItem>**40K+** social media followers</HighlightItem>
16+
<HighlightItem>**34K** YouTube subscribers and **4M+** YouTube views</HighlightItem>
17+
<HighlightItem>**25%** of participants from underrepresented groups in tech</HighlightItem>
18+
</HighlightCard>
3319

3420
Join **EuroPython 2025 from 14 – 20 July** at the Prague Congress Centre (PCC) to connect, showcase your company, and shape the future of Python!
3521

src/pages/[...slug].astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { MapSprints } from "../components//map-for-sprints";
1010
import { YouTube } from "@astro-community/astro-embed-youtube";
1111
import BenefitsList from "../components/benefits-list/benefits-list.astro";
1212
import BenefitItem from "../components/benefits-list/benefit-item.astro";
13+
import HighlightCard from "../components/highlight-list/highlight-card.astro";
14+
import HighlightItem from "../components/highlight-list/highlight-item.astro";
1315
import { Note } from "../components/note";
1416
import SponsorTiers from "../components/sponsor-tiers/sponsor-tiers.astro";
1517
@@ -41,6 +43,8 @@ const description = post.data.subtitle;
4143
YouTube,
4244
BenefitItem,
4345
BenefitsList,
46+
HighlightCard,
47+
HighlightItem,
4448
Note,
4549
SponsorTiers,
4650
hr: Separator,

0 commit comments

Comments
 (0)