22import { getCollection } from " astro:content" ;
33import Separator from " @ui/Separator.astro" ;
44import { 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
88import 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
2626const sponsors = await getCollection (" sponsors" );
@@ -46,46 +46,50 @@ const sponsorTiers = tiers
4646
4747const 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 >
0 commit comments