Fix dropdown visibility and add missing translations

This commit is contained in:
openhands committed 2026-07-04 20:18:30 +02:00
1 parent 3527cbd34f
commit f381aa987f
8 files changed
+34 -33

No files matched your search

-17
View File
@@ -150,23 +150,6 @@ body {
background-color: var(--color-dropdown); background-color: var(--color-dropdown);
border: 1px solid color-mix(in srgb, var(--color-text-muted) 14%, transparent); border: 1px solid color-mix(in srgb, var(--color-text-muted) 14%, transparent);
box-shadow: 0 8px 32px color-mix(in srgb, rgb(0, 0, 0) 20%, transparent); box-shadow: 0 8px 32px color-mix(in srgb, rgb(0, 0, 0) 20%, transparent);
transform-origin: top right;
transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
opacity: 0;
transform: translateY(-8px) scale(0.95);
pointer-events: none;
}
details[open] > .dropdown-menu {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
@starting-style {
details[open] > .dropdown-menu {
opacity: 0;
transform: translateY(-8px) scale(0.95);
}
} }
} }
+4 -4
View File
@@ -245,7 +245,7 @@ export default async function HomePage() {
boxShadow: "0 4px 24px color-mix(in srgb, var(--color-primary) 35%, transparent), inset 0 1px 0 rgba(255,255,255,0.2)", boxShadow: "0 4px 24px color-mix(in srgb, var(--color-primary) 35%, transparent), inset 0 1px 0 rgba(255,255,255,0.2)",
}} }}
> >
Enter {hotelName} {t("enterHotel", { hotelName })}
<svg className="inline-block ml-2 w-4 h-4 transition-transform duration-300 group-hover:translate-x-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M9 5l7 7-7 7" /></svg> <svg className="inline-block ml-2 w-4 h-4 transition-transform duration-300 group-hover:translate-x-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M9 5l7 7-7 7" /></svg>
</button> </button>
</Link> </Link>
@@ -265,12 +265,12 @@ export default async function HomePage() {
className="relative flex items-center justify-center rounded p-2 text-sm font-semibold" className="relative flex items-center justify-center rounded p-2 text-sm font-semibold"
style={{ backgroundColor: "#e9b124" }} style={{ backgroundColor: "#e9b124" }}
> >
<span className="relative text-white">Online Friends</span> <span className="relative text-white">{t("onlineFriends")}</span>
</div> </div>
<div className="flex items-center gap-3 px-3"> <div className="flex items-center gap-3 px-3">
{onlineFriends.length === 0 ? ( {onlineFriends.length === 0 ? (
<p className="mb-3 block w-full text-center text-xs font-medium text-gray-500 dark:text-white md:mb-0 md:text-left"> <p className="mb-3 block w-full text-center text-xs font-medium text-gray-500 dark:text-white md:mb-0 md:text-left">
No friends online {t("noFriendsOnline")}
</p> </p>
) : ( ) : (
onlineFriends.map((f) => ( onlineFriends.map((f) => (
@@ -310,7 +310,7 @@ export default async function HomePage() {
"linear-gradient(140deg, #1a3a5c 0%, #1e4a6e 20%, #2a5a80 40%, #3a6a90 60%, #4a7aa0 75%, #3a6a90 90%, #2a5a80 100%)", "linear-gradient(140deg, #1a3a5c 0%, #1e4a6e 20%, #2a5a80 40%, #3a6a90 60%, #4a7aa0 75%, #3a6a90 90%, #2a5a80 100%)",
}} }}
> >
<h2 className="text-lg font-bold text-white">Latest Article</h2> <h2 className="text-lg font-bold text-white">{t("latestArticle")}</h2>
</div> </div>
<Link <Link
href={`/news/${latestArticle.slug}`} href={`/news/${latestArticle.slug}`}
+5 -2
View File
@@ -125,7 +125,9 @@
"welcome": "Willkommen bei {hotelName}", "welcome": "Willkommen bei {hotelName}",
"welcomeSubtitle": "Dein Retro-Hotel, jetzt mit Next.js", "welcomeSubtitle": "Dein Retro-Hotel, jetzt mit Next.js",
"welcomeBody": "Abhängen, Möbel sammeln und Freunde treffen.", "welcomeBody": "Abhängen, Möbel sammeln und Freunde treffen.",
"enterHotel": "Hotel betreten", "enterHotel": "{hotelName} betreten",
"onlineFriends": "Online-Freunde",
"noFriendsOnline": "Keine Freunde online",
"register": "JETZT REGISTRIEREN", "register": "JETZT REGISTRIEREN",
"joinNow": "Werde noch heute Mitglied bei {hotelName}!", "joinNow": "Werde noch heute Mitglied bei {hotelName}!",
"recentUsers": "Aktuelle Benutzer", "recentUsers": "Aktuelle Benutzer",
@@ -136,7 +138,8 @@
"allNews": "Alle Nachrichten →", "allNews": "Alle Nachrichten →",
"noArticles": "Noch keine Artikel.", "noArticles": "Noch keine Artikel.",
"noPhotos": "Noch keine Fotos.", "noPhotos": "Noch keine Fotos.",
"noUsers": "Keine Benutzer online" "noUsers": "Keine Benutzer online",
"latestArticle": "Neuester Artikel"
}, },
"news": { "news": {
"title": "Nachrichten", "title": "Nachrichten",
+5 -2
View File
@@ -127,7 +127,9 @@
"welcome": "Welcome to {hotelName}", "welcome": "Welcome to {hotelName}",
"welcomeSubtitle": "Your retro hotel, now powered by Next.js", "welcomeSubtitle": "Your retro hotel, now powered by Next.js",
"welcomeBody": "Hang out, collect furni, and meet friends.", "welcomeBody": "Hang out, collect furni, and meet friends.",
"enterHotel": "Enter hotel", "enterHotel": "Enter {hotelName}",
"onlineFriends": "Online Friends",
"noFriendsOnline": "No friends online",
"register": "REGISTER NOW", "register": "REGISTER NOW",
"joinNow": "Join {hotelName} today!", "joinNow": "Join {hotelName} today!",
"recentUsers": "Recent Users", "recentUsers": "Recent Users",
@@ -138,7 +140,8 @@
"allNews": "All news →", "allNews": "All news →",
"noArticles": "No articles yet.", "noArticles": "No articles yet.",
"noPhotos": "No photos yet.", "noPhotos": "No photos yet.",
"noUsers": "No users online" "noUsers": "No users online",
"latestArticle": "Latest Article"
}, },
"news": { "news": {
"title": "News", "title": "News",
+5 -2
View File
@@ -125,7 +125,9 @@
"welcome": "Bienvenido a {hotelName}", "welcome": "Bienvenido a {hotelName}",
"welcomeSubtitle": "Tu hotel retro, ahora impulsado por Next.js", "welcomeSubtitle": "Tu hotel retro, ahora impulsado por Next.js",
"welcomeBody": "Pasa el rato, colecciona furni y conoce amigos.", "welcomeBody": "Pasa el rato, colecciona furni y conoce amigos.",
"enterHotel": "Entrar al hotel", "enterHotel": "Entrar a {hotelName}",
"onlineFriends": "Amigos en línea",
"noFriendsOnline": "No hay amigos en línea",
"register": "REGÍSTRATE AHORA", "register": "REGÍSTRATE AHORA",
"joinNow": "¡Únete a {hotelName} hoy!", "joinNow": "¡Únete a {hotelName} hoy!",
"recentUsers": "Usuarios recientes", "recentUsers": "Usuarios recientes",
@@ -136,7 +138,8 @@
"allNews": "Todas las noticias →", "allNews": "Todas las noticias →",
"noArticles": "Aún no hay artículos.", "noArticles": "Aún no hay artículos.",
"noPhotos": "Aún no hay fotos.", "noPhotos": "Aún no hay fotos.",
"noUsers": "No hay usuarios en línea" "noUsers": "No hay usuarios en línea",
"latestArticle": "Último artículo"
}, },
"news": { "news": {
"title": "Noticias", "title": "Noticias",
+5 -2
View File
@@ -125,7 +125,9 @@
"welcome": "Bienvenue sur {hotelName}", "welcome": "Bienvenue sur {hotelName}",
"welcomeSubtitle": "Votre hôtel rétro, désormais propulsé par Next.js", "welcomeSubtitle": "Votre hôtel rétro, désormais propulsé par Next.js",
"welcomeBody": "Traînez, collectionnez des meubles et rencontrez des amis.", "welcomeBody": "Traînez, collectionnez des meubles et rencontrez des amis.",
"enterHotel": "Entrer dans l'hôtel", "enterHotel": "Entrer dans {hotelName}",
"onlineFriends": "Amis en ligne",
"noFriendsOnline": "Aucun ami en ligne",
"register": "S'INSCRIRE MAINTENANT", "register": "S'INSCRIRE MAINTENANT",
"joinNow": "Rejoignez {hotelName} dès aujourd'hui !", "joinNow": "Rejoignez {hotelName} dès aujourd'hui !",
"recentUsers": "Utilisateurs récents", "recentUsers": "Utilisateurs récents",
@@ -136,7 +138,8 @@
"allNews": "Toutes les actualités →", "allNews": "Toutes les actualités →",
"noArticles": "Pas encore d'articles.", "noArticles": "Pas encore d'articles.",
"noPhotos": "Pas encore de photos.", "noPhotos": "Pas encore de photos.",
"noUsers": "Aucun utilisateur en ligne" "noUsers": "Aucun utilisateur en ligne",
"latestArticle": "Dernier article"
}, },
"news": { "news": {
"title": "Actualités", "title": "Actualités",
+5 -2
View File
@@ -125,7 +125,9 @@
"welcome": "Benvenuto su {hotelName}", "welcome": "Benvenuto su {hotelName}",
"welcomeSubtitle": "Il tuo hotel retrò, ora con tecnologia Next.js", "welcomeSubtitle": "Il tuo hotel retrò, ora con tecnologia Next.js",
"welcomeBody": "Rilassati, colleziona furni e fai nuove amicizie.", "welcomeBody": "Rilassati, colleziona furni e fai nuove amicizie.",
"enterHotel": "Entra nell'hotel", "enterHotel": "Entra in {hotelName}",
"onlineFriends": "Amici online",
"noFriendsOnline": "Nessun amico online",
"register": "REGISTRATI ORA", "register": "REGISTRATI ORA",
"joinNow": "Unisciti a {hotelName} oggi!", "joinNow": "Unisciti a {hotelName} oggi!",
"recentUsers": "Utenti recenti", "recentUsers": "Utenti recenti",
@@ -136,7 +138,8 @@
"allNews": "Tutte le notizie →", "allNews": "Tutte le notizie →",
"noArticles": "Ancora nessun articolo.", "noArticles": "Ancora nessun articolo.",
"noPhotos": "Ancora nessuna foto.", "noPhotos": "Ancora nessuna foto.",
"noUsers": "Nessun utente online" "noUsers": "Nessun utente online",
"latestArticle": "Ultimo articolo"
}, },
"news": { "news": {
"title": "Notizie", "title": "Notizie",
+5 -2
View File
@@ -125,7 +125,9 @@
"welcome": "Welkom bij {hotelName}", "welcome": "Welkom bij {hotelName}",
"welcomeSubtitle": "Je retro hotel, nu mogelijk gemaakt door Next.js", "welcomeSubtitle": "Je retro hotel, nu mogelijk gemaakt door Next.js",
"welcomeBody": "Rondhangen, meubels verzamelen en vrienden ontmoeten.", "welcomeBody": "Rondhangen, meubels verzamelen en vrienden ontmoeten.",
"enterHotel": "Hotel betreden", "enterHotel": "{hotelName} betreden",
"onlineFriends": "Online vrienden",
"noFriendsOnline": "Geen vrienden online",
"register": "NU REGISTREREN", "register": "NU REGISTREREN",
"joinNow": "Word vandaag nog lid van {hotelName}!", "joinNow": "Word vandaag nog lid van {hotelName}!",
"recentUsers": "Recente gebruikers", "recentUsers": "Recente gebruikers",
@@ -136,7 +138,8 @@
"allNews": "Al het nieuws →", "allNews": "Al het nieuws →",
"noArticles": "Nog geen artikelen.", "noArticles": "Nog geen artikelen.",
"noPhotos": "Nog geen foto's.", "noPhotos": "Nog geen foto's.",
"noUsers": "Geen gebruikers online" "noUsers": "Geen gebruikers online",
"latestArticle": "Laatste artikel"
}, },
"news": { "news": {
"title": "Nieuws", "title": "Nieuws",