- rebuild the public site on the Next.js App Router with static export, per-section SEO pages, metadata, sitemap, robots and a generated OG image - add full-screen scroll-snap regions, staged scroll reveals, a hash-free tab navigation with a sliding indicator and region-by-region menu scrolling - replace the theme text toggle with animated sun/moon icons - restructure the CRM API into config, middleware, models, routes, services and utils layers - redesign the CRM shell with a single surface, tab rail, full-width blurred DataTable, record dialogs and mask-based icons - update Docker/Nginx publishing, Makefile targets, shared UI polish and docs
73 lines
1.8 KiB
TypeScript
73 lines
1.8 KiB
TypeScript
import { ImageResponse } from "next/og";
|
|
import { SITE_DESCRIPTION, SITE_NAME } from "./lib/site";
|
|
|
|
export const dynamic = "force-static";
|
|
export const alt = `${SITE_NAME} — Développement web, applications et design sur mesure`;
|
|
export const size = { width: 1200, height: 630 };
|
|
export const contentType = "image/png";
|
|
|
|
export default function OpenGraphImage() {
|
|
return new ImageResponse(
|
|
(
|
|
<div
|
|
style={{
|
|
width: "100%",
|
|
height: "100%",
|
|
display: "flex",
|
|
flexDirection: "column",
|
|
justifyContent: "space-between",
|
|
padding: "72px",
|
|
background: "#050000",
|
|
color: "#f7f5f4",
|
|
}}
|
|
>
|
|
<div
|
|
style={{
|
|
display: "flex",
|
|
alignItems: "center",
|
|
gap: "20px",
|
|
fontSize: 40,
|
|
fontWeight: 700,
|
|
letterSpacing: "0.18em",
|
|
color: "#ff5252",
|
|
}}
|
|
>
|
|
COHAISE
|
|
</div>
|
|
<div
|
|
style={{
|
|
display: "flex",
|
|
flexDirection: "column",
|
|
gap: "24px",
|
|
}}
|
|
>
|
|
<div
|
|
style={{
|
|
display: "flex",
|
|
flexDirection: "column",
|
|
fontSize: 76,
|
|
fontWeight: 800,
|
|
lineHeight: 1.05,
|
|
textTransform: "uppercase",
|
|
}}
|
|
>
|
|
<span>Développement web,</span>
|
|
<span>applications & design</span>
|
|
</div>
|
|
<div
|
|
style={{
|
|
fontSize: 30,
|
|
lineHeight: 1.4,
|
|
color: "#c9c4c2",
|
|
maxWidth: "900px",
|
|
}}
|
|
>
|
|
{SITE_DESCRIPTION}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
),
|
|
{ ...size },
|
|
);
|
|
}
|