Public gift pages for visitors and search engines
- /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
This commit is contained in:
@@ -4,6 +4,8 @@ import { ChartWheel } from "@/components/ChartWheel";
|
||||
import { Rich } from "@/components/Rich";
|
||||
import { TarotCard, TarotCardBack } from "@/components/tarot/TarotCard";
|
||||
import { PublicHeader } from "@/components/SiteHeader";
|
||||
import { ChristmasTree } from "@/components/ChristmasTree";
|
||||
import { isChristmasTime } from "@/lib/season";
|
||||
import example from "@/content/pelda.json";
|
||||
import { tarotCard } from "@/lib/tarot";
|
||||
import type { AnalysisContent, ChartResult } from "@/lib/types";
|
||||
@@ -42,6 +44,8 @@ const SYNASTRY_TOPICS = ["Vonzás", "Kommunikáció", "Érzelmi kötődés", "S
|
||||
/** The home page for visitors: what the site does, shown on the example chart. */
|
||||
/** `loggedIn`: the layout shows the app's header, and the buttons lead to the user's chart instead of the login. */
|
||||
export function Landing({ inviteOnly, loggedIn = false }: { inviteOnly: boolean; loggedIn?: boolean }) {
|
||||
// In the Christmas season the gift band leads to the Christmas page.
|
||||
const xmas = isChristmasTime();
|
||||
const chart = example.chart as unknown as ChartResult;
|
||||
const analysis = example.analysis as AnalysisContent;
|
||||
const sections = ["emotions", "love"].map((k) => analysis.sections?.[k]).filter((s) => s !== undefined);
|
||||
@@ -442,6 +446,35 @@ export function Landing({ inviteOnly, loggedIn = false }: { inviteOnly: boolean;
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="lp-band lp-alt lp-gift" aria-labelledby="gift-band-title">
|
||||
<div className="lp-wrap lp-gift-inner">
|
||||
{xmas && <ChristmasTree size={72} />}
|
||||
<div className="lp-gift-text">
|
||||
<span className="eyebrow">{xmas ? "Karácsonyi ajándék" : "Ajándék"}</span>
|
||||
<h2 id="gift-band-title" className="lp-h2">
|
||||
{xmas ? "Ajándékozz csillagokat karácsonyra" : "Horoszkópot ajándékba"}
|
||||
</h2>
|
||||
<p className="lp-text">
|
||||
Születési képlet, személyre szóló elemzés, és hogy mit hoz neki a következő éve, egy szép, nyomtatható
|
||||
utalvánnyal.{" "}
|
||||
{xmas ? "Az e-mailt karácsony reggelre is időzítheted." : "E-mailben küldjük el neki, vagy te adod át."}
|
||||
</p>
|
||||
<Link href={xmas ? "/karacsony" : "/ajandek"} className="btn lp-btn">
|
||||
{xmas ? "Karácsonyi ajándék" : "Ajándékozás"}
|
||||
</Link>
|
||||
</div>
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
className="lp-gift-card"
|
||||
src={xmas ? "/img/ajandek-karacsony.webp" : "/img/ajandek-utalvany.webp"}
|
||||
width={200}
|
||||
height={283}
|
||||
alt=""
|
||||
loading="lazy"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="lp-band">
|
||||
<div className="lp-wrap lp-stack">
|
||||
<h2 className="lp-h2 lp-center">Így működik</h2>
|
||||
|
||||
Reference in New Issue
Block a user