fix(auth): remove duplicate headings and subtitle on register page
CI / check (push) Successful in 35s
CI / tests-integration (push) Successful in 2m22s
CI / tests-unit (push) Successful in 2m30s
CI / tests-imaging-browsers (push) Successful in 1m35s
CI / tests-quality (push) Successful in 1m0s
CI / tests-ui (push) Successful in 6m17s
CI / preflight (push) Skipped
CI / deploy (push) Successful in 36s

This commit is contained in:
openhands committed 2026-10-22 18:28:58 +02:00
1 parent 30583b8e2e
commit e4564abc5e
3 files changed
+14 -15

No files matched your search

+3 -7
View File
@@ -16,6 +16,7 @@ export async function generateMetadata(): Promise<Metadata> {
return { return {
title, title,
description, description,
robots: { index: false, follow: false },
openGraph: { title, description, type: "website" }, openGraph: { title, description, type: "website" },
}; };
} }
@@ -35,13 +36,8 @@ export default async function RegisterPage() {
copy={{ copy={{
title: t("title"), title: t("title"),
subtitle: t("subtitle"), subtitle: t("subtitle"),
promoTitle: ( promoTitle: t("subtitle"),
<> promoSubtitle: undefined,
{t("title")} —{" "}
<span className="gradient-text">{data.hotelName}</span>
</>
),
promoSubtitle: t("subtitle"),
usersOnlineLabel: t("usersOnline", { count: data.online }), usersOnlineLabel: t("usersOnline", { count: data.online }),
whoIsOnlineLabel: t("whoIsOnline"), whoIsOnlineLabel: t("whoIsOnline"),
newestCitizensLabel: t("newestCitizens"), newestCitizensLabel: t("newestCitizens"),
+1 -1
View File
@@ -81,7 +81,7 @@ export interface AuthLandingCopy {
/** Optional success notice rendered above the form (e.g. "registered"). */ /** Optional success notice rendered above the form (e.g. "registered"). */
notice?: ReactNode; notice?: ReactNode;
promoTitle: ReactNode; promoTitle: ReactNode;
promoSubtitle: ReactNode; promoSubtitle?: ReactNode;
usersOnlineLabel: string; usersOnlineLabel: string;
whoIsOnlineLabel: string; whoIsOnlineLabel: string;
newestCitizensLabel: string; newestCitizensLabel: string;
+10 -7
View File
@@ -6,7 +6,8 @@ interface AuthPromoCardProps {
/** Fully formatted "N users online" label. */ /** Fully formatted "N users online" label. */
onlineLabel: string; onlineLabel: string;
title: ReactNode; title: ReactNode;
subtitle: ReactNode; /** Optional supporting line under the title. */
subtitle?: ReactNode;
} }
/** /**
@@ -95,12 +96,14 @@ export function AuthPromoCard({
> >
{title} {title}
</h1> </h1>
<p {subtitle && (
className="text-xs mt-1.5 mx-auto max-w-[240px] leading-relaxed" <p
style={{ color: "var(--color-text-muted)" }} className="text-xs mt-1.5 mx-auto max-w-[240px] leading-relaxed"
> style={{ color: "var(--color-text-muted)" }}
{subtitle} >
</p> {subtitle}
</p>
)}
</div> </div>
</SurfaceCard> </SurfaceCard>
); );