Polish responsive design across all screen sizes and refine card blocks
CI / check (push) Failing after 26s
CI / release (push) Skipped
CI / deploy (push) Skipped

- Enhance SurfaceCard with refined borders, layered shadows, and polished
  primary-tinted header with an icon container
- Update homepage blocks (hero, features, stats, login, news, photos) for
  proper mobile/tablet/desktop responsiveness and tighter mobile spacing
- Improve content-card, stat-block, card-grid and card styling with subtle
  depth (layered shadow + inner hairline) and smoother hover states
- Refine site header, footer, top header and site layout spacing for small
  screens while keeping a consistent professional look on large screens
- Add min-tap-height targets and responsive typography on mobile
This commit is contained in:
openhands committed 2026-08-31 11:45:02 +02:00
1 parent b1ddda66ff
commit 903d175f2d
7 files changed
+194 -107

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ export default async function SiteLayout({
</> </>
) : null} ) : null}
<main> <main>
<div className="mx-auto mt-6 grid max-w-7xl grid-cols-12 gap-x-3 gap-y-6 px-4 py-4 md:mt-0 md:p-6"> <div className="mx-auto mt-4 grid max-w-7xl grid-cols-12 gap-x-3 gap-y-5 px-3 py-3 sm:px-4 sm:py-4 md:mt-0 md:px-6 md:py-6 md:gap-y-6">
<div className="col-span-12 min-w-0"> <div className="col-span-12 min-w-0">
<MotionPageWrapper>{children}</MotionPageWrapper> <MotionPageWrapper>{children}</MotionPageWrapper>
</div> </div>
+44 -42
View File
@@ -118,11 +118,11 @@ export default async function Home() {
]; ];
return ( return (
<div className="mx-auto w-full max-w-6xl flex flex-col gap-8 pb-16"> <div className="mx-auto w-full max-w-6xl flex flex-col gap-6 px-1 sm:px-0 md:gap-8 pb-12 md:pb-16">
{/* ── Top Bar ── */} {/* ── Top Bar ── */}
<Reveal> <Reveal>
<div <div
className="relative flex items-center justify-between rounded-xl border px-5 py-3" className="relative flex items-center justify-between rounded-xl border px-3 py-2.5 sm:px-5 sm:py-3"
style={{ style={{
background: background:
"color-mix(in srgb, var(--color-surface) 60%, transparent)", "color-mix(in srgb, var(--color-surface) 60%, transparent)",
@@ -130,9 +130,11 @@ export default async function Home() {
WebkitBackdropFilter: "blur(14px)", WebkitBackdropFilter: "blur(14px)",
borderColor: borderColor:
"color-mix(in srgb, var(--color-text-muted) 8%, transparent)", "color-mix(in srgb, var(--color-text-muted) 8%, transparent)",
boxShadow:
"0 1px 3px rgba(0,0,0,0.04), 0 0 0 0.5px color-mix(in srgb, var(--color-text-muted) 6%, transparent)",
}} }}
> >
<div className="flex items-center gap-3"> <div className="flex items-center gap-2 sm:gap-3">
{logo ? ( {logo ? (
<Image <Image
src={logo} src={logo}
@@ -154,14 +156,14 @@ export default async function Home() {
/> />
)} )}
<span <span
className="text-sm font-extrabold uppercase tracking-wide" className="hidden sm:inline text-sm font-extrabold uppercase tracking-wide"
style={{ color: "var(--color-text-readable)" }} style={{ color: "var(--color-text-readable)" }}
> >
{hotelName} {hotelName}
</span> </span>
</div> </div>
<div <div
className="flex items-center gap-1.5 rounded-lg px-2 py-1" className="flex items-center gap-1 sm:gap-1.5 rounded-lg px-1.5 py-1 sm:px-2"
style={{ style={{
background: background:
"color-mix(in srgb, var(--color-text-muted) 4%, transparent)", "color-mix(in srgb, var(--color-text-muted) 4%, transparent)",
@@ -169,7 +171,7 @@ export default async function Home() {
> >
<LanguageSwitcher /> <LanguageSwitcher />
<div <div
className="w-px h-5" className="hidden sm:block w-px h-5"
style={{ style={{
background: background:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)", "color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
@@ -191,10 +193,12 @@ export default async function Home() {
{/* ── Hero ── */} {/* ── Hero ── */}
<Reveal> <Reveal>
<div <div
className="relative overflow-hidden rounded-3xl border" className="relative overflow-hidden rounded-2xl sm:rounded-3xl border"
style={{ style={{
borderColor: borderColor:
"color-mix(in srgb, var(--color-text-muted) 8%, transparent)", "color-mix(in srgb, var(--color-text-muted) 8%, transparent)",
boxShadow:
"0 4px 24px rgba(0,0,0,0.08), 0 0 0 0.5px color-mix(in srgb, var(--color-text-muted) 6%, transparent)",
}} }}
> >
<Image <Image
@@ -214,11 +218,11 @@ export default async function Home() {
/> />
<AmbientOrbs /> <AmbientOrbs />
<div <div
className="relative flex flex-col items-center gap-8 px-6 py-12 text-center md:px-12 md:py-20" className="relative flex flex-col items-center gap-5 px-4 py-10 text-center sm:gap-8 sm:px-6 sm:py-12 md:px-12 md:py-20"
style={{ zIndex: 2 }} style={{ zIndex: 2 }}
> >
<div <div
className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full text-xs font-bold uppercase tracking-widest mb-2 border backdrop-blur-sm" className="inline-flex items-center gap-2 px-3 py-1 sm:px-4 sm:py-1.5 rounded-full text-[10px] sm:text-xs font-bold uppercase tracking-widest mb-1 border backdrop-blur-sm"
style={{ style={{
background: background:
"color-mix(in srgb, var(--color-primary) 12%, transparent)", "color-mix(in srgb, var(--color-primary) 12%, transparent)",
@@ -234,7 +238,7 @@ export default async function Home() {
{th("online", { count: online, hotel: hotelName })} {th("online", { count: online, hotel: hotelName })}
</div> </div>
<h1 <h1
className="text-4xl font-black leading-[1.05] tracking-tight mb-3 md:text-5xl lg:text-6xl" className="text-2xl font-black leading-[1.05] tracking-tight mb-2 sm:text-3xl md:text-5xl lg:text-6xl"
style={{ style={{
color: "var(--color-text-readable)", color: "var(--color-text-readable)",
fontFamily: "var(--font-nunito)", fontFamily: "var(--font-nunito)",
@@ -243,15 +247,15 @@ export default async function Home() {
<TypewriterText text={tp("welcome", { hotelName })} /> <TypewriterText text={tp("welcome", { hotelName })} />
</h1> </h1>
<p <p
className="text-base leading-relaxed max-w-2xl mb-8 md:text-lg" className="text-sm leading-relaxed max-w-2xl mb-5 sm:text-base md:text-lg md:mb-8"
style={{ color: "var(--color-text-muted)" }} style={{ color: "var(--color-text-muted)" }}
> >
{tp("welcomeBody")} {tp("welcomeBody")}
</p> </p>
<div className="flex flex-wrap gap-3 justify-center"> <div className="flex flex-wrap gap-2.5 sm:gap-3 justify-center">
<Link <Link
href="/register" href="/register"
className="inline-flex items-center gap-2.5 font-extrabold text-sm px-8 py-4 rounded-xl transition-all duration-200 hover:scale-[1.03] active:scale-95 shadow-lg" className="inline-flex items-center gap-2 sm:gap-2.5 font-extrabold text-xs sm:text-sm px-5 sm:px-8 py-3 sm:py-4 rounded-xl transition-all duration-200 hover:scale-[1.03] active:scale-95 shadow-lg"
style={{ style={{
background: "var(--color-primary)", background: "var(--color-primary)",
color: "var(--color-primary-foreground)", color: "var(--color-primary-foreground)",
@@ -270,7 +274,7 @@ export default async function Home() {
</Link> </Link>
<Link <Link
href="/login" href="/login"
className="inline-flex items-center gap-2 font-bold text-sm px-8 py-4 rounded-xl border-2 transition-all duration-200 hover:scale-[1.03] active:scale-95 backdrop-blur-sm" className="inline-flex items-center gap-2 font-bold text-xs sm:text-sm px-5 sm:px-8 py-3 sm:py-4 rounded-xl border-2 transition-all duration-200 hover:scale-[1.03] active:scale-95 backdrop-blur-sm"
style={{ style={{
borderColor: borderColor:
"color-mix(in srgb, var(--color-text-muted) 20%, transparent)", "color-mix(in srgb, var(--color-text-muted) 20%, transparent)",
@@ -288,23 +292,25 @@ export default async function Home() {
{/* ── Features ── */} {/* ── Features ── */}
<Reveal> <Reveal>
<div className="grid grid-cols-1 gap-4 sm:grid-cols-3"> <div className="grid grid-cols-1 gap-3 sm:grid-cols-3 sm:gap-4">
{features.map((f) => ( {features.map((f) => (
<SurfaceCard <SurfaceCard
key={f.title} key={f.title}
className="relative p-5 text-center transition-all duration-300 hover:-translate-y-1 hover:shadow-xl" className="relative p-4 sm:p-5 text-center transition-all duration-300 hover:-translate-y-1 hover:shadow-lg"
> >
<div <div
className="mx-auto mb-3 flex h-12 w-12 items-center justify-center rounded-xl" className="mx-auto mb-3 flex h-11 w-11 sm:h-12 sm:w-12 items-center justify-center rounded-xl"
style={{ style={{
background: background:
"color-mix(in srgb, var(--color-primary) 14%, transparent)", "color-mix(in srgb, var(--color-primary) 14%, transparent)",
boxShadow:
"inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 10%, transparent)",
}} }}
> >
<Image src={f.icon} alt="" width={26} height={26} unoptimized /> <Image src={f.icon} alt="" width={24} height={24} unoptimized />
</div> </div>
<h3 <h3
className="text-base font-extrabold mb-1" className="text-sm sm:text-base font-extrabold mb-1"
style={{ style={{
color: "var(--color-text-readable)", color: "var(--color-text-readable)",
fontFamily: "var(--font-nunito)", fontFamily: "var(--font-nunito)",
@@ -313,7 +319,7 @@ export default async function Home() {
{f.title} {f.title}
</h3> </h3>
<p <p
className="text-sm leading-relaxed" className="text-xs sm:text-sm leading-relaxed"
style={{ color: "var(--color-text-muted)" }} style={{ color: "var(--color-text-muted)" }}
> >
{f.desc} {f.desc}
@@ -325,7 +331,7 @@ export default async function Home() {
{/* ── Stats + Login ── */} {/* ── Stats + Login ── */}
<Reveal> <Reveal>
<div className="grid grid-cols-1 gap-4 md:grid-cols-4"> <div className="grid grid-cols-2 gap-3 sm:gap-4 md:grid-cols-4">
{[ {[
{ {
value: users, value: users,
@@ -350,13 +356,13 @@ export default async function Home() {
].map((s) => ( ].map((s) => (
<SurfaceCard <SurfaceCard
key={s.label} key={s.label}
className="relative p-5 text-center transition-all duration-300 hover:-translate-y-1 hover:shadow-xl" className="relative p-3 sm:p-5 text-center transition-all duration-300 hover:-translate-y-1 hover:shadow-lg"
> >
<div className="mb-0.5 text-3xl font-black tracking-tight md:text-4xl"> <div className="mb-0.5 text-2xl sm:text-3xl font-black tracking-tight md:text-4xl">
<AnimatedCounter value={s.value} /> <AnimatedCounter value={s.value} />
</div> </div>
<div <div
className="text-xs font-bold uppercase tracking-widest flex items-center justify-center gap-1.5" className="text-[10px] sm:text-xs font-bold uppercase tracking-widest flex items-center justify-center gap-1 sm:gap-1.5"
style={{ color: "var(--color-text-muted)" }} style={{ color: "var(--color-text-muted)" }}
> >
<Image src={s.icon} alt="" width={14} height={14} unoptimized /> <Image src={s.icon} alt="" width={14} height={14} unoptimized />
@@ -373,7 +379,7 @@ export default async function Home() {
<SurfaceCard <SurfaceCard
title={th("login")} title={th("login")}
icon="/assets/images/icons/navigation/me.png" icon="/assets/images/icons/navigation/me.png"
bodyClassName="p-4" bodyClassName="p-3.5 sm:p-4"
> >
<HomeLoginForm <HomeLoginForm
captcha={{ captcha={{
@@ -391,17 +397,13 @@ export default async function Home() {
icon="/assets/images/icons/navigation/goody.png" icon="/assets/images/icons/navigation/goody.png"
actionHref="/community" actionHref="/community"
actionLabel={tp("allUsers")} actionLabel={tp("allUsers")}
bodyClassName="p-4" bodyClassName="p-3.5 sm:p-4"
> >
<div className="grid grid-cols-4 gap-2"> <div className="grid grid-cols-4 gap-1.5 sm:gap-2">
{recentUsers.map((u) => ( {recentUsers.map((u) => (
<div <div
key={u.username} key={u.username}
className="flex flex-col items-center gap-0.5 rounded-lg px-1 py-1" className="flex flex-col items-center gap-0.5 rounded-lg px-1 py-1.5 transition-colors hover:bg-[color-mix(in_srgb,var(--color-primary)_5%,transparent)]"
style={{
background:
"color-mix(in srgb, var(--color-primary) 5%, transparent)",
}}
> >
<UserAvatarThumbnail <UserAvatarThumbnail
figure={u.look} figure={u.look}
@@ -410,7 +412,7 @@ export default async function Home() {
className="rounded-md" className="rounded-md"
/> />
<span <span
className="max-w-[64px] truncate text-center text-[10px] font-bold leading-tight" className="max-w-[64px] truncate text-center text-[9px] sm:text-[10px] font-bold leading-tight"
style={{ color: "var(--color-text-readable)" }} style={{ color: "var(--color-text-readable)" }}
> >
{u.username} {u.username}
@@ -431,14 +433,14 @@ export default async function Home() {
actionLabel={tp("allNews")} actionLabel={tp("allNews")}
> >
{articles.length > 0 ? ( {articles.length > 0 ? (
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2"> <div className="grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4">
{articles.slice(0, 4).map((a) => ( {articles.slice(0, 4).map((a) => (
<Link <Link
key={a.slug} key={a.slug}
href={`/news/${a.slug}`} href={`/news/${a.slug}`}
className="group relative w-full overflow-hidden rounded-xl transition-all duration-300 hover:-translate-y-0.5 hover:shadow-lg" className="group relative w-full overflow-hidden rounded-xl transition-all duration-300 hover:-translate-y-0.5 hover:shadow-lg"
style={{ style={{
height: "200px", height: "clamp(160px, 20vw, 200px)",
backgroundColor: "var(--color-background)", backgroundColor: "var(--color-background)",
border: border:
"1px solid color-mix(in srgb, var(--color-text-muted) 10%, transparent)", "1px solid color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
@@ -449,24 +451,24 @@ export default async function Home() {
src={a.image} src={a.image}
alt={a.title} alt={a.title}
fill fill
sizes="(max-width: 768px) 100vw, 400px" sizes="(max-width: 640px) 100vw, 400px"
className="rounded-xl object-cover transition-all duration-300 group-hover:scale-105" className="rounded-xl object-cover transition-all duration-300 group-hover:scale-105"
/> />
<div className="absolute right-2.5 top-2.5 flex h-8 w-8 translate-x-1 items-center justify-center rounded-full bg-black/50 opacity-0 backdrop-blur-sm transition-all duration-300 group-hover:translate-x-0 group-hover:opacity-100"> <div className="absolute right-2.5 top-2.5 flex h-8 w-8 translate-x-1 items-center justify-center rounded-full bg-black/50 opacity-0 backdrop-blur-sm transition-all duration-300 group-hover:translate-x-0 group-hover:opacity-100">
<span className="text-sm font-bold text-white">→</span> <span className="text-sm font-bold text-white">→</span>
</div> </div>
<div <div
className="absolute bottom-0 left-0 w-full p-2.5" className="absolute bottom-0 left-0 w-full p-2.5 sm:p-3"
style={{ style={{
background: background:
"linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%)", "linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%)",
}} }}
> >
<h3 className="truncate text-base font-bold text-white text-shadow-sm"> <h3 className="truncate text-sm sm:text-base font-bold text-white text-shadow-sm">
{a.title} {a.title}
</h3> </h3>
<p <p
className="mt-0.5 text-[11px] font-semibold opacity-80" className="mt-0.5 text-[10px] sm:text-[11px] font-semibold opacity-80"
style={{ color: "var(--color-text-muted)" }} style={{ color: "var(--color-text-muted)" }}
> >
{formatDate(a.createdAt, "date", "")} {formatDate(a.createdAt, "date", "")}
@@ -500,7 +502,7 @@ export default async function Home() {
<Link <Link
key={p.id} key={p.id}
href="/photos" href="/photos"
className="block aspect-square overflow-hidden rounded-xl border transition-all duration-200 hover:shadow-md" className="block aspect-square overflow-hidden rounded-xl border transition-all duration-200 hover:shadow-md hover:scale-[1.02]"
style={{ style={{
borderColor: borderColor:
"color-mix(in srgb, var(--color-text-muted) 8%, transparent)", "color-mix(in srgb, var(--color-text-muted) 8%, transparent)",
@@ -511,7 +513,7 @@ export default async function Home() {
alt="" alt=""
width={200} width={200}
height={200} height={200}
className="h-full w-full object-cover transition-transform duration-300 hover:scale-105" className="h-full w-full object-cover"
unoptimized unoptimized
/> />
</Link> </Link>
+98 -30
View File
@@ -243,6 +243,7 @@ summary,
color 0.15s ease-in-out, color 0.15s ease-in-out,
background-color 0.15s ease-in-out; background-color 0.15s ease-in-out;
border-radius: 0.5rem; border-radius: 0.5rem;
min-height: 44px;
} }
.nav-item:hover { .nav-item:hover {
color: var(--color-primary-readable, var(--color-primary)); color: var(--color-primary-readable, var(--color-primary));
@@ -262,6 +263,9 @@ summary,
transition: transition:
background-color 0.1s ease-in-out, background-color 0.1s ease-in-out,
color 0.1s ease-in-out; color 0.1s ease-in-out;
min-height: 44px;
display: flex;
align-items: center;
} }
.dropdown-item:hover { .dropdown-item:hover {
background-color: color-mix(in srgb, var(--color-primary) 12%, transparent); background-color: color-mix(in srgb, var(--color-primary) 12%, transparent);
@@ -275,7 +279,9 @@ summary,
background-color: var(--color-dropdown); background-color: var(--color-dropdown);
border: 1px solid border: 1px solid
color-mix(in srgb, var(--color-text-muted) 14%, transparent); 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),
0 0 0 0.5px color-mix(in srgb, var(--color-text-muted) 8%, transparent);
} }
} }
@@ -495,27 +501,36 @@ a:hover {
); );
border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent); border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
padding: 2rem 2.25rem; padding: 1.5rem 1.75rem;
box-shadow: var(--shadow-card); box-shadow: var(--shadow-card);
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
} }
.card { .card {
background: var(--color-surface); background: var(--color-surface);
color: var(--color-surface-text-readable, var(--color-text-readable)); color: var(--color-surface-text-readable, var(--color-text-readable));
border: 1px solid color-mix(in srgb, var(--color-text-muted) 12%, transparent); border: 1px solid color-mix(in srgb, var(--color-text-muted) 10%, transparent);
border-radius: var(--card-border-radius); border-radius: var(--card-border-radius);
box-shadow: var(--shadow-card); box-shadow:
0 1px 2px rgba(0, 0, 0, 0.04),
0 2px 8px rgba(0, 0, 0, 0.03),
0 0 0 0.5px color-mix(in srgb, var(--color-text-muted) 6%, transparent);
padding: 1.1rem 1.25rem; padding: 1.1rem 1.25rem;
transition: transition:
transform 0.2s ease, transform 0.2s ease,
box-shadow 0.2s ease; box-shadow 0.2s ease;
} }
.card:hover { .card:hover {
box-shadow: var(--shadow-card-hover); box-shadow:
0 4px 12px rgba(0, 0, 0, 0.06),
0 8px 24px rgba(0, 0, 0, 0.04),
0 0 0 0.5px color-mix(in srgb, var(--color-text-muted) 8%, transparent);
} }
.card.hover:hover { .card.hover:hover {
transform: translateY(-3px); transform: translateY(-3px);
box-shadow: var(--shadow-card-hover); box-shadow:
0 6px 16px rgba(0, 0, 0, 0.08),
0 12px 32px rgba(0, 0, 0, 0.06),
0 0 0 0.5px color-mix(in srgb, var(--color-text-muted) 10%, transparent);
} }
.article-img { .article-img {
width: 100%; width: 100%;
@@ -799,26 +814,34 @@ tbody tr:hover {
border: 1px solid border: 1px solid
color-mix( color-mix(
in srgb, in srgb,
var(--color-text-muted-readable, var(--color-text-muted)) 12%, var(--color-text-muted-readable, var(--color-text-muted)) 10%,
transparent transparent
); );
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
box-shadow: var(--shadow-card); box-shadow:
0 1px 2px rgba(0, 0, 0, 0.04),
0 2px 8px rgba(0, 0, 0, 0.03),
0 0 0 0.5px color-mix(in srgb, var(--color-text-muted) 6%, transparent);
overflow: hidden; overflow: hidden;
transition: box-shadow 0.2s ease; transition:
box-shadow 0.2s ease,
transform 0.2s ease;
} }
.content-card:hover { .content-card:hover {
box-shadow: var(--shadow-card-hover); box-shadow:
0 4px 12px rgba(0, 0, 0, 0.06),
0 8px 24px rgba(0, 0, 0, 0.04),
0 0 0 0.5px color-mix(in srgb, var(--color-text-muted) 8%, transparent);
} }
.content-card-head { .content-card-head {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.75rem;
padding: 0.9rem 1.1rem; padding: 0.85rem 1.1rem;
background: linear-gradient( background: linear-gradient(
135deg, 135deg,
color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)), color-mix(in srgb, var(--color-primary) 8%, var(--color-surface)),
color-mix(in srgb, var(--color-primary) 5%, var(--color-surface)) color-mix(in srgb, var(--color-primary) 4%, var(--color-surface))
); );
border-bottom: 1px solid border-bottom: 1px solid
color-mix( color-mix(
@@ -829,19 +852,19 @@ tbody tr:hover {
} }
.content-card-icon { .content-card-icon {
flex: none; flex: none;
width: 44px; width: 36px;
height: 44px; height: 36px;
border-radius: 999px; border-radius: 10px;
display: grid; display: grid;
place-items: center; place-items: center;
font-size: 1.25rem; font-size: 1.1rem;
background: linear-gradient( background: linear-gradient(
135deg, 135deg,
color-mix(in srgb, var(--color-primary) 22%, var(--color-surface)), color-mix(in srgb, var(--color-primary) 18%, var(--color-surface)),
color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)) color-mix(in srgb, var(--color-primary) 10%, var(--color-surface))
); );
box-shadow: inset 0 0 0 1px box-shadow: inset 0 0 0 1px
color-mix(in srgb, var(--color-primary) 30%, transparent); color-mix(in srgb, var(--color-primary) 16%, transparent);
} }
.content-card-head-text { .content-card-head-text {
min-width: 0; min-width: 0;
@@ -850,7 +873,7 @@ tbody tr:hover {
.content-card-title { .content-card-title {
margin: 0; margin: 0;
font-weight: 700; font-weight: 700;
font-size: 1rem; font-size: 0.92rem;
line-height: 1.3; line-height: 1.3;
color: var( color: var(
--color-surface-text-readable, --color-surface-text-readable,
@@ -859,7 +882,7 @@ tbody tr:hover {
} }
.content-card-subtitle { .content-card-subtitle {
margin: 0.15rem 0 0; margin: 0.15rem 0 0;
font-size: 0.78rem; font-size: 0.75rem;
color: var(--color-text-muted-readable, var(--color-text-muted)); color: var(--color-text-muted-readable, var(--color-text-muted));
} }
.content-card-action { .content-card-action {
@@ -872,28 +895,33 @@ tbody tr:hover {
/* Responsive card grids (atom: 1 / sm2 / md3 / lg4). */ /* Responsive card grids (atom: 1 / sm2 / md3 / lg4). */
.card-grid { .card-grid {
display: grid; display: grid;
gap: 1rem; gap: 0.75rem;
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
@media (min-width: 40rem) { @media (min-width: 40rem) {
.card-grid.sm-2 { .card-grid.sm-2 {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
gap: 1rem;
} }
} }
@media (min-width: 48rem) { @media (min-width: 48rem) {
.card-grid.md-2 { .card-grid.md-2 {
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
gap: 1rem;
} }
.card-grid.md-3 { .card-grid.md-3 {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 1rem;
} }
} }
@media (min-width: 64rem) { @media (min-width: 64rem) {
.card-grid.lg-3 { .card-grid.lg-3 {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 1.125rem;
} }
.card-grid.lg-4 { .card-grid.lg-4 {
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 1.125rem;
} }
} }
@@ -901,29 +929,41 @@ tbody tr:hover {
.stat-grid { .stat-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
gap: 0.85rem; gap: 0.75rem;
} }
.stat-block { .stat-block {
background: var(--color-background); background: var(--color-surface);
border: 1px solid border: 1px solid
color-mix( color-mix(
in srgb, in srgb,
var(--color-text-muted-readable, var(--color-text-muted)) 12%, var(--color-text-muted-readable, var(--color-text-muted)) 10%,
transparent transparent
); );
border-radius: 12px; border-radius: var(--radius-sm);
padding: 0.85rem 1rem; padding: 0.85rem 1rem;
text-align: center; text-align: center;
transition:
box-shadow 0.2s ease,
transform 0.2s ease;
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.03),
0 0 0 0.5px color-mix(in srgb, var(--color-text-muted) 5%, transparent);
}
.stat-block:hover {
box-shadow:
0 2px 8px rgba(0, 0, 0, 0.06),
0 0 0 0.5px color-mix(in srgb, var(--color-text-muted) 8%, transparent);
transform: translateY(-1px);
} }
.stat-block-value { .stat-block-value {
font-size: 1.6rem; font-size: 1.5rem;
font-weight: 800; font-weight: 800;
line-height: 1.1; line-height: 1.1;
color: var(--color-primary-readable, var(--color-primary)); color: var(--color-primary-readable, var(--color-primary));
} }
.stat-block-label { .stat-block-label {
margin-top: 0.2rem; margin-top: 0.2rem;
font-size: 0.78rem; font-size: 0.75rem;
color: var(--color-text-muted-readable, var(--color-text-muted)); color: var(--color-text-muted-readable, var(--color-text-muted));
} }
@@ -1269,11 +1309,16 @@ tbody tr:hover {
h2 { h2 {
font-size: clamp(1.1rem, 4vw, var(--size-heading-h2, 22px)); font-size: clamp(1.1rem, 4vw, var(--size-heading-h2, 22px));
} }
h3 {
font-size: clamp(0.95rem, 3.5vw, var(--size-heading-h3, 18px));
}
.hero { .hero {
padding: 1.25rem 1rem; padding: 1.25rem 1rem;
border-radius: var(--radius-md);
} }
.card { .card {
padding: 0.85rem 1rem; padding: 0.85rem 1rem;
border-radius: var(--radius-md);
} }
.admin-card { .admin-card {
padding: 0.85rem; padding: 0.85rem;
@@ -1290,17 +1335,32 @@ tbody tr:hover {
} }
.stat-grid { .stat-grid {
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
gap: 0.6rem;
}
.stat-block {
padding: 0.65rem 0.5rem;
border-radius: var(--radius-sm);
}
.stat-block-value {
font-size: 1.25rem;
} }
.btn { .btn {
font-size: 13px; font-size: 13px;
padding: 0.4rem 0.85rem; padding: 0.4rem 0.85rem;
min-height: 44px;
} }
.content-card-head { .content-card-head {
padding: 0.7rem 0.85rem; padding: 0.65rem 0.85rem;
} }
.content-card-body { .content-card-body {
padding: 0.85rem; padding: 0.85rem;
} }
.content-card-icon {
width: 32px;
height: 32px;
border-radius: 8px;
font-size: 0.95rem;
}
.nav-item { .nav-item {
white-space: normal; white-space: normal;
text-wrap: balance; text-wrap: balance;
@@ -1312,6 +1372,13 @@ tbody tr:hover {
.dropdown-item { .dropdown-item {
font-size: 13px; font-size: 13px;
padding: 0.6rem 0.85rem; padding: 0.6rem 0.85rem;
min-height: 44px;
}
.content-card-title {
font-size: 0.85rem;
}
.content-card-subtitle {
font-size: 0.7rem;
} }
} }
@@ -1321,6 +1388,7 @@ tbody tr:hover {
display: block; display: block;
overflow-x: auto; overflow-x: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
border-radius: var(--radius-sm);
} }
} }
+4 -2
View File
@@ -9,13 +9,15 @@ export async function SiteFooter() {
return ( return (
<footer <footer
className="mt-auto flex min-h-14 w-full flex-col items-center justify-center gap-1 px-4 py-3 text-sm md:flex-row md:gap-3 md:px-8" className="mt-auto flex min-h-14 w-full flex-col items-center justify-center gap-1 px-3 py-3 text-xs sm:text-sm md:flex-row md:gap-3 md:px-8"
style={{ style={{
backgroundColor: "var(--color-surface)", backgroundColor: "var(--color-surface)",
color: "var(--color-text-muted-readable, var(--color-text-muted))", color: "var(--color-text-muted-readable, var(--color-text-muted))",
borderTop:
"1px solid color-mix(in srgb, var(--color-text-muted) 8%, transparent)",
}} }}
> >
<div className="md:font-semibold text-[12px] md:text-[14px]"> <div className="md:font-semibold text-[11px] sm:text-[12px] md:text-[14px]">
{t("copyright", { year, hotel: hotelName })} {t("copyright", { year, hotel: hotelName })}
</div> </div>
<CmsInfoPopup /> <CmsInfoPopup />
+16 -12
View File
@@ -36,7 +36,7 @@ export async function SiteHeader() {
return ( return (
<div <div
className="site-header relative w-full overflow-hidden" className="site-header relative w-full overflow-hidden"
style={{ minHeight: "clamp(12rem, 30vw, 18rem)" }} style={{ minHeight: "clamp(10rem, 25vw, 18rem)" }}
> >
{/* Background image */} {/* Background image */}
<div <div
@@ -65,19 +65,19 @@ export async function SiteHeader() {
{/* Decorative glows */} {/* Decorative glows */}
<div <div
className="absolute -top-24 -right-24 w-96 h-96 rounded-full opacity-[0.12] blur-[120px]" className="absolute -top-24 -right-24 w-64 h-64 sm:w-96 sm:h-96 rounded-full opacity-[0.12] blur-[120px]"
style={{ background: "var(--color-primary)" }} style={{ background: "var(--color-primary)" }}
/> />
<div <div
className="absolute -bottom-24 -left-24 w-72 h-72 rounded-full opacity-[0.08] blur-[100px]" className="absolute -bottom-24 -left-24 w-48 h-48 sm:w-72 sm:h-72 rounded-full opacity-[0.08] blur-[100px]"
style={{ background: "var(--color-primary)" }} style={{ background: "var(--color-primary)" }}
/> />
{/* Content */} {/* Content */}
<div className="relative flex flex-col items-center justify-center px-4 py-8 md:py-12 min-h-[clamp(12rem,30vw,18rem)]"> <div className="relative flex flex-col items-center justify-center px-3 py-6 sm:px-4 sm:py-8 md:py-12 min-h-[clamp(10rem,25vw,18rem)]">
<Link <Link
href="/" href="/"
className="transition-transform duration-300 hover:scale-105 mb-8" className="transition-transform duration-300 hover:scale-105 mb-5 sm:mb-8"
> >
{logo ? ( {logo ? (
<Image <Image
@@ -86,7 +86,11 @@ export async function SiteHeader() {
alt={hotelName} alt={hotelName}
width={200} width={200}
height={120} height={120}
style={{ maxHeight: 120, width: "auto", height: "auto" }} style={{
maxHeight: "clamp(60px, 15vw, 120px)",
width: "auto",
height: "auto",
}}
unoptimized unoptimized
/> />
) : ( ) : (
@@ -95,7 +99,7 @@ export async function SiteHeader() {
className="font-black tracking-tight leading-none text-white" className="font-black tracking-tight leading-none text-white"
style={{ style={{
fontFamily: "var(--font-nunito)", fontFamily: "var(--font-nunito)",
fontSize: "clamp(2.8rem, 8vw, 5.5rem)", fontSize: "clamp(2rem, 7vw, 5.5rem)",
textShadow: textShadow:
"0 2px 20px rgba(0,0,0,0.4), 0 8px 40px rgba(0,0,0,0.2)", "0 2px 20px rgba(0,0,0,0.4), 0 8px 40px rgba(0,0,0,0.2)",
letterSpacing: "0.04em", letterSpacing: "0.04em",
@@ -104,7 +108,7 @@ export async function SiteHeader() {
{hotelName} {hotelName}
</h1> </h1>
<p <p
className="text-sm md:text-base font-bold tracking-[0.15em] uppercase mt-1" className="text-xs sm:text-sm md:text-base font-bold tracking-[0.15em] uppercase mt-1"
style={{ style={{
color: "color-mix(in srgb, var(--color-primary) 70%, white)", color: "color-mix(in srgb, var(--color-primary) 70%, white)",
textShadow: "0 2px 12px rgba(0,0,0,0.5)", textShadow: "0 2px 12px rgba(0,0,0,0.5)",
@@ -119,7 +123,7 @@ export async function SiteHeader() {
{/* Online badge */} {/* Online badge */}
<div <div
className="flex items-center gap-3 px-6 py-3 rounded-full" className="flex items-center gap-2 sm:gap-3 px-4 sm:px-6 py-2 sm:py-3 rounded-full"
style={{ style={{
background: "rgba(255,255,255,0.08)", background: "rgba(255,255,255,0.08)",
backdropFilter: "blur(16px)", backdropFilter: "blur(16px)",
@@ -128,12 +132,12 @@ export async function SiteHeader() {
boxShadow: "0 4px 24px rgba(0,0,0,0.12)", boxShadow: "0 4px 24px rgba(0,0,0,0.12)",
}} }}
> >
<span className="relative flex h-2.5 w-2.5"> <span className="relative flex h-2 w-2 sm:h-2.5 sm:w-2.5">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75" /> <span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75" />
<span className="relative inline-flex rounded-full h-2.5 w-2.5 bg-green-500" /> <span className="relative inline-flex rounded-full h-2 w-2 sm:h-2.5 sm:w-2.5 bg-green-500" />
</span> </span>
<span <span
className="text-sm font-bold tracking-wide" className="text-xs sm:text-sm font-bold tracking-wide"
style={{ color: "rgba(255,255,255,0.9)" }} style={{ color: "rgba(255,255,255,0.9)" }}
> >
{t("online", { count: online, hotel: hotelName })} {t("online", { count: online, hotel: hotelName })}
+25 -14
View File
@@ -3,11 +3,11 @@ import type { CSSProperties, ReactNode } from "react";
import Link from "@/components/link"; import Link from "@/components/link";
const CARD_BORDER = const CARD_BORDER =
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)"; "color-mix(in srgb, var(--color-text-muted) 10%, transparent)";
const CARD_DIVIDER = const CARD_DIVIDER =
"color-mix(in srgb, var(--color-text-muted) 8%, transparent)"; "color-mix(in srgb, var(--color-text-muted) 8%, transparent)";
const CARD_HEADER_BG = const CARD_HEADER_BG =
"color-mix(in srgb, var(--color-primary) 10%, var(--color-surface))"; "linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 8%, var(--color-surface)), color-mix(in srgb, var(--color-primary) 4%, var(--color-surface)))";
export interface SurfaceCardProps { export interface SurfaceCardProps {
children: ReactNode; children: ReactNode;
@@ -45,28 +45,39 @@ export function SurfaceCard({
return ( return (
<div <div
className={`overflow-hidden rounded-2xl border bg-[var(--color-surface)] ${className}`} className={`surface-card overflow-hidden rounded-2xl border bg-[var(--color-surface)] ${className}`}
style={{ style={{
borderColor: CARD_BORDER, borderColor: CARD_BORDER,
boxShadow: "var(--shadow-card)", boxShadow:
"0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.03), 0 0 0 0.5px color-mix(in srgb, var(--color-text-muted) 6%, transparent)",
...style, ...style,
}} }}
> >
{hasHeader && ( {hasHeader && (
<div <div
className="flex items-center justify-between gap-3 border-b px-5 py-3.5" className="flex items-center justify-between gap-3 px-5 py-3.5 border-b"
style={{ borderColor: CARD_DIVIDER, background: CARD_HEADER_BG }} style={{ borderColor: CARD_DIVIDER, background: CARD_HEADER_BG }}
> >
<div className="flex items-center gap-2.5"> <div className="flex items-center gap-2.5">
{icon && ( {icon && (
<Image <div
src={icon} className="flex h-8 w-8 shrink-0 items-center justify-center rounded-lg"
alt="" style={{
width={18} background:
height={18} "linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 18%, var(--color-surface)), color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)))",
unoptimized boxShadow:
className="opacity-90" "inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 14%, transparent)",
/> }}
>
<Image
src={icon}
alt=""
width={16}
height={16}
unoptimized
className="opacity-80"
/>
</div>
)} )}
{title && ( {title && (
<h2 <h2
@@ -83,7 +94,7 @@ export function SurfaceCard({
{actionHref && actionLabel && ( {actionHref && actionLabel && (
<Link <Link
href={actionHref} href={actionHref}
className="text-xs font-semibold transition-colors hover:text-[var(--color-primary)] hover:underline" className="shrink-0 rounded-md px-2 py-1 text-xs font-semibold transition-colors hover:bg-[color-mix(in_srgb,var(--color-primary)_8%,transparent)] hover:text-[var(--color-primary)]"
style={{ color: "var(--color-text-muted)" }} style={{ color: "var(--color-text-muted)" }}
> >
{actionLabel} {actionLabel}
+6 -6
View File
@@ -161,16 +161,16 @@ export async function TopHeader({ session }: { session: Session | null }) {
return ( return (
<div style={{ backgroundColor: "var(--color-navbar)" }}> <div style={{ backgroundColor: "var(--color-navbar)" }}>
<div className="max-w-7xl min-h-[44px] sm:min-h-[60px] px-2 sm:px-4 flex items-center justify-between mx-auto"> <div className="max-w-7xl min-h-[44px] sm:min-h-[60px] px-2 sm:px-4 flex items-center justify-between mx-auto">
<div className="flex flex-wrap items-center gap-x-2 sm:gap-x-6"> <div className="flex flex-wrap items-center gap-x-1.5 sm:gap-x-4 md:gap-x-6">
<div <div
className="flex items-center gap-2 px-3 py-1 rounded-full" className="flex items-center gap-1.5 sm:gap-2 px-2 sm:px-3 py-1 rounded-full"
style={{ style={{
background: "rgba(255,255,255,0.08)", background: "rgba(255,255,255,0.08)",
border: "1px solid rgba(255,255,255,0.10)", border: "1px solid rgba(255,255,255,0.10)",
}} }}
> >
<span <span
className="text-xs sm:text-sm font-bold tracking-wide" className="text-[10px] sm:text-sm font-bold tracking-wide"
style={{ color: "rgba(255,255,255,0.9)" }} style={{ color: "rgba(255,255,255,0.9)" }}
> >
{t("online", { count: online, hotel: hotelName })} {t("online", { count: online, hotel: hotelName })}
@@ -179,7 +179,7 @@ export async function TopHeader({ session }: { session: Session | null }) {
<Link <Link
href="/client" href="/client"
className="flex items-center gap-1.5 rounded-xl border py-1.5 px-3 font-extrabold text-xs transition-all duration-200 hover:scale-[1.02] active:scale-95 shadow-lg" className="hidden sm:flex items-center gap-1.5 rounded-xl border py-1.5 px-3 font-extrabold text-xs transition-all duration-200 hover:scale-[1.02] active:scale-95 shadow-lg"
style={{ style={{
background: "var(--color-primary)", background: "var(--color-primary)",
color: "var(--color-primary-foreground)", color: "var(--color-primary-foreground)",
@@ -210,7 +210,7 @@ export async function TopHeader({ session }: { session: Session | null }) {
/> />
</div> </div>
<div className="flex items-center gap-x-1 sm:gap-x-3"> <div className="flex items-center gap-x-0.5 sm:gap-x-3">
<form <form
action="/search" action="/search"
method="GET" method="GET"
@@ -231,7 +231,7 @@ export async function TopHeader({ session }: { session: Session | null }) {
</form> </form>
<Link <Link
href="/messages" href="/messages"
className="relative flex items-center gap-1 rounded-lg px-2 py-1.5 transition-colors hover:bg-white/10" className="relative flex items-center gap-1 rounded-lg px-1.5 sm:px-2 py-1.5 transition-colors hover:bg-white/10"
> >
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"