fix: increase avatar sizes for newest citizens on index and register; add Enter button below avatar on /me
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m51s

This commit is contained in:
openhands committed 2026-07-26 12:53:14 +02:00
1 parent 4e2c4ccf07
commit 7253bb61be
3 files changed
+29 -10

No files matched your search

+20 -1
View File
@@ -198,7 +198,7 @@ export default async function MePage({
borderColor: "color-mix(in srgb, var(--color-primary) 20%, transparent)", borderColor: "color-mix(in srgb, var(--color-primary) 20%, transparent)",
}} }}
> >
<div className="relative shrink-0"> <div className="relative shrink-0 flex flex-col items-center gap-3">
<div <div
className="absolute -inset-3 rounded-full opacity-[0.15] blur-[40px]" className="absolute -inset-3 rounded-full opacity-[0.15] blur-[40px]"
style={{ background: "var(--color-primary)" }} style={{ background: "var(--color-primary)" }}
@@ -212,6 +212,25 @@ export default async function MePage({
unoptimized unoptimized
priority priority
/> />
<Link
href="/client"
className="btn-shine flex items-center justify-center gap-1.5 rounded-xl border py-2 px-4 font-extrabold text-xs transition-all duration-200 hover:scale-[1.02] active:scale-95 shadow-lg"
style={{
background: "var(--color-primary)",
color: "var(--color-primary-foreground)",
borderColor: "color-mix(in srgb, var(--color-primary) 20%, transparent)",
boxShadow: "0 4px 24px color-mix(in srgb, var(--color-primary) 35%, transparent)",
}}
>
<Image
src="/assets/images/EnterHubbly.png"
alt=""
width={16}
height={16}
unoptimized
/>
Enter {hotelName}
</Link>
</div> </div>
<div className="flex-1 text-center sm:text-left"> <div className="flex-1 text-center sm:text-left">
<div <div
+5 -5
View File
@@ -292,20 +292,20 @@ export default async function Home() {
{tp("latestUsers", { count: users.toLocaleString() })} {tp("latestUsers", { count: users.toLocaleString() })}
</h2> </h2>
</div> </div>
<div className="grid grid-cols-4 sm:grid-cols-6 gap-2 p-3"> <div className="grid grid-cols-4 gap-2 p-3">
{latestUsers.map((u) => ( {latestUsers.map((u) => (
<div key={u.username} className="flex flex-col items-center gap-1"> <div key={u.username} className="flex flex-col items-center gap-1">
<div className="relative overflow-visible"> <div className="relative overflow-visible">
<Image <Image
src={avatarImageUrl(imager, u.look, { headOnly: true, direction: 3 })} src={avatarImageUrl(imager, u.look, { headOnly: true, direction: 3 })}
alt={u.username} alt={u.username}
width={42} width={64}
height={52} height={78}
style={{ marginTop: "-6px" }} style={{ marginTop: "-8px" }}
unoptimized unoptimized
/> />
</div> </div>
<span className="text-[9px] font-bold truncate max-w-[48px] text-center leading-tight" style={{ color: "var(--color-text-readable)" }}> <span className="text-[11px] font-bold truncate max-w-[64px] text-center leading-tight" style={{ color: "var(--color-text-readable)" }}>
{u.username} {u.username}
</span> </span>
</div> </div>
+4 -4
View File
@@ -216,15 +216,15 @@ export default async function RegisterPage() {
}} }}
> >
<Image <Image
src={avatarImageUrl(imager, u.look, { headOnly: true, direction: 2, size: "s" })} src={avatarImageUrl(imager, u.look, { headOnly: true, direction: 2 })}
alt="" alt=""
width={26} width={52}
height={32} height={64}
className="rounded-md" className="rounded-md"
unoptimized unoptimized
/> />
<span <span
className="text-[8px] font-bold truncate w-full text-center leading-tight" className="text-[10px] font-bold truncate w-full text-center leading-tight"
style={{ color: "var(--color-text-readable)" }} style={{ color: "var(--color-text-readable)" }}
> >
{u.username} {u.username}