Skip to content

Commit 5a58337

Browse files
committed
update sponsor slots var name and message
1 parent fbac1a0 commit 5a58337

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/components/sponsor-tiers/sponsor-tiers.astro

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ const { signupLink = "#" } = Astro.props;
1111
1212
interface SponsorTierProps {
1313
title: string;
14-
totalSlots?: number | null | string;
14+
slotsLeft?: number | null | string;
1515
price: number | string;
1616
features: string[];
1717
}
1818
1919
const tiers: SponsorTierProps[] = [
2020
{
2121
title: "Keystone",
22-
totalSlots: 1/1,
22+
slotsLeft: 1,
2323
price: "Custom Pricing",
2424
features: [
2525
`<span style="font-size: 1.2rem; margin-top: 5;">Everything in the Diamond tier, plus <strong>white glove bespoke customisation tailored specifically to your needs</strong>.</span><br><br>`,
@@ -29,7 +29,7 @@ const tiers: SponsorTierProps[] = [
2929
},
3030
{
3131
title: "Diamond",
32-
totalSlots: "2/2",
32+
slotsLeft: "2",
3333
price: 30_000,
3434
features: [
3535
"<strong>Extra large</strong> booth in exhibit hall",
@@ -60,7 +60,7 @@ features: [
6060
},
6161
{
6262
title: "Platinum",
63-
totalSlots: "4/4",
63+
slotsLeft: "4",
6464
price: 18_000,
6565
features: [
6666
"<strong>Large</strong> booth in exhibit hall",
@@ -88,7 +88,7 @@ features: [
8888
{
8989
title: "Gold",
9090
price: 9_500,
91-
totalSlots: "10/10",
91+
slotsLeft: "10",
9292
features: [
9393
"Booth in exhibit hall",
9494
"<strong>3</strong> conference tickets (€1500 value)",
@@ -107,7 +107,7 @@ features: [
107107
{
108108
title: "Silver",
109109
price: 6_500,
110-
totalSlots: "10/10",
110+
slotsLeft: "10",
111111
features: [
112112
"Small booth in exhibit hall",
113113
"2 conference tickets (€1000 value)",
@@ -122,7 +122,7 @@ features: [
122122
{
123123
title: "Bronze",
124124
price: 2_000,
125-
totalSlots: "unlimited",
125+
slotsLeft: "unlimited",
126126
features: [
127127
"<strong>1 conference ticket (€500 value)</strong>",
128128
"1 remote ticket (€150 value)",
@@ -133,7 +133,7 @@ features: [
133133
{
134134
title: "Patron",
135135
price: 1_000,
136-
totalSlots: "unlimited",
136+
slotsLeft: "unlimited",
137137
features: [
138138
"1 remote ticket (€150 value)",
139139
"Logo on website and signage",
@@ -191,13 +191,13 @@ const formatPrice = (price: number | string) => {
191191
</Title>
192192
<div class="font-bold text-3xl">{formatPrice(tier.price)}</div>
193193
<div class="text-xl mt-4">
194-
{tier.totalSlots ? (
194+
{tier.slotsLeft ? (
195195
<>
196-
<span>{tier.totalSlots}</span> slot{tier.totalSlots == 1 ? "" : "s"}{" "}
197-
available
196+
<span>{tier.slotsLeft}</span> slot{tier.slotsLeft == 1 ? "" : "s"}{" "}
197+
remaining
198198
</>
199199
) : (
200-
<>No slot available</>
200+
<>Fully booked</>
201201
)}
202202
</div>
203203
</div>
@@ -242,13 +242,13 @@ const formatPrice = (price: number | string) => {
242242
</Title>
243243
<div class="font-bold text-3xl">{formatPrice(tier.price)}</div>
244244
<div class="text-xl">
245-
{tier.totalSlots ? (
245+
{tier.slotsLeft ? (
246246
<>
247-
<span>{tier.totalSlots}</span> slot{tier.totalSlots == 1 ? "" : "s"}{" "}
248-
available
247+
<span>{tier.slotsLeft}</span> slot{tier.slotsLeft == 1 ? "" : "s"}{" "}
248+
remaining
249249
</>
250250
) : (
251-
<>No slot available</>
251+
<>Fully booked</>
252252
)}
253253
</div>
254254
</div>
@@ -291,13 +291,13 @@ const formatPrice = (price: number | string) => {
291291
</Title>
292292
<div class="font-bold text-3xl">{formatPrice(tier.price)}</div>
293293
<div class="text-xl">
294-
{tier.totalSlots ? (
294+
{tier.slotsLeft ? (
295295
<>
296-
<span>{tier.totalSlots}</span> slot{tier.totalSlots == 1 ? "" : "s"}{" "}
297-
available
296+
<span>{tier.slotsLeft}</span> slot{tier.slotsLeft == 1 ? "" : "s"}{" "}
297+
remaining
298298
</>
299299
) : (
300-
<>No slot available</>
300+
<>Fully booked</>
301301
)}
302302
</div>
303303
</div>

0 commit comments

Comments
 (0)