From 3859b76c22886b9abe9e8a7256af34ea5c07eeba Mon Sep 17 00:00:00 2001 From: Francesc Arpi Roca Date: Tue, 24 Feb 2026 08:40:53 +0100 Subject: [PATCH 1/8] refactor: improve main layout adding a container --- src/components/home/SectionMain.astro | 2 +- src/components/home/SectionSponsors.astro | 12 ++++++++++++ src/components/index.astro | 2 ++ src/layouts/Layout.astro | 2 +- 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/components/home/SectionSponsors.astro diff --git a/src/components/home/SectionMain.astro b/src/components/home/SectionMain.astro index d2104d8..19f01e4 100644 --- a/src/components/home/SectionMain.astro +++ b/src/components/home/SectionMain.astro @@ -32,7 +32,7 @@ const t = texts[lang as keyof typeof texts] -
+

{t['index.message']} diff --git a/src/components/home/SectionSponsors.astro b/src/components/home/SectionSponsors.astro new file mode 100644 index 0000000..70d82c7 --- /dev/null +++ b/src/components/home/SectionSponsors.astro @@ -0,0 +1,12 @@ +--- +import { texts } from '../../i18n/home' + +interface Props { + lang: string +} + +const { lang } = Astro.props +const t = texts[lang as keyof typeof texts] +--- + +

Patros
diff --git a/src/components/index.astro b/src/components/index.astro index 7cb9cfd..4339159 100644 --- a/src/components/index.astro +++ b/src/components/index.astro @@ -1,6 +1,7 @@ --- import Layout from '../layouts/Layout.astro' import SectionMain from './home/SectionMain.astro' +import SectionSponsors from './home/SectionSponsors.astro' interface Props { lang: string @@ -11,4 +12,5 @@ const { lang } = Astro.props + diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 3f3d264..2ba82ed 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -37,7 +37,7 @@ const { title, description = 'PyconES 2026' } = Astro.props

-
-

-

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

-

-
+