Compare commits
No commits in common. "agent-improve/dx-2026-05-23-puzzle-trainer" and "main" have entirely different histories.
agent-impr
...
main
1 changed files with 12 additions and 14 deletions
|
|
@ -4,14 +4,6 @@ export const alt = "Puzzle Trainer";
|
||||||
export const size = { width: 1200, height: 630 };
|
export const size = { width: 1200, height: 630 };
|
||||||
export const contentType = "image/png";
|
export const contentType = "image/png";
|
||||||
|
|
||||||
const GAMES = [
|
|
||||||
{ label: "Q", color: "#d97706" },
|
|
||||||
{ label: "T", color: "#ea580c" },
|
|
||||||
{ label: "Z", color: "#2563eb" },
|
|
||||||
{ label: "S", color: "#16a34a" },
|
|
||||||
{ label: "P", color: "#7c3aed" },
|
|
||||||
];
|
|
||||||
|
|
||||||
export default function OGImage() {
|
export default function OGImage() {
|
||||||
return new ImageResponse(
|
return new ImageResponse(
|
||||||
(
|
(
|
||||||
|
|
@ -27,33 +19,39 @@ export default function OGImage() {
|
||||||
fontFamily: "system-ui, -apple-system, sans-serif",
|
fontFamily: "system-ui, -apple-system, sans-serif",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
{/* Game icons row */}
|
||||||
<div style={{ display: "flex", gap: 24, marginBottom: 40 }}>
|
<div style={{ display: "flex", gap: 24, marginBottom: 40 }}>
|
||||||
{GAMES.map((g) => (
|
{["♛", "☀", "∞", "#", "▦"].map((icon, i) => (
|
||||||
<div
|
<div
|
||||||
key={g.label}
|
key={i}
|
||||||
style={{
|
style={{
|
||||||
width: 72,
|
width: 72,
|
||||||
height: 72,
|
height: 72,
|
||||||
background: g.color,
|
background: "#111827",
|
||||||
borderRadius: 16,
|
borderRadius: 16,
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
fontSize: 32,
|
fontSize: 32,
|
||||||
fontWeight: 700,
|
color: "#f9fafb",
|
||||||
color: "#ffffff",
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{g.label}
|
{icon}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* Title */}
|
||||||
<div style={{ fontSize: 72, fontWeight: 700, color: "#111827", letterSpacing: -2 }}>
|
<div style={{ fontSize: 72, fontWeight: 700, color: "#111827", letterSpacing: -2 }}>
|
||||||
Puzzle Trainer
|
Puzzle Trainer
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* Tagline */}
|
||||||
<div style={{ fontSize: 28, color: "#6b7280", marginTop: 16 }}>
|
<div style={{ fontSize: 28, color: "#6b7280", marginTop: 16 }}>
|
||||||
5 puzzles logiques · chaque jour
|
5 puzzles logiques · chaque jour
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* URL */}
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue