chore(repo): sync wireframe structure and references
This commit is contained in:
1 parent
05d2d5777f
commit
d953a79e95
453 files changed
+36639
-621
No files matched your search
@@ -0,0 +1,127 @@
|
||||
import { ImageResponse } from "next/og";
|
||||
|
||||
export const alt = "HiveGrid – Software für SHK-Betriebe";
|
||||
export const size = { width: 1200, height: 630 };
|
||||
export const contentType = "image/png";
|
||||
|
||||
async function loadGoogleFont(family: string, weight: number, text: string) {
|
||||
const url = `https://fonts.googleapis.com/css2?family=${family.replace(/ /g, "+")}:wght@${weight}&text=${encodeURIComponent(text)}`;
|
||||
const css = await fetch(url, {
|
||||
headers: { "User-Agent": "Mozilla/5.0" },
|
||||
}).then((r) => r.text());
|
||||
const match = css.match(/src: url\((.+?)\) format\('(?:opentype|truetype|woff2?)'\)/);
|
||||
if (!match) throw new Error(`Font ${family} ${weight} not found in CSS response`);
|
||||
return fetch(match[1]).then((r) => r.arrayBuffer());
|
||||
}
|
||||
|
||||
export default async function Image() {
|
||||
const headlineText =
|
||||
"Ihr Betrieb läuft organisiert, automatisiert und effizient. HiveGrid SHK-SOFTWARE Von Auftragsannahme bis Rechnungsstellung. Alles in einer Plattform. hivegrid.de";
|
||||
|
||||
const [interBold, interRegular] = await Promise.all([
|
||||
loadGoogleFont("Inter", 700, headlineText),
|
||||
loadGoogleFont("Inter", 400, headlineText),
|
||||
]);
|
||||
|
||||
return new ImageResponse(
|
||||
(
|
||||
<div
|
||||
style={{
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
justifyContent: "space-between",
|
||||
padding: "80px",
|
||||
background:
|
||||
"linear-gradient(135deg, #FFF7E2 0%, #FFFFFF 45%, #E8F4F4 100%)",
|
||||
fontFamily: "Inter",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
gap: "16px",
|
||||
fontSize: 32,
|
||||
fontWeight: 700,
|
||||
color: "#1A1A1A",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
width: 56,
|
||||
height: 56,
|
||||
borderRadius: 12,
|
||||
background: "#F1B729",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
color: "#1A1A1A",
|
||||
fontSize: 36,
|
||||
fontWeight: 700,
|
||||
}}
|
||||
>
|
||||
H
|
||||
</div>
|
||||
HiveGrid
|
||||
</div>
|
||||
|
||||
<div style={{ display: "flex", flexDirection: "column", gap: 24 }}>
|
||||
<div
|
||||
style={{
|
||||
fontSize: 24,
|
||||
fontWeight: 700,
|
||||
color: "#3E2C0A",
|
||||
background: "#FFE082",
|
||||
alignSelf: "flex-start",
|
||||
padding: "8px 20px",
|
||||
borderRadius: 8,
|
||||
letterSpacing: "0.1em",
|
||||
}}
|
||||
>
|
||||
SHK-SOFTWARE
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
fontSize: 64,
|
||||
fontWeight: 700,
|
||||
color: "#1A1A1A",
|
||||
lineHeight: 1.1,
|
||||
maxWidth: 980,
|
||||
display: "flex",
|
||||
flexWrap: "wrap",
|
||||
}}
|
||||
>
|
||||
<span>Ihr Betrieb läuft organisiert, </span>
|
||||
<span style={{ color: "#F1B729" }}>automatisiert</span>
|
||||
<span> und effizient.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "flex-end",
|
||||
fontSize: 22,
|
||||
fontWeight: 400,
|
||||
color: "#555555",
|
||||
}}
|
||||
>
|
||||
<div style={{ maxWidth: 720 }}>
|
||||
Von Auftragsannahme bis Rechnungsstellung. Alles in einer Plattform.
|
||||
</div>
|
||||
<div style={{ fontWeight: 700, color: "#0D6E6E" }}>hivegrid.de</div>
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
{
|
||||
...size,
|
||||
fonts: [
|
||||
{ name: "Inter", data: interBold, style: "normal", weight: 700 },
|
||||
{ name: "Inter", data: interRegular, style: "normal", weight: 400 },
|
||||
],
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user