Add language translation system and weather widget with admin controls

This commit is contained in:
2026-06-28 15:35:02 -05:00
parent 295c024ced
commit 01ea9e391d
7 changed files with 655 additions and 3 deletions
+9 -1
View File
@@ -4,6 +4,9 @@ import { useEffect, useState } from 'react';
import Slideshow from '@/components/Slideshow';
import CalendarStrip from '@/components/CalendarStrip';
import MeasuredText from '@/components/MeasuredText';
import WeatherWidget from '@/components/WeatherWidget';
import LanguageSwitcher from '@/components/LanguageSwitcher';
import { t, getLanguage } from '@/lib/i18n';
const gold = '#E8A849';
const navy = '#010D1E';
@@ -23,6 +26,11 @@ export default function HomePage() {
return (
<main style={{ minHeight: 'calc(100vh - 56px)', background: navy, color: cream }}>
<LanguageSwitcher />
<div style={{ position: 'absolute', top: '1rem', right: '1rem', zIndex: 10 }}>
<WeatherWidget />
</div>
<Slideshow />
<section
@@ -59,7 +67,7 @@ export default function HomePage() {
La Huasca
</h1>
<p style={{ fontSize: '18px', lineHeight: 1.55, color: 'rgba(245,240,232,0.78)', maxWidth: '52ch', margin: '0 0 2rem' }}>
Hotel · Restaurant · Andean Highlands
{t('common.hotel', getLanguage())} · {t('common.restaurant', getLanguage())} · {t('common.andean_highlands', getLanguage())}
</p>
</section>