11import clsx from "clsx" ;
22import { Title } from "components/typography/title" ;
33
4- import * as React from "react" ;
5- import { SVGProps } from "react" ;
4+ import type { SVGProps } from "react" ;
65
76const Ribbon = ( props : SVGProps < SVGSVGElement > ) => (
87 < svg
@@ -62,9 +61,6 @@ const SponsorTier = ({
6261 price : number | string ;
6362 features : string [ ] ;
6463} ) => {
65- // TODO: this component is inside a prose container, so we need to reset some styles
66- // we can use no-prose
67-
6864 const formattedPrice =
6965 typeof price === "number"
7066 ? new Intl . NumberFormat ( "en" , {
@@ -76,7 +72,7 @@ const SponsorTier = ({
7672 : price ;
7773
7874 return (
79- < div className = "bg-white text-black rounded-2xl p-6 relative" >
75+ < div className = "bg-white text-black rounded-2xl p-6 relative not-prose z-0 " >
8076 < div className = "h-[160px]" >
8177 < Ribbon
8278 className = { clsx ( "absolute right-6 -top-6" , {
@@ -88,6 +84,7 @@ const SponsorTier = ({
8884 "text-sponsor-bronze" : title === "Bronze" ,
8985 "text-sponsor-patron" : title === "Patron" ,
9086 } ) }
87+ style = { { zIndex : - 1 } }
9188 />
9289
9390 < Title level = { 3 } className = "mt-0 !mb-2" >
@@ -99,7 +96,6 @@ const SponsorTier = ({
9996 { totalSlots ? (
10097 < >
10198 < span > { totalSlots } </ span > slot{ totalSlots == 1 ? "" : "s" } { " " }
102-
10399 available
104100 </ >
105101 ) : (
@@ -120,7 +116,7 @@ const SponsorTier = ({
120116
121117export const SponsorTiers = ( ) => {
122118 return (
123- < div className = "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-10" >
119+ < div className = "grid grid-cols-1 sm:grid-cols-2 gap-10" >
124120 < SponsorTier
125121 title = "Keystone"
126122 totalSlots = { 1 }
@@ -193,21 +189,19 @@ export const SponsorTiers = () => {
193189 ] }
194190 />
195191
196- < div className = "space-y-10" >
197192 < SponsorTier
198193 title = "Bronze"
199194 price = { 2000 }
200195 totalSlots = { "limited" }
201196 features = { [ "Logo & recruiting ad on EuroPython website and more!" ] }
202197 />
203198
204- < SponsorTier
205- title = "Patron"
206- price = { 1000 }
207- totalSlots = { "limited" }
208- features = { [ "Logo on EuroPython website, welcome tweet and more!" ] }
209- />
210- </ div >
199+ < SponsorTier
200+ title = "Patron"
201+ price = { 1000 }
202+ totalSlots = { "limited" }
203+ features = { [ "Logo on EuroPython website, welcome tweet and more!" ] }
204+ />
211205 </ div >
212206 ) ;
213207} ;
0 commit comments