The visitor header on every public page
The example analysis, shared charts, the invitation page and the privacy page showed visitors just the logo. They now get the home page's header: the sections, the example and the login. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -13,6 +13,30 @@ export function Logo() {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* The header for visitors (not logged in): the home page sections, the
|
||||
* example and the login. `onHome`: the section links stay on the page.
|
||||
*/
|
||||
export function PublicHeader({ onHome = false, current }: { onHome?: boolean; current?: "pelda" }) {
|
||||
const home = onHome ? "" : "/";
|
||||
return (
|
||||
<header className="site-header lp-header">
|
||||
<Logo />
|
||||
<nav className="nav lp-nav" aria-label="Fő navigáció">
|
||||
<a href={`${home}#elemzes`}>Elemzés</a>
|
||||
<a href={`${home}#elorejelzes`}>Előrejelzés</a>
|
||||
<a href={`${home}#osszevetes`}>Összevetés</a>
|
||||
<Link href="/pelda" aria-current={current === "pelda" ? "page" : undefined}>
|
||||
Példa
|
||||
</Link>
|
||||
</nav>
|
||||
<Link href="/belepes" className="btn btn-sm">
|
||||
Belépés
|
||||
</Link>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
|
||||
/** The user's package and what is left of it; leads to the packages page. */
|
||||
function PackageBadge({ me }: { me: Me }) {
|
||||
const { natal, synastry } = me.analyses_left;
|
||||
|
||||
Reference in New Issue
Block a user