- /ajandek shows a page about giving to visitors (indexable, in the sitemap); the form still needs a login. - A gift band on the home page and "Ajándékozás" in the footer (to /karacsony in the Christmas season). - A link preview image for /karacsony. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
48 lines
2.0 KiB
TypeScript
48 lines
2.0 KiB
TypeScript
import Link from "next/link";
|
|
|
|
import { Logo } from "@/components/SiteHeader";
|
|
import { isChristmasTime } from "@/lib/season";
|
|
|
|
/**
|
|
* 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. 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 }) {
|
|
return (
|
|
<footer className="lp-footer site-footer">
|
|
<div className="lp-wrap lp-footer-inner">
|
|
<Logo />
|
|
<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="/csillagjegyek">Csillagjegyek</Link>
|
|
<Link href="/hires-emberek">Híres emberek</Link>
|
|
<Link href="/holdnaptar">Holdnaptár</Link>
|
|
<Link href="/retrograd">Retrográd bolygók</Link>
|
|
<Link href="/pelda">Példaelemzés</Link>
|
|
<Link href="/kartyajoslas/pelda">Példajóslás</Link>
|
|
<Link href={isChristmasTime() ? "/karacsony" : "/ajandek"}>Ajándékozás</Link>
|
|
<Link href={loggedIn ? "/visszajelzes" : "/kapcsolat"}>Kapcsolat</Link>
|
|
<Link href="/aszf">ÁSZF</Link>
|
|
<Link href="/adatvedelem">Adatvédelem</Link>
|
|
{!loggedIn && <Link href="/belepes">Belépés</Link>}
|
|
</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 }} />;
|
|
}
|