Skip to content

Commit 2fde0ff

Browse files
committed
updates multimedia functionality
1 parent 11b9952 commit 2fde0ff

3 files changed

Lines changed: 137 additions & 121 deletions

File tree

src/app/multimedia/page.js

Lines changed: 1 addition & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,126 +1,6 @@
11
import Gallery from '@/components/Gallery';
22

3-
const images = [
4-
{
5-
src: '/images/gallery/pyday2024_1.webp',
6-
alt: 'Presentación PyDay 2024',
7-
caption: 'Charla inaugural PyDay 2024',
8-
location: 'Universidad de Chile, Santiago',
9-
year: '2024'
10-
},
11-
{
12-
src: '/images/gallery/pyday2024_2.webp',
13-
alt: 'Taller Python Concurrente',
14-
caption: 'Taller de Python Concurrente',
15-
location: 'Universidad Católica de Valparaíso',
16-
year: '2024'
17-
},
18-
{
19-
src: '/images/gallery/pyday2024_3.webp',
20-
alt: 'Mesa redonda',
21-
caption: 'Mesa redonda: Futuro de Python en Chile',
22-
location: 'Universidad de Concepción',
23-
year: '2024'
24-
},
25-
{
26-
src: '/images/gallery/pyday2023_1.webp',
27-
alt: 'Público PyDay 2023',
28-
caption: 'Público asistente a PyDay 2023',
29-
location: 'Universidad Andrés Bello, Santiago',
30-
year: '2023'
31-
},
32-
{
33-
src: '/images/gallery/pyday2023_2.webp',
34-
alt: 'Hackathon PyDay 2023',
35-
caption: 'Hackathon PyDay 2023',
36-
location: 'Campus San Joaquín, Santiago',
37-
year: '2023'
38-
},
39-
{
40-
src: '/images/gallery/pyday2023_3.webp',
41-
alt: 'Charla Machine Learning',
42-
caption: 'Charla sobre Machine Learning con Python',
43-
location: 'Universidad de Valparaíso',
44-
year: '2023'
45-
},
46-
{
47-
src: '/images/gallery/pyday2022_1.webp',
48-
alt: 'PyDay 2022 Inauguración',
49-
caption: 'Ceremonia de apertura PyDay 2022',
50-
location: 'Universidad Técnica Federico Santa María, Valparaíso',
51-
year: '2022'
52-
},
53-
{
54-
src: '/images/gallery/pyday2022_2.webp',
55-
alt: 'Networking PyDay 2022',
56-
caption: 'Networking post-evento',
57-
location: 'Universidad de Chile, Santiago',
58-
year: '2022'
59-
},
60-
{
61-
src: '/images/gallery/pyday2022_3.webp',
62-
alt: 'Taller Data Science',
63-
caption: 'Taller práctico de Data Science',
64-
location: 'Universidad Andrés Bello, Viña del Mar',
65-
year: '2022'
66-
},
67-
{
68-
src: '/images/gallery/pyday2021_1.webp',
69-
alt: 'PyDay 2021 Virtual',
70-
caption: 'Primera edición virtual de PyDay Chile',
71-
location: 'Online',
72-
year: '2021'
73-
},
74-
{
75-
src: '/images/gallery/pyday2021_2.webp',
76-
alt: 'Presentación Django',
77-
caption: 'Charla sobre desarrollo web con Django',
78-
location: 'Online',
79-
year: '2021'
80-
},
81-
{
82-
src: '/images/gallery/pyday2021_3.webp',
83-
alt: 'Workshop virtual',
84-
caption: 'Workshop de Python para principiantes',
85-
location: 'Online',
86-
year: '2021'
87-
}
88-
];
89-
90-
const videos = [
91-
{
92-
id: 'video1',
93-
title: 'PyDay Valparaíso',
94-
thumbnail: '/images/videos/keynote_thumbnail.webp',
95-
url: 'https://www.youtube.com/embed/6AWDEZY_iZI',
96-
speaker: 'Gonzalo Peña-Castellanos',
97-
year: '2024'
98-
},
99-
{
100-
id: 'video2',
101-
title: 'PyDay Copiapó',
102-
thumbnail: '/images/videos/datascience_thumbnail.webp',
103-
url: 'https://www.youtube.com/embed/4t-z5oVGIAA',
104-
speaker: 'María Rodríguez',
105-
year: '2024'
106-
},
107-
{
108-
id: 'video3',
109-
title: 'Desarrollo web moderno con FastAPI',
110-
thumbnail: '/images/videos/fastapi_thumbnail.webp',
111-
url: 'https://www.youtube.com/embed/m3v8Ah5NOSQ',
112-
speaker: 'Carlos Villegas',
113-
year: '2023'
114-
},
115-
{
116-
id: 'video4',
117-
title: 'Python en el Internet de las Cosas',
118-
thumbnail: '/images/videos/iot_thumbnail.webp',
119-
url: 'https://www.youtube.com/embed/Dy0SSE8uk-Y',
120-
speaker: 'Laura Gómez',
121-
year: '2021'
122-
}
123-
];
3+
const { images, videos } = require('@/data/multimedia');
1244

1255
export default function MultimediaPage() {
1266
return (

src/data/multimedia.js

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
export const images = [
2+
{
3+
src: '/images/gallery/pyday2024_1.webp',
4+
alt: 'Presentación PyDay 2024',
5+
caption: 'Charla inaugural PyDay 2024',
6+
location: 'Universidad de Chile, Santiago',
7+
year: '2024'
8+
},
9+
{
10+
src: '/images/gallery/pyday2024_2.webp',
11+
alt: 'Taller Python Concurrente',
12+
caption: 'Taller de Python Concurrente',
13+
location: 'Universidad Católica de Valparaíso',
14+
year: '2024'
15+
},
16+
{
17+
src: '/images/gallery/pyday2024_3.webp',
18+
alt: 'Mesa redonda',
19+
caption: 'Mesa redonda: Futuro de Python en Chile',
20+
location: 'Universidad de Concepción',
21+
year: '2024'
22+
},
23+
{
24+
src: '/images/gallery/pyday2023_1.webp',
25+
alt: 'Público PyDay 2023',
26+
caption: 'Público asistente a PyDay 2023',
27+
location: 'Universidad Andrés Bello, Santiago',
28+
year: '2023'
29+
},
30+
{
31+
src: '/images/gallery/pyday2023_2.webp',
32+
alt: 'Hackathon PyDay 2023',
33+
caption: 'Hackathon PyDay 2023',
34+
location: 'Campus San Joaquín, Santiago',
35+
year: '2023'
36+
},
37+
{
38+
src: '/images/gallery/pyday2023_3.webp',
39+
alt: 'Charla Machine Learning',
40+
caption: 'Charla sobre Machine Learning con Python',
41+
location: 'Universidad de Valparaíso',
42+
year: '2023'
43+
},
44+
{
45+
src: '/images/gallery/pyday2022_1.webp',
46+
alt: 'PyDay 2022 Inauguración',
47+
caption: 'Ceremonia de apertura PyDay 2022',
48+
location: 'Universidad Técnica Federico Santa María, Valparaíso',
49+
year: '2022'
50+
},
51+
{
52+
src: '/images/gallery/pyday2022_2.webp',
53+
alt: 'Networking PyDay 2022',
54+
caption: 'Networking post-evento',
55+
location: 'Universidad de Chile, Santiago',
56+
year: '2022'
57+
},
58+
{
59+
src: '/images/gallery/pyday2022_3.webp',
60+
alt: 'Taller Data Science',
61+
caption: 'Taller práctico de Data Science',
62+
location: 'Universidad Andrés Bello, Viña del Mar',
63+
year: '2022'
64+
},
65+
{
66+
src: '/images/gallery/pyday2021_1.webp',
67+
alt: 'PyDay 2021 Virtual',
68+
caption: 'Primera edición virtual de PyDay Chile',
69+
location: 'Online',
70+
year: '2021'
71+
},
72+
{
73+
src: '/images/gallery/pyday2021_2.webp',
74+
alt: 'Presentación Django',
75+
caption: 'Charla sobre desarrollo web con Django',
76+
location: 'Online',
77+
year: '2021'
78+
},
79+
{
80+
src: '/images/gallery/pyday2021_3.webp',
81+
alt: 'Workshop virtual',
82+
caption: 'Workshop de Python para principiantes',
83+
location: 'Online',
84+
year: '2021'
85+
}
86+
];
87+
88+
export const videos = [
89+
{
90+
id: 'video1',
91+
title: 'PyDay Valparaíso',
92+
thumbnail: '/images/videos/keynote_thumbnail.webp',
93+
url: 'https://www.youtube.com/embed/6AWDEZY_iZI',
94+
speaker: 'Gonzalo Peña-Castellanos',
95+
year: '2024'
96+
},
97+
{
98+
id: 'video2',
99+
title: 'PyDay Copiapó',
100+
thumbnail: '/images/videos/datascience_thumbnail.webp',
101+
url: 'https://www.youtube.com/embed/4t-z5oVGIAA',
102+
speaker: 'María Rodríguez',
103+
year: '2024'
104+
},
105+
{
106+
id: 'video3',
107+
title: 'Desarrollo web moderno con FastAPI',
108+
thumbnail: '/images/videos/fastapi_thumbnail.webp',
109+
url: 'https://www.youtube.com/embed/m3v8Ah5NOSQ',
110+
speaker: 'Carlos Villegas',
111+
year: '2023'
112+
},
113+
{
114+
id: 'video4',
115+
title: 'Python en el Internet de las Cosas',
116+
thumbnail: '/images/videos/iot_thumbnail.webp',
117+
url: 'https://www.youtube.com/embed/Dy0SSE8uk-Y',
118+
speaker: 'Laura Gómez',
119+
year: '2021'
120+
}
121+
];
122+

src/lib/sanity.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import sanityClient from '@sanity/client';
2+
//TODO: Implementar en fases futuras
3+
//
4+
export const client = sanityClient({
5+
projectId: 'tu-project-id',
6+
dataset: 'production',
7+
useCdn: true,
8+
apiVersion: '2023-05-03',
9+
});
10+
11+
// Obtener patrocinadores
12+
export async function getSponsors() {
13+
return await client.fetch('*[_type == "sponsor"] | order(level asc)');
14+
}

0 commit comments

Comments
 (0)