1
1
import clsx from "clsx" ;
2
2
import { Title } from "components/typography/title" ;
3
3
4
- import * as React from "react" ;
5
- import { SVGProps } from "react" ;
4
+ import type { SVGProps } from "react" ;
6
5
7
6
const Ribbon = ( props : SVGProps < SVGSVGElement > ) => (
8
7
< svg
@@ -62,9 +61,6 @@ const SponsorTier = ({
62
61
price : number | string ;
63
62
features : string [ ] ;
64
63
} ) => {
65
- // TODO: this component is inside a prose container, so we need to reset some styles
66
- // we can use no-prose
67
-
68
64
const formattedPrice =
69
65
typeof price === "number"
70
66
? new Intl . NumberFormat ( "en" , {
@@ -76,7 +72,7 @@ const SponsorTier = ({
76
72
: price ;
77
73
78
74
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 " >
80
76
< div className = "h-[160px]" >
81
77
< Ribbon
82
78
className = { clsx ( "absolute right-6 -top-6" , {
@@ -88,6 +84,7 @@ const SponsorTier = ({
88
84
"text-sponsor-bronze" : title === "Bronze" ,
89
85
"text-sponsor-patron" : title === "Patron" ,
90
86
} ) }
87
+ style = { { zIndex : - 1 } }
91
88
/>
92
89
93
90
< Title level = { 3 } className = "mt-0 !mb-2" >
@@ -99,7 +96,6 @@ const SponsorTier = ({
99
96
{ totalSlots ? (
100
97
< >
101
98
< span > { totalSlots } </ span > slot{ totalSlots == 1 ? "" : "s" } { " " }
102
-
103
99
available
104
100
</ >
105
101
) : (
@@ -120,7 +116,7 @@ const SponsorTier = ({
120
116
121
117
export const SponsorTiers = ( ) => {
122
118
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" >
124
120
< SponsorTier
125
121
title = "Keystone"
126
122
totalSlots = { 1 }
@@ -193,21 +189,19 @@ export const SponsorTiers = () => {
193
189
] }
194
190
/>
195
191
196
- < div className = "space-y-10" >
197
192
< SponsorTier
198
193
title = "Bronze"
199
194
price = { 2000 }
200
195
totalSlots = { "limited" }
201
196
features = { [ "Logo & recruiting ad on EuroPython website and more!" ] }
202
197
/>
203
198
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
+ />
211
205
</ div >
212
206
) ;
213
207
} ;
0 commit comments