From 2b8733dea077876daa18b8f225ceb7c064a88463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6rdle=20Bot?= Date: Mon, 1 Dec 2025 17:15:03 +0100 Subject: [PATCH] refactor: update layout and styling for upcoming specials and language switcher - Adjusted the layout of the upcoming specials section for improved readability and alignment. - Enhanced the styling of the language switcher for better visibility and accessibility. - Simplified the structure of the tour genres section to improve overall user experience. --- app/[locale]/page.tsx | 51 ++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index 2ebcaa5..fba6928 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -45,10 +45,9 @@ export default async function Home({ return ( <> -
-
-
-
+
+
+
{tNav('global')} {t('globalTooltip')} @@ -101,28 +100,30 @@ export default async function Home({ ); })}
- - {/* Upcoming Specials */} - {upcomingSpecials.length > 0 && ( -
- {t('comingSoon')}: {upcomingSpecials.map(s => { - const name = getLocalizedValue(s.name, locale); - return ( - - ★ {name} ({s.launchDate ? new Date(s.launchDate).toLocaleDateString(locale, { - day: '2-digit', - month: '2-digit', - year: 'numeric', - timeZone: process.env.TZ - }) : ''}) - {s.curator && {t('curatedBy')} {s.curator}} - - ); - })} -
- )}
-
+ + {/* Upcoming Specials */} + {upcomingSpecials.length > 0 && ( +
+ {t('comingSoon')}: {upcomingSpecials.map(s => { + const name = getLocalizedValue(s.name, locale); + return ( + + ★ {name} ({s.launchDate ? new Date(s.launchDate).toLocaleDateString(locale, { + day: '2-digit', + month: '2-digit', + year: 'numeric', + timeZone: process.env.TZ + }) : ''}) + {s.curator && {t('curatedBy')} {s.curator}} + + ); + })} +
+ )} + + {/* Language Switcher - rechts oben */} +