|
| 1 | +--- |
| 2 | +import { Title } from "../typography/title"; |
| 3 | +
|
| 4 | +interface Props { |
| 5 | + ticketShopLink: string; |
| 6 | +} |
| 7 | +
|
| 8 | +interface TicketTierProps { |
| 9 | + title: string; |
| 10 | + educationPrice: number | string; |
| 11 | + personalPrice: number | string; |
| 12 | + businessPrice: number | string; |
| 13 | + lateBusinessPrice?: number | string; |
| 14 | + latePersonalPrice?: number | string; |
| 15 | + features: string[]; |
| 16 | +} |
| 17 | +
|
| 18 | +const tiers: TicketTierProps[] = [ |
| 19 | + { |
| 20 | + title: "Tutorial Only", |
| 21 | + educationPrice: 100, |
| 22 | + personalPrice: 200, |
| 23 | + businessPrice: 400, |
| 24 | + features: [ |
| 25 | + { text: "Access to two full days of workshops, summits, and tutorials across six parallel tracks (14-15 July)" }, |
| 26 | + { text: "<strong>Does NOT include</strong> access to three days of talks across six parallel tracks with 130+ talks (16-18 July)", icon: "❌" }, |
| 27 | + { text: "<strong>Does NOT include</strong> access to open spaces throughout the three conference days", icon: "❌" }, |
| 28 | + { text: "<strong>Does NOT include</strong> access to sponsor booths with opportunities to connect with sponsoring companies", icon: "❌" }, |
| 29 | + { text: "Access to Sprint Weekend (19-20 July)" }, |
| 30 | + { text: "Light lunch provided each day" }, |
| 31 | + { text: "Break refreshments (coffee, tea, water, and more)" }, |
| 32 | + { text: "Access to in-person networking opportunities during the tutorial days" }, |
| 33 | + { text: "Access to free childcare if needed" }, |
| 34 | + { text: "Conference T-shirt included" }, |
| 35 | + { text: "<strong>Limited to only 300, due to tutorial capacity</strong>", icon: "⚠️" }, |
| 36 | + ], |
| 37 | + }, |
| 38 | + { |
| 39 | + title: "Conference Only", |
| 40 | + educationPrice: 135, |
| 41 | + personalPrice: 300, |
| 42 | + businessPrice: 500, |
| 43 | + latePersonalPrice: 450, |
| 44 | + lateBusinessPrice: 750, |
| 45 | + features: [ |
| 46 | + { text: "Access to two full days of workshops, summits, and tutorials across six parallel tracks (14-15 July)", icon: "❌" }, |
| 47 | + { text: "<strong>Access to three days of talks across six parallel tracks with 130+ talks (16-18 July)</strong>" }, |
| 48 | + { text: "Access to open spaces throughout the three conference days" }, |
| 49 | + { text: "Access to Sprint Weekend (19-20 July)" }, |
| 50 | + { text: "Access to sponsor booths with opportunities to connect with sponsoring companies" }, |
| 51 | + { text: "Access to Sprint Weekend (19-20 July)" }, |
| 52 | + { text: "Limited access to specific sponsored workshops" }, |
| 53 | + { text: "Light lunch provided each day" }, |
| 54 | + { text: "Break refreshments (coffee, tea, water, and more)" }, |
| 55 | + { text: "Access to in-person networking opportunities during the main conference days" }, |
| 56 | + { text: "Access to free childcare if needed" }, |
| 57 | + { text: "Conference T-shirt included" }, |
| 58 | + ], |
| 59 | + }, |
| 60 | + { |
| 61 | + title: "Combined", |
| 62 | + educationPrice: 210, |
| 63 | + personalPrice: 450, |
| 64 | + businessPrice: 800, |
| 65 | + latePersonalPrice: 675, |
| 66 | + lateBusinessPrice: 1200, |
| 67 | + features: [ |
| 68 | + { text: "Access to two full days of workshops, summits, and tutorials across six parallel tracks (14-15 July)" }, |
| 69 | + { text: "<strong>Access to three days of talks across six parallel tracks with 130+ talks (16-18 July)</strong>" }, |
| 70 | + { text: "Access to open spaces throughout the three conference days" }, |
| 71 | + { text: "Access to sponsor booths with opportunities to connect with sponsoring companies" }, |
| 72 | + { text: "Access to Sprint Weekend (19-20 July)" }, |
| 73 | + { text: "Limited access to specific sponsored workshops" }, |
| 74 | + { text: "Light lunch provided each day" }, |
| 75 | + { text: "Break refreshments (coffee, tea, water, and more)" }, |
| 76 | + { text: "Access to in-person networking opportunities throughout the entire conference" }, |
| 77 | + { text: "Access to free childcare if needed" }, |
| 78 | + { text: "Conference T-shirt included" }, |
| 79 | + { text: "<strong>Limited to only 300, due to tutorial capacity</strong>", icon: "⚠️" }, |
| 80 | + ], |
| 81 | + }, |
| 82 | +]; |
| 83 | +
|
| 84 | +
|
| 85 | +const formatPrice = (price: number | string) => { |
| 86 | + if (typeof price === "string") return price; |
| 87 | + return new Intl.NumberFormat("en", { |
| 88 | + style: "currency", |
| 89 | + currency: "EUR", |
| 90 | + maximumFractionDigits: 0, |
| 91 | + minimumFractionDigits: 0, |
| 92 | + }).format(price); |
| 93 | +}; |
| 94 | +--- |
| 95 | + |
| 96 | +<div class="ticket-tiers-container"> |
| 97 | + <div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-3 gap-10 md:gap-6 lg:gap-10"> |
| 98 | + {tiers.map((tier) => ( |
| 99 | + <div class="bg-white text-black rounded-2xl p-6 pb-20 relative not-prose z-0"> |
| 100 | + <div class="h-[160px]"> |
| 101 | + <Title level={3} className="mt-0 !mb-2"> |
| 102 | + {tier.title} |
| 103 | + </Title> |
| 104 | + |
| 105 | + <div class="mt-4"> |
| 106 | + <div class="font-bold text-lg">Education: <span class="text-xl">{formatPrice(tier.educationPrice)}</span></div> |
| 107 | + <div class="font-bold text-lg">Personal: <span class="text-xl">{formatPrice(tier.personalPrice)}</span> |
| 108 | + {tier.latePersonalPrice && ( |
| 109 | + <span class="text-sm font-normal ml-2">(Late: {formatPrice(tier.latePersonalPrice)})</span> |
| 110 | + )} |
| 111 | + </div> |
| 112 | + <div class="font-bold text-lg">Business: <span class="text-xl">{formatPrice(tier.businessPrice)} (+ VAT)</span> |
| 113 | + {tier.lateBusinessPrice && ( |
| 114 | + <span class="text-sm font-normal ml-2">(Late: {formatPrice(tier.lateBusinessPrice)} + VAT)</span> |
| 115 | + )} |
| 116 | + </div> |
| 117 | + </div> |
| 118 | + </div> |
| 119 | + |
| 120 | + <p class="font-bold text-base">This ticket includes:</p> |
| 121 | + <ul class="text-base list-none pl-0"> |
| 122 | + {tier.features.map((feature) => ( |
| 123 | + <li class="flex items-start"> |
| 124 | + <span class="flex-shrink-0 w-6"> |
| 125 | + {feature.icon ? feature.icon : "✔️"} |
| 126 | + </span> |
| 127 | + <span set:html={feature.text}></span> |
| 128 | + </li> |
| 129 | + ))} |
| 130 | + </ul> |
| 131 | + </div> |
| 132 | + ))} |
| 133 | + </div> |
| 134 | + |
| 135 | +<style is:global> |
| 136 | + .ticket-tiers-container { |
| 137 | + width: 100vw; |
| 138 | + max-width: 1400px; |
| 139 | + margin-left: 50%; |
| 140 | + transform: translateX(-50%); |
| 141 | + position: relative; |
| 142 | + padding: 0 40px; |
| 143 | + } |
| 144 | + |
| 145 | + @media (max-width: 768px) { |
| 146 | + .ticket-tiers-container { |
| 147 | + width: 100%; |
| 148 | + padding: 0 10px; |
| 149 | + position: relative; |
| 150 | + } |
| 151 | + } |
| 152 | +</style> |
0 commit comments