2026-11-21 20:31:45 +00:00
|
|
|
import Link from "next/link";
|
|
|
|
|
|
|
|
|
|
import { Logo } from "@/components/SiteHeader";
|
|
|
|
|
|
2026-11-24 07:21:19 +00:00
|
|
|
/**
|
|
|
|
|
* The footer of every page (the root layout draws it): the free content
|
|
|
|
|
* pages (they help visitors and search engines), contact and the legal
|
2026-11-24 07:38:32 +00:00
|
|
|
* pages. Logged in, the birth chart link leads to the user's own chart, and
|
|
|
|
|
* contact straight to the feedback page.
|
2026-11-24 07:21:19 +00:00
|
|
|
*/
|
|
|
|
|
export function SiteFooter({ loggedIn }: { loggedIn: boolean }) {
|
2026-11-21 20:31:45 +00:00
|
|
|
return (
|
2026-11-24 07:21:19 +00:00
|
|
|
<footer className="lp-footer site-footer">
|
2026-11-21 20:31:45 +00:00
|
|
|
<div className="lp-wrap lp-footer-inner">
|
|
|
|
|
<Logo />
|
|
|
|
|
<nav aria-label="Lábléc" className="lp-footer-nav">
|
2026-11-24 07:38:32 +00:00
|
|
|
{/* 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>
|
|
|
|
|
)}
|
2026-11-21 20:31:45 +00:00
|
|
|
<Link href="/csillagjegyek">Csillagjegyek</Link>
|
2026-11-22 16:08:35 +00:00
|
|
|
<Link href="/hires-emberek">Híres emberek</Link>
|
2026-11-23 17:21:36 +00:00
|
|
|
<Link href="/holdnaptar">Holdnaptár</Link>
|
|
|
|
|
<Link href="/retrograd">Retrográd bolygók</Link>
|
2026-11-21 20:31:45 +00:00
|
|
|
<Link href="/pelda">Példaelemzés</Link>
|
|
|
|
|
<Link href="/kartyajoslas/pelda">Példajóslás</Link>
|
2026-11-24 07:21:19 +00:00
|
|
|
<Link href={loggedIn ? "/visszajelzes" : "/kapcsolat"}>Kapcsolat</Link>
|
2026-11-21 20:31:45 +00:00
|
|
|
<Link href="/aszf">ÁSZF</Link>
|
|
|
|
|
<Link href="/adatvedelem">Adatvédelem</Link>
|
2026-11-24 07:21:19 +00:00
|
|
|
{!loggedIn && <Link href="/belepes">Belépés</Link>}
|
2026-11-21 20:31:45 +00:00
|
|
|
</nav>
|
|
|
|
|
<span className="hint">© {new Date().getFullYear()} Sorsfonalak</span>
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** Structured data for search engines (JSON-LD). */
|
|
|
|
|
export function JsonLd({ data }: { data: object }) {
|
|
|
|
|
// "<" escaped, so the JSON cannot close the script element.
|
|
|
|
|
const json = JSON.stringify(data).replace(/</g, "\\u003c");
|
|
|
|
|
return <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: json }} />;
|
|
|
|
|
}
|