-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathticket-tiers.astro
More file actions
251 lines (238 loc) · 7.65 KB
/
ticket-tiers.astro
File metadata and controls
251 lines (238 loc) · 7.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
---
import Headline from "@ui/Headline.astro";
interface Props {
ticketShopLink: string;
}
interface Feature {
text: string;
icon?: string;
}
interface TicketTierProps {
title: string;
educationPrice?: number | string;
personalPrice: number | string;
subtitle?: string;
businessPrice: number | string;
lateBusinessPrice?: number | string;
latePersonalPrice?: number | string;
features: Feature[];
}
const tiers: TicketTierProps[] = [
{
title: "Tutorial Only",
educationPrice: 98,
personalPrice: 196,
businessPrice: 400,
features: [
{
text: "Access to two full days of workshops, summits, and tutorials across six parallel tracks (13-14 July)",
},
{
text: "<strong>Does NOT include</strong> access to three days of talks across six parallel tracks with 130+ talks (15-17 July)",
icon: "❌",
},
{
text: "<strong>Does NOT include</strong> access to open spaces throughout the three conference days",
icon: "❌",
},
{
text: "<strong>Does NOT include</strong> access to sponsor booths with opportunities to connect with sponsoring sponsors",
icon: "❌",
},
{ text: "Access to Sprint Weekend (18-19 July)" },
{ text: "Light lunch provided each day" },
{ text: "Break refreshments (coffee, tea, water, and more)" },
{
text: "Access to in-person networking opportunities during the tutorial days",
},
{ text: "Access to free childcare for children aged 19 months and older" },
{ text: "Conference T-shirt included" },
{
text: "<strong>Limited to only 300, due to tutorial capacity</strong>",
icon: "⚠️",
},
],
},
{
title: "Conference Only",
educationPrice: 132,
personalPrice: 294,
businessPrice: 500,
latePersonalPrice: 441,
lateBusinessPrice: 750,
features: [
{
text: "Access to two full days of workshops, summits, and tutorials across six parallel tracks (13-14 July)",
icon: "❌",
},
{
text: "<strong>Access to three days of talks across six parallel tracks with 130+ talks (15-17 July)</strong>",
},
{ text: "Access to open spaces throughout the three conference days" },
{ text: "Access to Sprint Weekend (18-19 July)" },
{
text: "Access to sponsor booths with opportunities to connect with sponsoring sponsors",
},
{ text: "Access to Sprint Weekend (18-19 July)" },
{ text: "Limited access to specific sponsored workshops" },
{ text: "Light lunch provided each day" },
{ text: "Break refreshments (coffee, tea, water, and more)" },
{
text: "Access to in-person networking opportunities during the main conference days",
},
{ text: "Access to free childcare for children aged 19 months and older" },
{ text: "Conference T-shirt included" },
],
},
{
title: "Combined",
educationPrice: 206,
personalPrice: 441,
businessPrice: 800,
latePersonalPrice: 662,
lateBusinessPrice: 1200,
features: [
{
text: "Access to two full days of workshops, summits, and tutorials across six parallel tracks (13-14 July)",
},
{
text: "<strong>Access to three days of talks across six parallel tracks with 130+ talks (15-17 July)</strong>",
},
{ text: "Access to open spaces throughout the three conference days" },
{
text: "Access to sponsor booths with opportunities to connect with sponsoring sponsors",
},
{ text: "Access to Sprint Weekend (18-19 July)" },
{ text: "Limited access to specific sponsored workshops" },
{ text: "Light lunch provided each day" },
{ text: "Break refreshments (coffee, tea, water, and more)" },
{
text: "Access to in-person networking opportunities throughout the entire conference",
},
{ text: "Access to free childcare for children aged 19 months and older" },
{ text: "Conference T-shirt included" },
{
text: "<strong>Limited to only 300, due to tutorial capacity</strong>",
icon: "⚠️",
},
],
},
{
title: "Remote",
personalPrice: 78,
businessPrice: 150,
subtitle: "Conference days only",
features: [
{
text: "Remote participation for Conference Days (15-17 July)",
},
{
text: "Watch live talks, keynotes & panels in all 6 tracks",
},
{
text: "Live text-based Q&A",
},
{
text: "Interact with speakers and attendees in chat channels",
},
{
text: "<strong>Proper VAT invoice with company name (Business only)</strong>. <i>Remote tickets invoiced by the EPS (Sweden); <strong>no VAT charged due to non-profit status</strong></i>.",
icon: "ℹ️",
},
],
},
];
const formatPrice = (price: number | string) => {
if (typeof price === "string") return price;
return new Intl.NumberFormat("en", {
style: "currency",
currency: "EUR",
maximumFractionDigits: 0,
minimumFractionDigits: 0,
}).format(price);
};
---
<div class="ticket-tiers-container">
<div class="grid grid-cols-1 lg:grid-cols-3 gap-3 py-24">
{
tiers.map((tier) => (
<div class="bg-white text-black rounded-2xl p-6 pb-20 relative not-prose z-0">
<div>
<Headline as="h4" id=`titer-${tier}` title={tier.title} />
<div class="mt-4 space-y-2">
{tier.educationPrice !== undefined && (
<div>
<div class="font-bold text-lg">
Education:
<span class="text-xl ml-1">
{formatPrice(tier.educationPrice)}
</span>
</div>
</div>
)}
<div>
<div class="font-bold text-lg">
Personal:
<span class="text-xl ml-1">
{formatPrice(tier.personalPrice)}
</span>
</div>
{tier.latePersonalPrice && (
<div class="text-sm font-normal ml-1">
(Late personal: {formatPrice(tier.latePersonalPrice)})
</div>
)}
</div>
<div>
<div class="font-bold text-lg">
Business:
<span class="text-xl ml-1">
{formatPrice(tier.businessPrice)} (+ VAT)
</span>
</div>
{tier.lateBusinessPrice && (
<div class="text-sm font-normal ml-1">
(Late business: {formatPrice(tier.lateBusinessPrice)} + VAT)
</div>
)}
</div>
</div>
</div>
<div class="mt-6">
<p class="font-bold text-base">This ticket includes:</p>
<ul class="text-base list-none pl-0">
{tier.features.map((feature) => (
<li class="flex items-start">
<span class="flex-shrink-0 w-6">
{feature.icon ? feature.icon : "✔️"}
</span>
<span set:html={feature.text} />
</li>
))}
</ul>
</div>
</div>
))
}
</div>
</div>
<style is:global>
.ticket-tiers-container {
width: 97vw;
max-width: 1115px;
/*margin-left: 50%;*/
/*transform: translateX(-50%);*/
position: relative;
/*padding: 0 40px;*/
}
@media (max-width: 1023px) {
.ticket-tiers-container {
max-width: 700px;
/*max-width: 95vw;*/
/*width: 100%;*/
/*width: 100vw;*/
/*padding: 0 10px;*/
/*position: relative;*/
}
}
</style>