A footer on every page
The root layout draws one footer for every page (the app pages, the chart page and admin had none): the free content pages, Kapcsolat (the feedback page when logged in, /kapcsolat otherwise), ÁSZF, Adatvédelem, and Belépés when logged out. The pages drop their own; the home page keeps its payment partners above it. The recommendation box sits right before it on every page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -2,10 +2,14 @@ import Link from "next/link";
|
||||
|
||||
import { Logo } from "@/components/SiteHeader";
|
||||
|
||||
/** The footer of the public content pages (calculator, signs): their links help visitors and search engines. */
|
||||
export function PublicFooter() {
|
||||
/**
|
||||
* 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. Contact leads a logged-in user straight to the feedback page.
|
||||
*/
|
||||
export function SiteFooter({ loggedIn }: { loggedIn: boolean }) {
|
||||
return (
|
||||
<footer className="lp-footer">
|
||||
<footer className="lp-footer site-footer">
|
||||
<div className="lp-wrap lp-footer-inner">
|
||||
<Logo />
|
||||
<nav aria-label="Lábléc" className="lp-footer-nav">
|
||||
@@ -16,9 +20,10 @@ export function PublicFooter() {
|
||||
<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="/kapcsolat">Kapcsolat</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>
|
||||
|
||||
Reference in New Issue
Block a user