-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.js
More file actions
179 lines (170 loc) · 6.68 KB
/
page.js
File metadata and controls
179 lines (170 loc) · 6.68 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
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";
import { FeatureGuard } from "@/components/FeatureManagement/FeatureGuard";
import EmptyState from "@/components/EmptyState";
import cityData from "@/data/cities";
export default function Home() {
// Fecha y hora del próximo evento confirmado de PyDay 2025
const firstEventDate = "2025-06-06T14:00:00";
const citiesArray = Object.values(cityData);
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={citiesArray} />
</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>
) : (
<EmptyState context="global" />
)}
{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">
<FeatureGuard featureName="registration">
<h2 className="section-title">Regístrate</h2>
<div className="max-w-xl mx-auto px-13">
<RegistrationForm />
</div>
</FeatureGuard>
</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-white 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>
</>
);
}