Add home logo link to app page headers.
Show a pixel pet logo in the top-right of AppPageHeader that links to the pet home screen.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { HomeLogoLink } from "@/components/layout/home-logo-link";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
type AppPageHeaderProps = {
|
||||
@@ -15,18 +16,26 @@ export function AppPageHeader({
|
||||
}: AppPageHeaderProps) {
|
||||
return (
|
||||
<header className="border-b-2 border-border bg-card/60 shadow-[var(--retro-shadow-sm)]">
|
||||
<div className={cn("mx-auto px-5 py-5", wide ? "max-w-6xl" : "max-w-lg")}>
|
||||
{eyebrow ? (
|
||||
<p className="mb-2 text-xs uppercase tracking-[0.2em] text-muted-foreground">
|
||||
{eyebrow}
|
||||
</p>
|
||||
) : null}
|
||||
<h1 className="text-sm">{title}</h1>
|
||||
{description ? (
|
||||
<p className="mt-2 text-xs leading-relaxed text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
) : null}
|
||||
<div
|
||||
className={cn(
|
||||
"mx-auto flex items-start justify-between gap-4 px-5 py-5",
|
||||
wide ? "max-w-6xl" : "max-w-lg",
|
||||
)}
|
||||
>
|
||||
<div className="min-w-0 flex-1">
|
||||
{eyebrow ? (
|
||||
<p className="mb-2 text-xs uppercase tracking-[0.2em] text-muted-foreground">
|
||||
{eyebrow}
|
||||
</p>
|
||||
) : null}
|
||||
<h1 className="text-sm">{title}</h1>
|
||||
{description ? (
|
||||
<p className="mt-2 text-xs leading-relaxed text-muted-foreground">
|
||||
{description}
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
<HomeLogoLink className="mt-0.5" />
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user