From 1ceb02e2cf0565711d75df4b70f9d026888c60ff Mon Sep 17 00:00:00 2001 From: Francesc Arpi Roca Date: Tue, 17 Feb 2026 08:31:11 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20transforma=20home=20en=20secciones?= =?UTF-8?q?=20y=20a=C3=B1ade=20un=20mensaje?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/SectionMain.astro | 105 +++++++++++++++++++++++ src/components/index.astro | 118 +------------------------- src/i18n/home.ts | 9 +- src/layouts/Layout.astro | 2 +- 4 files changed, 114 insertions(+), 120 deletions(-) create mode 100644 src/components/home/SectionMain.astro diff --git a/src/components/home/SectionMain.astro b/src/components/home/SectionMain.astro new file mode 100644 index 0000000..d2104d8 --- /dev/null +++ b/src/components/home/SectionMain.astro @@ -0,0 +1,105 @@ +--- +import { texts } from '../../i18n/home' + +interface Props { + lang: string +} + +const { lang } = Astro.props +const t = texts[lang as keyof typeof texts] +--- + +
+
+

+ PyconES Barcelona 2026 +

+ +

+ + + {t['index.initializing']} + + +

+
+
+

+

+ {t['index.message']} +

+

+
+
+ + diff --git a/src/components/index.astro b/src/components/index.astro index c44c851..0d8ade3 100644 --- a/src/components/index.astro +++ b/src/components/index.astro @@ -1,129 +1,15 @@ --- import Layout from '../layouts/Layout.astro' import '@fontsource-variable/jetbrains-mono' -import { texts } from '../i18n/home' -import { getRelativeLocaleUrl } from 'astro:i18n' +import SectionMain from './home/SectionMain.astro' interface Props { lang: string } const { lang } = Astro.props -const t = texts[lang as keyof typeof texts] --- -
-
-

- PyconES Barcelona 2026 -

- -

- - {t['index.initializing']} - -

- - -
-
+
- - diff --git a/src/i18n/home.ts b/src/i18n/home.ts index e981ddd..81839ca 100644 --- a/src/i18n/home.ts +++ b/src/i18n/home.ts @@ -2,16 +2,19 @@ export const texts = { es: { 'index.initializing': 'Inicializando sistema...', 'index.subtitle': 'Sede UB Barcelona | 6-8 Nov 2026', - 'index.sponsor_btn': 'PATROCINA', + 'index.message': + 'Forma parte de la mayor conferencia nacional de Python, donde cientos de entusiastas, profesionales y empresas se reúnen para compartir conocimientos, experiencias y oportunidades en el mundo de Python. ¡No te pierdas esta oportunidad única de aprender, conectar y crecer en la comunidad Python!', }, en: { 'index.initializing': 'Initialising system...', 'index.subtitle': 'UB Barcelona Venue | Nov 6-8, 2026', - 'index.sponsor_btn': 'BECOME A SPONSOR', + 'index.message': + "Join the largest national Python conference, where hundreds of enthusiasts, professionals, and companies come together to share knowledge, experiences, and opportunities in the world of Python. Don't miss this unique opportunity to learn, connect, and grow in the Python community!", }, ca: { 'index.initializing': 'Inicialitzant sistema...', 'index.subtitle': 'Seu UB Barcelona | 6-8 Nov 2026', - 'index.sponsor_btn': 'PATROCINA', + 'index.message': + 'Forma part de la major conferència nacional de Python, on centenars d’entusiastes, professionals i empreses es reuneixen per compartir coneixements, experiències i oportunitats en el món de Python. No et perdis aquesta oportunitat única d’aprendre, connectar i créixer en la comunitat Python!', }, } as const diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 07d9bbe..47e420f 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -39,7 +39,7 @@ const { title, description = 'PyconES 2026' } = Astro.props -
+