-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathLocationPage.astro
More file actions
338 lines (320 loc) · 14 KB
/
Copy pathLocationPage.astro
File metadata and controls
338 lines (320 loc) · 14 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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
---
import { locationTexts } from '../i18n/location'
interface Props {
lang: string
}
const { lang } = Astro.props
const t = locationTexts[lang as keyof typeof locationTexts]
const transportIcons = {
metro: 'M12 2L4.5 20.29L5.21 21L12 18L18.79 21L19.5 20.29L12 2Z',
train:
'M12 2c-4 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-4-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5-1.5S6.67 14 7.5 14s1.5.67 1.5 1.5S8.33 17 7.5 17zm9 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM18 11H6V6h12v5z',
car: 'M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42.99L3 13v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-6.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z',
bus: 'M4 16c0 .88.39 1.67 1 2.22V20c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h8v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1.78c.61-.55 1-1.34 1-2.22V6c0-3.5-3.58-4-8-4s-8 .5-8 4v10zm3.5 1c-.83 0-1.5-.67-1.5-1.5S6.67 14 7.5 14s1.5.67 1.5 1.5S8.33 17 7.5 17zm9 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM17 11H7V6h10v5z',
}
---
<div class="location-container pb-20">
<!-- Hero Section -->
<section class="relative h-[40vh] min-h-10 w-full overflow-hidden rounded-3xl mb-12 shadow-2xl">
<img
src="/images/Barcelona/seuUB.jpg"
alt={t['location.hero.title']}
class="absolute inset-0 w-full h-full object-contain transform hover:scale-105 transition-transform duration-700"
/>
<div
class="absolute inset-0 bg-linear-to-t from-pycon-black via-pycon-black/40 to-transparent flex flex-col justify-end p-8 md:p-16"
>
<div class="max-w-4xl animate-fade-in-up">
<h1
class="text-4xl md:text-6xl font-extrabold text-white mb-4 tracking-tighter drop-shadow-[0_2px_10px_rgba(0,0,0,0.5)]"
>
{t['location.hero.title']}
</h1>
<p class="text-xl md:text-2xl text-pycon-yellow font-medium mb-6">
{t['location.hero.subtitle']}
</p>
</div>
</div>
</section>
<!-- Main Info -->
<section class="grid lg:grid-cols-3 gap-8 mb-20 px-4 md:px-0">
<div class="lg:col-span-2 space-y-8">
<div
class="bg-white/5 backdrop-blur-md p-8 rounded-2xl border border-white/10 hover:border-pycon-orange/50 transition-all shadow-xl"
>
<h2 class="text-3xl font-bold mb-6 text-pycon-red flex items-center gap-3">
<span class="w-2 h-8 bg-pycon-red rounded-full"></span>
{t['location.location.title']}
</h2>
<p class="text-lg text-pycon-gray-25 leading-relaxed mb-6">
{t['location.hero.text']}
</p>
<div class="flex items-center gap-4 p-4 bg-pycon-black/40 rounded-xl border border-white/5">
<svg
class="w-8 h-8 text-pycon-yellow shrink-0"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"></path>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"></path>
</svg>
<span class="text-white font-medium">{t['location.location.text']}</span>
</div>
</div>
<!-- Spaces & Rooms -->
<div class="space-y-6">
<h2 class="text-3xl font-bold text-white flex items-center gap-3">
<span class="w-2 h-8 bg-pycon-yellow rounded-full"></span>
{t['location.rooms.title']}
</h2>
<div class="grid md:grid-cols-2 gap-6">
<div
class="bg-pycon-gray-100 p-6 rounded-xl border border-white/10 hover:bg-pycon-gray-100/80 transition-all"
>
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-pycon-yellow">{t['location.rooms.paranimf.title']}</h3>
<span class="bg-pycon-yellow/20 text-pycon-yellow px-3 py-1 rounded-full text-xs font-bold"
>400 PAX</span
>
</div>
<p class="text-pycon-gray-25 text-sm">{t['location.rooms.paranimf.desc']}</p>
</div>
<div
class="bg-pycon-gray-100 p-6 rounded-xl border border-white/10 hover:bg-pycon-gray-100/80 transition-all"
>
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-pycon-yellow">{t['location.rooms.aulamagna.title']}</h3>
<span class="bg-pycon-yellow/20 text-pycon-yellow px-3 py-1 rounded-full text-xs font-bold"
>160 PAX</span
>
</div>
<p class="text-pycon-gray-25 text-sm">{t['location.rooms.aulamagna.desc']}</p>
</div>
<div
class="bg-pycon-gray-100 p-6 rounded-xl border border-white/10 hover:bg-pycon-gray-100/80 transition-all md:col-span-2"
>
<div class="flex justify-between items-start mb-4">
<h3 class="text-xl font-bold text-pycon-yellow">{t['location.rooms.teaching.title']}</h3>
<span class="bg-pycon-yellow/20 text-pycon-yellow px-3 py-1 rounded-full text-xs font-bold"
>90-120 PAX</span
>
</div>
<p class="text-pycon-gray-25 text-sm">{t['location.rooms.teaching.desc']}</p>
</div>
</div>
</div>
</div>
<!-- Sidebar / CTA / Map Link -->
<div class="space-y-8">
<div class="bg-linear-to-br from-pycon-orange to-pycon-red p-8 rounded-2xl shadow-xl text-white">
<h3 class="text-2xl font-bold mb-4">Google Maps</h3>
<p class="text-white/90 mb-6 text-sm">Gran Via de les Corts Catalanes, 585, 08007 Barcelona</p>
<a
href="https://maps.app.goo.gl/bMt7iLyNT2N2Et786"
target="_blank"
rel="noopener noreferrer"
aria-label={`${t['location.map.link']} ${menuT.new_tab}`}
class="inline-block w-full text-center bg-white text-pycon-red font-bold py-3 rounded-lg hover:bg-pycon-gray-25 transition-colors shadow-lg"
>
{t['location.map.link']}
</a>
</div>
<div class="bg-white/5 backdrop-blur-md p-6 rounded-2xl border border-white/10">
<h3 class="text-xl font-bold mb-6 text-white flex items-center gap-2">
<svg class="w-6 h-6 text-pycon-orange" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
{t['location.spaces.title']}
</h3>
<ul class="space-y-4">
<li class="group">
<span
class="text-pycon-orange font-bold block group-hover:text-pycon-yellow transition-colors italic"
>{t['location.spaces.gallery.title']}</span
>
<span class="text-pycon-gray-25 text-xs">{t['location.spaces.gallery.desc']}</span>
</li>
<li class="group">
<span
class="text-pycon-orange font-bold block group-hover:text-pycon-yellow transition-colors italic"
>{t['location.spaces.hall.title']}</span
>
<span class="text-pycon-gray-25 text-xs">{t['location.spaces.hall.desc']}</span>
</li>
<li class="group">
<span
class="text-pycon-orange font-bold block group-hover:text-pycon-yellow transition-colors italic"
>{t['location.spaces.cloister.title']}</span
>
<span class="text-pycon-gray-25 text-xs">{t['location.spaces.cloister.desc']}</span>
</li>
<li class="group">
<span
class="text-pycon-orange font-bold block group-hover:text-pycon-yellow transition-colors italic"
>{t['location.spaces.garden.title']}</span
>
<span class="text-pycon-gray-25 text-xs">{t['location.spaces.garden.desc']}</span>
</li>
</ul>
</div>
</div>
</section>
<!-- City Section -->
<section class="mb-20 px-4 md:px-0">
<div
class="relative bg-white/5 backdrop-blur-lg border border-white/10 rounded-3xl p-8 md:p-16 overflow-hidden"
>
<!-- Decoration -->
<div class="absolute top-0 right-0 w-96 h-96 bg-pycon-yellow/10 blur-[120px] -z-10 animate-pulse"></div>
<div class="absolute bottom-0 left-0 w-96 h-96 bg-pycon-red/10 blur-[120px] -z-10 animate-pulse"></div>
<h2 class="text-4xl md:text-5xl font-black mb-8 text-white uppercase tracking-tighter text-center">
{t['location.city.title']}
</h2>
<div class="grid lg:grid-cols-2 gap-12 items-start">
<div class="space-y-6">
<p class="text-xl text-white font-medium leading-relaxed drop-shadow-sm">
{t['location.city.intro']}
</p>
<p class="text-pycon-gray-25 leading-relaxed italic border-l-4 border-pycon-orange pl-6">
{t['location.city.heritage']}
</p>
<div class="bg-pycon-black/40 p-6 rounded-2xl border border-white/5">
<h3 class="text-lg font-bold text-pycon-yellow mb-2 uppercase tracking-wide">
{t['location.city.climate.title']}
</h3>
<p class="text-pycon-gray-25 text-sm uppercase">
{t['location.city.climate.text']}
</p>
</div>
</div>
<div class="space-y-8">
<div class="group">
<h3 class="text-2xl font-bold text-pycon-orange mb-4 flex items-center gap-3">
<span class="w-2 h-6 bg-pycon-orange rounded-full group-hover:scale-y-125 transition-transform"
></span>
{t['location.city.tech.title']}
</h3>
<p class="text-pycon-gray-25 leading-relaxed">
{t['location.city.tech.text']}
</p>
</div>
<div class="group">
<h3 class="text-2xl font-bold text-pycon-red mb-4 flex items-center gap-3">
<span class="w-2 h-6 bg-pycon-red rounded-full group-hover:scale-y-125 transition-transform"
></span>
{t['location.city.connections.title']}
</h3>
<p class="text-pycon-gray-25 leading-relaxed">
{t['location.city.connections.text']}
</p>
</div>
</div>
</div>
</div>
</section>
<!-- Transport Section -->
<section class="mb-20 px-4 md:px-0">
<h2 class="text-4xl font-bold text-center mb-12 text-white">
{t['location.transport.title']}
</h2>
<div class="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
<!-- Metro -->
<div
class="bg-pycon-black/60 p-8 rounded-2xl border border-white/10 hover:border-pycon-yellow/50 transition-all flex flex-col items-center text-center"
>
<div
class="w-16 h-16 bg-pycon-yellow/10 rounded-full flex items-center justify-center mb-6 text-pycon-yellow"
>
<svg class="w-8 h-8" viewBox="0 0 24 24" fill="currentColor"
><path d={transportIcons.metro}></path></svg
>
</div>
<h3 class="text-xl font-bold text-white mb-3">{t['location.transport.metro.title']}</h3>
<p class="text-sm text-pycon-gray-25">{t['location.transport.metro.items']}</p>
</div>
<!-- Renfe -->
<div
class="bg-pycon-black/60 p-8 rounded-2xl border border-white/10 hover:border-pycon-yellow/50 transition-all flex flex-col items-center text-center"
>
<div
class="w-16 h-16 bg-pycon-yellow/10 rounded-full flex items-center justify-center mb-6 text-pycon-yellow"
>
<svg class="w-8 h-8" viewBox="0 0 24 24" fill="currentColor"
><path d={transportIcons.train}></path></svg
>
</div>
<h3 class="text-xl font-bold text-white mb-3">{t['location.transport.renfe.title']}</h3>
<p class="text-sm text-pycon-gray-25">{t['location.transport.renfe.items']}</p>
</div>
<!-- Long Distance -->
<div
class="bg-pycon-black/60 p-8 rounded-2xl border border-white/10 hover:border-pycon-yellow/50 transition-all flex flex-col items-center text-center"
>
<div
class="w-16 h-16 bg-pycon-yellow/10 rounded-full flex items-center justify-center mb-6 text-pycon-yellow"
>
<svg class="w-8 h-8" viewBox="0 0 24 24" fill="currentColor"
><path d={transportIcons.bus}></path></svg
>
</div>
<h3 class="text-xl font-bold text-white mb-3">{t['location.transport.long.title']}</h3>
<p class="text-sm text-pycon-gray-25">{t['location.transport.long.items']}</p>
</div>
<!-- Car -->
<div
class="bg-pycon-black/60 p-8 rounded-2xl border border-white/10 hover:border-pycon-red/50 transition-all flex flex-col items-center text-center"
>
<div
class="w-16 h-16 bg-pycon-red/10 rounded-full flex items-center justify-center mb-6 text-pycon-red"
>
<svg class="w-8 h-8" viewBox="0 0 24 24" fill="currentColor"
><path d={transportIcons.car}></path></svg
>
</div>
<h3 class="text-xl font-bold text-white mb-3">{t['location.transport.car.title']}</h3>
<p class="text-sm text-pycon-gray-25">{t['location.transport.car.desc']}</p>
</div>
</div>
</section>
</div>
<style>
.location-container {
animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in-up {
animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(40px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>