Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions website-next/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const config: StorybookConfig = {
stories: [
"../src/design-system/**/*.stories.@(ts|tsx|mdx)",
"../src/components/**/*.stories.@(ts|tsx|mdx)",
"../src/og/**/*.stories.@(ts|tsx|mdx)",
],
framework: {
name: "@storybook/nextjs-vite",
Expand Down
9 changes: 9 additions & 0 deletions website-next/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Share cards reference the "Inter" and "Josefin Sans" families by name (they
are loaded from font files when rendered by Satori), so make them available
to the browser-rendered Storybook previews. -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Josefin+Sans:wght@600;700&display=swap"
rel="stylesheet"
/>
14 changes: 14 additions & 0 deletions website-next/app/(content)/help/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 14 additions & 0 deletions website-next/app/(content)/legal/cookie-policy/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 14 additions & 0 deletions website-next/app/(content)/platform/analytics/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 14 additions & 0 deletions website-next/app/(content)/platform/ecosystem/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 14 additions & 0 deletions website-next/app/(content)/platform/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 14 additions & 0 deletions website-next/app/(content)/pricing/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 14 additions & 0 deletions website-next/app/(content)/products/nitro/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 14 additions & 0 deletions website-next/app/(content)/resources/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 14 additions & 0 deletions website-next/app/(content)/services/advisory/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 14 additions & 0 deletions website-next/app/(content)/services/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 14 additions & 0 deletions website-next/app/(content)/services/support/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 14 additions & 0 deletions website-next/app/(content)/services/training/opengraph-image.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as page from "./page";
import {
createPageShareCardImage,
shareCardContentType,
shareCardSize,
} from "@/src/og/pageShareCardImage";

export const dynamic = "force-static";

export const alt = "ChilliCream GraphQL Platform";
export const size = shareCardSize;
export const contentType = shareCardContentType;

export default createPageShareCardImage(page);
14 changes: 8 additions & 6 deletions website-next/app/docs-og/[id]/opengraph-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import {
resolveFile,
} from "@/src/helpers/docsParams";
import { readFrontmatter } from "@/src/helpers/readFrontmatter";
import { loadInterFonts } from "@/src/og/fonts";
import { ShareCard } from "@/src/og/ShareCard";

// TODO: Proper styling and layout of share cards
import { DocsShareCard } from "@/src/og/DocsShareCard";
import { loadShareCardFonts } from "@/src/og/fonts";

export const dynamicParams = false;

Expand Down Expand Up @@ -46,10 +44,14 @@ export default async function Image({ params }: { params: Promise<Params> }) {
const eyebrow = product?.title ?? "ChilliCream";
const title = frontmatter?.title ?? product?.title ?? "ChilliCream";

const fonts = await loadInterFonts();
const fonts = await loadShareCardFonts();

return new ImageResponse(
<ShareCard badge={eyebrow} eyebrow={eyebrow} title={title} />,
<DocsShareCard
eyebrow={eyebrow}
title={title}
productSlug={product?.slug}
/>,
{
...size,
fonts,
Expand Down
Loading
Loading