Programa: añadir página con widget de Pretalx#213
Merged
Conversation
Embeds the Pretalx schedule widget at /programa for the 3 supported
locales, with the menu entry as the 2nd item after Inicio.
Includes:
- Page wrapper with getStaticPaths for es/en/ca
- Localized component (h1, intro, widget, noscript fallback)
- New i18n module (programa/{index,es,en,ca}.ts)
- Layout: optional fullWidth prop for full-viewport content
- Widget wrapped in overflow-x-auto for horizontal scroll on narrow viewports
- Dialog styles injected into the widget's shadow root via JS,
since Pretalx uses Shadow DOM and light-DOM CSS does not cross it
The pretalx-schedule web component auto-detects a scrollParent by walking up the DOM looking for the first ancestor with overflow auto or scroll. When the wrapper had overflow-x-auto, the widget adopted it as scrollParent. Its programmaticScrollTo passes document-coordinate Y values to scrollParent.scrollTo(), which expects scrollParent-relative coords, so the browser silently clamped the scroll and day tab clicks appeared to do nothing. Dropping overflow-x-auto makes scrollParent resolve to the window, where the same coordinate value works correctly.
Collaborator
|
català no funciona... però potser prettiex no ho té? |
itziarZG
approved these changes
Jul 8, 2026
Collaborator
Author
M'acaben de confirmar que a pretix no hi ha català. Així que és normal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Descripción
Añade la página
/programacon el widget de Pretalx embebido, mostrando el cronograma de PyConES en los 3 idiomas soportados (es/en/ca).Cambios
src/pages/[lang]/programa.astrocongetStaticPathspara es/en/casrc/components/ProgramaPage.astro(h1, intro, widget, noscript fallback)src/i18n/programa/{index,es,en,ca}.tsPrograma/Programmeinsertado como 2º item (después de "Inicio")fullWidthpara contenido full-viewport (sin container)overflow-x-autopara scroll horizontal en viewports angostosTesting
/es/programay verificar que el calendario carga y se ve bien/en/programay/ca/programaNotas
event-url="https://pretalx.com/pycones-2025/"por ahora (es el evento con schedule publicado). Cambiar apycones-2026cuando exista el evento con cronograma.capuede caer al default (inglés) si Pretalx no tiene UI en catalán para este evento. Si se quiere forzar castellano, cambiarlocale: 'ca'porlocale: 'es'solo ensrc/i18n/programa/ca.ts.