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.
This commit is contained in:
@@ -45,10 +45,9 @@ export default async function Home({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div id="tour-genres" style={{ textAlign: 'center', padding: '1rem', background: '#f3f4f6' }}>
|
<div id="tour-genres" style={{ textAlign: 'center', padding: '1rem', background: '#f3f4f6', position: 'relative' }}>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '0.5rem', maxWidth: '1200px', margin: '0 auto', padding: '0 1rem' }}>
|
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', marginBottom: '0.5rem', maxWidth: '1200px', margin: '0 auto', padding: '0 1rem' }}>
|
||||||
<div style={{ flex: 1 }} />
|
<div style={{ display: 'flex', justifyContent: 'center', gap: '1rem', flexWrap: 'wrap', alignItems: 'center' }}>
|
||||||
<div style={{ display: 'flex', justifyContent: 'center', gap: '1rem', flexWrap: 'wrap', alignItems: 'center', flex: 2 }}>
|
|
||||||
<div className="tooltip">
|
<div className="tooltip">
|
||||||
<Link href="/" style={{ fontWeight: 'bold', textDecoration: 'underline' }}>{tNav('global')}</Link>
|
<Link href="/" style={{ fontWeight: 'bold', textDecoration: 'underline' }}>{tNav('global')}</Link>
|
||||||
<span className="tooltip-text">{t('globalTooltip')}</span>
|
<span className="tooltip-text">{t('globalTooltip')}</span>
|
||||||
@@ -101,10 +100,11 @@ export default async function Home({
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Upcoming Specials */}
|
{/* Upcoming Specials */}
|
||||||
{upcomingSpecials.length > 0 && (
|
{upcomingSpecials.length > 0 && (
|
||||||
<div style={{ marginTop: '0.5rem', fontSize: '0.875rem', color: '#666' }}>
|
<div style={{ marginTop: '0.5rem', fontSize: '0.875rem', color: '#666', maxWidth: '1200px', margin: '0 auto', padding: '0 1rem' }}>
|
||||||
{t('comingSoon')}: {upcomingSpecials.map(s => {
|
{t('comingSoon')}: {upcomingSpecials.map(s => {
|
||||||
const name = getLocalizedValue(s.name, locale);
|
const name = getLocalizedValue(s.name, locale);
|
||||||
return (
|
return (
|
||||||
@@ -121,8 +121,9 @@ export default async function Home({
|
|||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
|
||||||
<div style={{ flex: 1, display: 'flex', justifyContent: 'flex-end' }}>
|
{/* Language Switcher - rechts oben */}
|
||||||
|
<div style={{ position: 'absolute', top: '1rem', right: '1rem' }}>
|
||||||
<LanguageSwitcher />
|
<LanguageSwitcher />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user