Home page link preview image
Shared on Facebook and co., the home page had no image. It now has a
1200x630 preview drawn from the example chart ('Ahol a csillagok
összekötnek.', the three features), with og:/twitter: tags and a version
in the link. The image code is shared with the shared-chart previews
(lib/ogCard.tsx).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// The link preview image of the home page (og:image), drawn from the example
|
||||
// chart. The page links it with a version (?v=…), so a new design is fetched
|
||||
// again; until then it is kept long.
|
||||
import example from "@/content/pelda.json";
|
||||
import { chartCard } from "@/lib/ogCard";
|
||||
import type { ChartResult } from "@/lib/types";
|
||||
|
||||
export async function GET() {
|
||||
return chartCard({
|
||||
chart: example.chart as unknown as ChartResult,
|
||||
timeKnown: true,
|
||||
eyebrow: "KÉPLET · ELŐREJELZÉS · KAPCSOLAT",
|
||||
title: "Ahol a csillagok összekötnek.",
|
||||
text: "Percre pontos születési képlet és személyre szóló elemzés. Mit hoz az éved, és mennyire illetek össze azzal, akit szeretsz?",
|
||||
lines: [
|
||||
{ glyph: "☉", label: "Képletelemzés" },
|
||||
{ glyph: "♃", label: "Éves előrejelzés" },
|
||||
{ glyph: "♀", label: "Kapcsolati összevetés" },
|
||||
],
|
||||
cacheControl: "public, max-age=86400, s-maxage=604800",
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user