Footer: the birth chart link leads to the user's own chart when logged in

Logged in, "Születési horoszkópom" goes to /keplet (the own chart, or the
profile to give birth data); the free calculator, which starts empty,
stays for visitors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-24 07:38:32 +00:00
co-authored by Claude Opus 5.5
parent 3a38518d07
commit e1dee3a20d
@@ -5,7 +5,8 @@ import { Logo } from "@/components/SiteHeader";
/** /**
* The footer of every page (the root layout draws it): the free content * The footer of every page (the root layout draws it): the free content
* pages (they help visitors and search engines), contact and the legal * pages (they help visitors and search engines), contact and the legal
* pages. Contact leads a logged-in user straight to the feedback page. * pages. Logged in, the birth chart link leads to the user's own chart, and
* contact straight to the feedback page.
*/ */
export function SiteFooter({ loggedIn }: { loggedIn: boolean }) { export function SiteFooter({ loggedIn }: { loggedIn: boolean }) {
return ( return (
@@ -13,7 +14,12 @@ export function SiteFooter({ loggedIn }: { loggedIn: boolean }) {
<div className="lp-wrap lp-footer-inner"> <div className="lp-wrap lp-footer-inner">
<Logo /> <Logo />
<nav aria-label="Lábléc" className="lp-footer-nav"> <nav aria-label="Lábléc" className="lp-footer-nav">
{/* Logged in: the user's own chart (the free calculator would start empty). */}
{loggedIn ? (
<Link href="/keplet">Születési horoszkópom</Link>
) : (
<Link href="/szuletesi-horoszkop">Születési horoszkóp</Link> <Link href="/szuletesi-horoszkop">Születési horoszkóp</Link>
)}
<Link href="/csillagjegyek">Csillagjegyek</Link> <Link href="/csillagjegyek">Csillagjegyek</Link>
<Link href="/hires-emberek">Híres emberek</Link> <Link href="/hires-emberek">Híres emberek</Link>
<Link href="/holdnaptar">Holdnaptár</Link> <Link href="/holdnaptar">Holdnaptár</Link>