-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.js
More file actions
238 lines (228 loc) · 8.72 KB
/
page.js
File metadata and controls
238 lines (228 loc) · 8.72 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
import Link from "next/link";
import Image from "next/image";
import CountdownTimer from "@/components/CountdownTimer";
import ChileMap from "@/components/ChileMap";
import TalkCard from "@/components/TalkCard";
import RegistrationForm from "@/components/RegistrationForm";
import HeroSection from "@/components/HeroSection";
import SponsorList from "./sponsors/components/SponsorList";
import featuredTalks from "@/data/featuredTalks";
// TODO: Datos de ejemplo - Estos deberían venir de una base de datos o CMS
const cities = [
{
name: "Copiapó",
date: "20 de Junio, 2025",
slug: "copiapo",
mapCoords: { x: 50, y: 90 },
},
{
name: "Valparaíso",
date: "13 de Junio, 2025",
slug: "valparaiso",
mapCoords: { x: 52, y: 180 },
},
{
name: "Santiago",
date: "06 de Junio, 2025",
slug: "santiago",
mapCoords: { x: 58, y: 200 },
},
];
export default function Home() {
//FIXME: Fecha del primer evento de PyDay 2025
const firstEventDate = "2025-06-06T09:00:00";
return (
<>
{/* Hero Section */}
<div className="relative h-44 mt-8 mx-auto">
<Image
src="/images/logo.webp"
alt="PyDay Chile 2025 Logo"
fill
className="object-contain"
/>
</div>
<HeroSection
title="PyDay Chile 2025"
subtitle="El evento anual gratuito para la comunidad Python en Chile"
>
<CountdownTimer targetDate={firstEventDate} />
<div className="mt-8">
<Link href="#ciudades" className="btn-primary">
Ver sedes
</Link>
</div>
</HeroSection>
{/* Ciudades / Mapa Section */}
<section id="ciudades" className="container-py mt-8">
<h2 className="section-title">Sedes PyDay 2025</h2>
<ChileMap cities={cities} />
</section>
{/* Agenda / Charlas Section */}
<section className="container-py">
<h2 className="section-title">Charlas Destacadas</h2>
{featuredTalks && featuredTalks.length > 0 ? (
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-2 gap-6 mt-8 max-w-5xl mx-auto">
{featuredTalks.map((talk, index) => (
<TalkCard key={index} talk={talk} />
))}
</div>
) : (
<div className="backdrop-blur-sm rounded-lg p-6 md:p-8 max-w-2xl mx-auto mt-8 text-center">
<div className="w-16 h-16 md:w-20 md:h-20 bg-[#3D8B37] rounded-full flex items-center justify-center mx-auto mb-4">
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-8 w-8 md:h-10 md:w-10"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"
/>
</svg>
</div>
<h3 className="text-lg md:text-xl font-bold mb-2">
¡Próximamente charlas increíbles!
</h3>
<p className="text-black/80 mb-6 text-sm md:text-base">
Estamos preparando un programa lleno de contenido interesante para
la comunidad Python. ¡Mantente atento a las actualizaciones!
</p>
<Link
href="https://sessionize.com/pyday-valparaiso-2025/"
target="_blank"
className="btn-secondary inline-flex items-center text-sm md:text-base"
>
<span>Proponer una charla</span>
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-4 w-4 md:h-5 md:w-5 ml-2"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fillRule="evenodd"
d="M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z"
clipRule="evenodd"
/>
</svg>
</Link>
</div>
)}
{featuredTalks && featuredTalks.length > 0 && (
<div className="flex justify-center mt-8">
<Link href="/talks" className="btn-primary">
Ver todas las charlas
</Link>
</div>
)}
</section>
{/* Registro Section */}
<section id="registro" className="container-py">
<h2 className="section-title">Regístro Próximamente</h2>
<div className="max-w-xl mx-auto px-13">
<RegistrationForm />
</div>
</section>
{/* Acerca de PyDay */}
<section className="container-py backdrop-blur">
<div className="max-w-4xl mx-auto text-center">
<h2 className="section-title">¿Qué es PyDay?</h2>
<p className="text-lg leading-relaxed">
PyDay Chile es un evento anual gratuito y emocionante que se celebra
en diversas locaciones del país durante un día, con el objetivo de
promover y fomentar el lenguaje de programación Python. Impulsado
por la comunidad de Python en Chile, entusiastas, desarrolladores,
empresas, científicos e investigadores académicos se reúnen en
universidades e institutos y organizan distintas actividades, como
charlas inspiradoras, talleres prácticos y hackatones, éste día es
para colaborar y disfrutar de un ambiente lleno de entusiasmo.
</p>
<div className="mt-8 inline-block px-8 py-3 bg-transparent text-black font-bold text-xl cursor-default">
Evento 100% Gratuito
</div>
</div>
</section>
{/* Patrocinadores Section - Versión Simplificada */}
<section id="patrocinadores" className="container-py">
<h2
className="section-title font-bold
tracking-wider text-4xl mb-0"
>
Nuestros Patrocinadores
</h2>
{/* FIXME: Escoger formato de Patrocinadores */}
<SponsorList />
{/* Patrocinadores Premium */}
{/* <div className="mt-8">
<h3 className="text-2xl font-bold text-center mb-6 text-yellow-400">
Patrocinadores Premium
</h3>
<div className="flex justify-center">
<a
href="https://www.python.org/psf-landing/"
target="_blank"
rel="noopener noreferrer"
className="bg-white/10 backdrop-blur p-6 rounded-lg hover:bg-white/20 transition-all duration-300 flex items-center justify-center"
>
<div className="relative h-32 w-64">
<Image
src="/images/logos/psf-logo.webp"
alt="Python Software Foundation"
fill
className="object-contain"
/>
</div>
</a>
</div>
</div> */}
{/* Patrocinadores Básico */}
{/* <div className="mt-12">
<h3 className="text-2xl font-bold text-center mb-6 text-gray-300">
Patrocinadores Básico
</h3>
<div className="flex justify-center">
<a
href="https://aws.amazon.com/es/"
target="_blank"
rel="noopener noreferrer"
className="bg-white/10 backdrop-blur p-6 rounded-lg hover:bg-white/20 transition-all duration-300 flex items-center justify-center"
>
<div className="relative h-24 w-48">
<Image
src="/images/logos/aws.webp"
alt="Amazon Web Services"
fill
className="object-contain"
/>
</div>
</a>
</div>
</div> */}
{/* CTA para patrocinadores */}
<div className="mt-16 max-w-3xl mx-auto text-center">
<h3 className="text-2xl font-bold mb-6">
¿Interesado en patrocinar PyDay Chile?
</h3>
<p className="text-lg mb-8">
Conecta tu marca con la comunidad Python de Chile y contribuye al
crecimiento de la tecnología en nuestro país. Existen diferentes
niveles de patrocinio adaptados a tus necesidades.
</p>
<div className="flex flex-col md:flex-row gap-4 justify-center">
<Link href="/sponsors" className="btn-primary">
Ver beneficios de patrocinio
</Link>
<Link href="/sponsors#contacto" className="btn-secondary">
Contáctanos
</Link>
</div>
</div>
</section>
</>
);
}