Commit f1c9f20
authored
Programa: añadir página con widget de Pretalx (#213)
## Descripción
Añade la página `/programa` con el widget de Pretalx embebido, mostrando
el cronograma de PyConES en los 3 idiomas soportados (es/en/ca).
## Cambios
- **Nueva página** `src/pages/[lang]/programa.astro` con
`getStaticPaths` para es/en/ca
- **Nuevo componente** `src/components/ProgramaPage.astro` (h1, intro,
widget, noscript fallback)
- **Nuevo módulo i18n** `src/i18n/programa/{index,es,en,ca}.ts`
- **Menú**: `Programa` / `Programme` insertado como 2º item (después de
"Inicio")
- **Layout**: nueva prop opcional `fullWidth` para contenido
full-viewport (sin container)
- **Widget**: wrapeado en `overflow-x-auto` para scroll horizontal en
viewports angostos
- **Dialog de filtros**: estilos inyectados al shadow root del widget
vía JS (Pretalx usa Shadow DOM, el CSS del light DOM no penetra)
## Testing
- [ ] Abrir `/es/programa` y verificar que el calendario carga y se ve
bien
- [ ] Repetir en `/en/programa` y `/ca/programa`
- [ ] Pulsar el botón de filtros y comprobar que el dialog sale con
fondo blanco
- [ ] Probar scroll horizontal del calendario en mobile
- [ ] Verificar que el menú muestra "Programa" como 2º item en los 3
idiomas
## Notas
- El widget apunta a `event-url="https://pretalx.com/pycones-2025/"` por
ahora (es el evento con schedule publicado). Cambiar a `pycones-2026`
cuando exista el evento con cronograma.
- El locale `ca` puede caer al default (inglés) si Pretalx no tiene UI
en catalán para este evento. Si se quiere forzar castellano, cambiar
`locale: 'ca'` por `locale: 'es'` solo en `src/i18n/programa/ca.ts`.1 parent a7a3d2e commit f1c9f20
12 files changed
Lines changed: 156 additions & 65 deletions
File tree
- src
- components
- i18n
- programa
- layouts
- pages/[lang]
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments