Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | import { ImageResponse } from "next/og";
export const runtime = "edge";
// `output: export` (static GitHub Pages build) requires every route to
// declare a static caching strategy. The OG image is deterministic, so
// pre-render at build time and never revalidate.
export const dynamic = "force-static";
export const alt =
"European Health Data Space demo — DSP 2025-1, FHIR R4, OMOP CDM, HealthDCAT-AP";
export const size = { width: 1200, height: 630 };
export const contentType = "image/png";
export default async function OpengraphImage() {
return new ImageResponse(
(
<div
style={{
width: "100%",
height: "100%",
display: "flex",
flexDirection: "column",
background:
"linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #148F77 100%)",
color: "#ffffff",
padding: "72px 80px",
fontFamily: "sans-serif",
position: "relative",
}}
>
{/* subtle grid overlay */}
<div
style={{
position: "absolute",
inset: 0,
opacity: 0.08,
backgroundImage:
"linear-gradient(to right, #ffffff 1px, transparent 1px), linear-gradient(to bottom, #ffffff 1px, transparent 1px)",
backgroundSize: "60px 60px",
display: "flex",
}}
/>
{/* header */}
<div style={{ display: "flex", alignItems: "center", gap: 24 }}>
<div
style={{
width: 88,
height: 88,
borderRadius: 20,
background: "linear-gradient(135deg, #148F77 0%, #2471A3 100%)",
display: "flex",
alignItems: "center",
justifyContent: "center",
fontSize: 56,
fontWeight: 700,
boxShadow: "0 12px 36px rgba(0,0,0,0.45)",
}}
>
H
</div>
<div style={{ display: "flex", flexDirection: "column" }}>
<div
style={{
fontSize: 26,
fontWeight: 500,
color: "#94a3b8",
letterSpacing: 2,
textTransform: "uppercase",
}}
>
Interactive Demo
</div>
<div
style={{
fontSize: 40,
fontWeight: 700,
color: "#ffffff",
marginTop: 4,
}}
>
European Health Data Space
</div>
</div>
</div>
{/* headline */}
<div
style={{
display: "flex",
flexDirection: "column",
marginTop: 56,
gap: 12,
}}
>
<div
style={{
fontSize: 64,
fontWeight: 800,
lineHeight: 1.1,
color: "#ffffff",
maxWidth: 1040,
}}
>
Cross-border health data sharing
</div>
<div
style={{
fontSize: 38,
fontWeight: 500,
color: "#cbd5e1",
lineHeight: 1.25,
maxWidth: 1040,
}}
>
DSP 2025-1 · FHIR R4 · OMOP CDM · HealthDCAT-AP
</div>
</div>
{/* stats */}
<div
style={{
display: "flex",
marginTop: "auto",
gap: 56,
alignItems: "flex-end",
}}
>
<Stat value="7" label="Demo Personas" accent="#14B8A6" />
<Stat value="127" label="Synthetic Patients" accent="#3B82F6" />
<Stat value="5,300+" label="Graph Nodes" accent="#A855F7" />
<Stat value="5" label="Data Layers" accent="#F59E0B" />
</div>
</div>
),
{
...size,
},
);
}
function Stat({
value,
label,
accent,
}: {
value: string;
label: string;
accent: string;
}) {
return (
<div style={{ display: "flex", flexDirection: "column", gap: 4 }}>
<div
style={{
fontSize: 60,
fontWeight: 800,
color: accent,
lineHeight: 1,
}}
>
{value}
</div>
<div
style={{
fontSize: 22,
color: "#cbd5e1",
letterSpacing: 1,
textTransform: "uppercase",
}}
>
{label}
</div>
</div>
);
}
|