From 9887f5a5a37f02d2970e51200937caaf5a67ecf3 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Fri, 29 May 2026 22:13:52 +0200 Subject: [PATCH 1/7] Add three example blog posts --- ...-12-getting-started-with-hot-chocolate.mdx | 41 +++++++++++++++++ .../2026-05-20-data-loaders-explained.mdx | 44 +++++++++++++++++++ ...26-05-27-composing-schemas-with-fusion.mdx | 44 +++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 website-next/content/blog/2026-05-12-getting-started-with-hot-chocolate.mdx create mode 100644 website-next/content/blog/2026-05-20-data-loaders-explained.mdx create mode 100644 website-next/content/blog/2026-05-27-composing-schemas-with-fusion.mdx diff --git a/website-next/content/blog/2026-05-12-getting-started-with-hot-chocolate.mdx b/website-next/content/blog/2026-05-12-getting-started-with-hot-chocolate.mdx new file mode 100644 index 00000000000..0a1b5fbc88e --- /dev/null +++ b/website-next/content/blog/2026-05-12-getting-started-with-hot-chocolate.mdx @@ -0,0 +1,41 @@ +--- +title: "Lorem Ipsum Dolor Sit Amet" +description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit sed do eiusmod." +author: "Lorem Ipsum" +authorUrl: "https://example.com" +authorImageUrl: "https://i.pravatar.cc/80?img=47" +date: "2026-05-12" +tags: + - lorem + - ipsum + - dolor +featuredImage: "https://images.unsplash.com/photo-1542831371-29b0f74f9713?auto=format&fit=crop&w=1200&q=80" +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor +incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis +nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. + +## Lorem Ipsum + +Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu +fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in +culpa qui officia deserunt mollit anim id est laborum. + +## Dolor Sit Amet + +Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium +doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore +veritatis et quasi architecto beatae vitae dicta sunt explicabo. + +Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed +quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. + +## Consectetur Adipiscing + +- Lorem ipsum dolor sit amet +- Consectetur adipiscing elit +- Sed do eiusmod tempor incididunt + +Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, +adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore. diff --git a/website-next/content/blog/2026-05-20-data-loaders-explained.mdx b/website-next/content/blog/2026-05-20-data-loaders-explained.mdx new file mode 100644 index 00000000000..a526c0db954 --- /dev/null +++ b/website-next/content/blog/2026-05-20-data-loaders-explained.mdx @@ -0,0 +1,44 @@ +--- +title: "Consectetur Adipiscing Elit" +description: "Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." +author: "Lorem Ipsum" +authorUrl: "https://example.com" +authorImageUrl: "https://i.pravatar.cc/80?img=32" +date: "2026-05-20" +tags: + - lorem + - ipsum + - tempor +featuredImage: "https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1200&q=80" +--- + +Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit +laboriosam, nisi ut aliquid ex ea commodi consequatur. Quis autem vel eum iure +reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur. + +## Lorem Ipsum Dolor + +At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis +praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias +excepturi sint occaecati cupiditate non provident. + +```text +Lorem ipsum dolor sit amet consectetur adipiscing elit. +``` + +## Sed Eiusmod Tempor + +Similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et +dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. + +Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo +minus id quod maxime placeat facere possimus, omnis voluptas assumenda est. + +## Magna Aliqua + +- **Lorem** ipsum dolor sit amet +- **Consectetur** adipiscing elit +- **Tempor** incididunt ut labore + +Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus +saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. diff --git a/website-next/content/blog/2026-05-27-composing-schemas-with-fusion.mdx b/website-next/content/blog/2026-05-27-composing-schemas-with-fusion.mdx new file mode 100644 index 00000000000..062dd90df10 --- /dev/null +++ b/website-next/content/blog/2026-05-27-composing-schemas-with-fusion.mdx @@ -0,0 +1,44 @@ +--- +title: "Tempor Incididunt Ut Labore" +description: "Excepteur sint occaecat cupidatat non proident sunt in culpa qui officia." +author: "Lorem Ipsum" +authorUrl: "https://example.com" +authorImageUrl: "https://i.pravatar.cc/80?img=12" +date: "2026-05-27" +tags: + - lorem + - dolor + - tempor +featuredImage: "https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1200&q=80" +--- + +Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis +voluptatibus maiores alias consequatur aut perferendis doloribus asperiores +repellat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. + +## Lorem Ipsum + +Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil +molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla +pariatur. + +```text +Lorem ─┐ +Ipsum ─┼──► Dolor Sit ──► Amet +Dolor ─┘ +``` + +## Consectetur Adipiscing + +Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, +cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod +maxime placeat facere possimus. + +## Sed Do Eiusmod + +- **Lorem** ipsum dolor sit amet +- **Consectetur** adipiscing elit +- **Tempor** incididunt ut labore + +Omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem +quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet. From 44f0bc158fdcf8b0f226d2ef4d08e8a50057f9a0 Mon Sep 17 00:00:00 2001 From: tobias-tengler <45513122+tobias-tengler@users.noreply.github.com> Date: Fri, 29 May 2026 22:58:40 +0200 Subject: [PATCH 2/7] wip: new theme --- website-next/.vscode/extensions.json | 10 + website-next/app/(content)/resources/page.tsx | 2 +- website-next/app/blog/tags/[tag]/page.tsx | 2 +- website-next/app/docs/page.tsx | 6 +- website-next/app/globals.css | 209 +++++++++++++----- ...-12-getting-started-with-hot-chocolate.mdx | 1 + .../2026-05-20-data-loaders-explained.mdx | 1 + ...26-05-27-composing-schemas-with-fusion.mdx | 1 + website-next/src/components/BlogMetadata.tsx | 11 +- website-next/src/components/BlogTeaser.tsx | 51 ++--- .../src/components/BlogTeaserGrid.tsx | 4 +- website-next/src/components/Footer.tsx | 14 +- website-next/src/components/FromOurBlog.tsx | 4 +- website-next/src/components/Header.tsx | 26 +-- website-next/src/components/MobileNav.tsx | 18 +- .../src/components/ProductSelector.tsx | 10 +- website-next/src/components/Search.tsx | 6 +- website-next/src/components/SimilarPosts.tsx | 6 +- website-next/src/design-system/Admonition.tsx | 24 +- website-next/src/design-system/CodeBlock.tsx | 8 +- website-next/src/design-system/Divider.tsx | 2 +- .../src/design-system/DocPageMeta.tsx | 2 +- .../src/design-system/DocsToolbar.tsx | 2 +- website-next/src/design-system/Dropdown.tsx | 12 +- .../src/design-system/EditOnGitHub.tsx | 2 +- website-next/src/design-system/Image.tsx | 2 +- website-next/src/design-system/InlineCode.tsx | 2 +- website-next/src/design-system/Link.tsx | 2 +- website-next/src/design-system/List.tsx | 6 +- website-next/src/design-system/Pagination.tsx | 8 +- website-next/src/design-system/Quote.tsx | 2 +- website-next/src/design-system/Sidebar.tsx | 8 +- .../src/design-system/SidebarDrawer.tsx | 10 +- website-next/src/design-system/Table.tsx | 8 +- .../src/design-system/TableOfContents.tsx | 12 +- website-next/src/design-system/Tabs.tsx | 8 +- website-next/src/design-system/Tag.tsx | 4 +- website-next/src/design-system/TocDrawer.tsx | 8 +- website-next/src/design-system/Typography.tsx | 26 +-- website-next/src/design-system/Video.tsx | 2 +- .../src/design-system/VideoFacade.tsx | 6 +- website-next/src/helpers/blogPosts.ts | 5 + website-next/src/mdx-plugins.ts | 42 +++- 43 files changed, 365 insertions(+), 230 deletions(-) create mode 100644 website-next/.vscode/extensions.json diff --git a/website-next/.vscode/extensions.json b/website-next/.vscode/extensions.json new file mode 100644 index 00000000000..19d8c2e1faa --- /dev/null +++ b/website-next/.vscode/extensions.json @@ -0,0 +1,10 @@ +{ + "recommendations": [ + "esbenp.prettier-vscode", + "dbaeumer.vscode-eslint", + "bradlc.vscode-tailwindcss", + "unifiedjs.vscode-mdx", + "jock.svg", + "ms-playwright.playwright" + ] +} diff --git a/website-next/app/(content)/resources/page.tsx b/website-next/app/(content)/resources/page.tsx index 640422d0fae..c728fe1c3a2 100644 --- a/website-next/app/(content)/resources/page.tsx +++ b/website-next/app/(content)/resources/page.tsx @@ -9,7 +9,7 @@ export default function ResourcesPage() { return ( <> Resources -

+

Brand assets, banners, and other resources are coming soon.

diff --git a/website-next/app/blog/tags/[tag]/page.tsx b/website-next/app/blog/tags/[tag]/page.tsx index c9496cd5dc2..0fe63eb1a15 100644 --- a/website-next/app/blog/tags/[tag]/page.tsx +++ b/website-next/app/blog/tags/[tag]/page.tsx @@ -42,7 +42,7 @@ export default async function TagIndex({ params }: PageProps) {
#{tag} -

+

{tagged.length} {tagged.length === 1 ? "post" : "posts"} tagged “{tag}”.

diff --git a/website-next/app/docs/page.tsx b/website-next/app/docs/page.tsx index b39c0b1672e..5cb00154595 100644 --- a/website-next/app/docs/page.tsx +++ b/website-next/app/docs/page.tsx @@ -19,7 +19,7 @@ export default function DocsIndex() {
Documentation -

+

Pick a product to get started. More content is on its way.

    @@ -27,10 +27,10 @@ export default function DocsIndex() {
  • {p.label}
    -
    +
    /docs/{p.slug}
    diff --git a/website-next/app/globals.css b/website-next/app/globals.css index 14b02989925..8ec36d37627 100644 --- a/website-next/app/globals.css +++ b/website-next/app/globals.css @@ -6,76 +6,175 @@ BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; - /* Brand colors. Re-point the right-hand side of each line to swap the - whole site's accent (e.g. `var(--color-sky-700)`). Mermaid diagrams - bake their palette at build time from hardcoded hex values, so update - `src/mdx-plugins.ts` to match when switching the primary color: - ../src/mdx-plugins.ts */ - --color-primary-50: var(--color-purple-50); - --color-primary-100: var(--color-purple-100); - --color-primary-200: var(--color-purple-200); - --color-primary-300: var(--color-purple-300); - --color-primary-400: var(--color-purple-400); - --color-primary-500: var(--color-purple-500); - --color-primary-600: var(--color-purple-600); - --color-primary-700: var(--color-purple-700); - --color-primary-800: var(--color-purple-800); - --color-primary-900: var(--color-purple-900); - - --color-secondary-50: var(--color-fuchsia-50); - --color-secondary-100: var(--color-fuchsia-100); - --color-secondary-200: var(--color-fuchsia-200); - --color-secondary-300: var(--color-fuchsia-300); - --color-secondary-400: var(--color-fuchsia-400); - --color-secondary-500: var(--color-fuchsia-500); - --color-secondary-600: var(--color-fuchsia-600); - --color-secondary-700: var(--color-fuchsia-700); - --color-secondary-800: var(--color-fuchsia-800); - --color-secondary-900: var(--color-fuchsia-900); + /* Disable default Tailwind colors */ + --color-*: initial; + + --color-cc-ink: #f5f1ea; + --color-cc-ink-dim: rgba(245, 241, 234, 0.62); + --color-cc-ink-faint: rgba(245, 241, 234, 0.16); + --color-cc-bg: #0b0f1a; + --color-cc-card-bg: rgba(12, 19, 34, 0.55); + --color-cc-card-border: rgba(245, 241, 234, 0.12); + --color-cc-card-border-hover: rgba(245, 241, 234, 0.32); + --color-cc-accent: oklch(0.74 0.14 220); + --color-cc-accent-hover: oklch(0.8 0.14 220); + + /* Secondary brand CTA (the "Launch" button). */ + --color-cc-cta: oklch(51.8% 0.253 323.949); + --color-cc-cta-hover: oklch(45.2% 0.211 324.591); + + /* Semantic admonition hues. Used with alpha modifiers, e.g. + `text-cc-danger bg-cc-danger/10 ring-cc-danger/30`. */ + --color-cc-note: oklch(74.6% 0.16 232.661); + --color-cc-tip: oklch(71.4% 0.203 305.504); + --color-cc-warning: oklch(82.8% 0.189 84.429); + --color-cc-danger: oklch(70.4% 0.191 22.216); + --color-cc-info: oklch(70.2% 0.183 293.541); +} + +@layer base { + :root { + /* Dark starfield surface shared by marketing pages. A few + radial-gradients layered on the page gradient give a hint of the + original WebGL nebula without the JS cost, anchored to the viewport + so the pattern doesn't scroll with content. */ + --cc-dark-surface: + radial-gradient( + 1px 1px at 17% 12%, + rgba(255, 255, 255, 0.5), + transparent 50% + ), + radial-gradient( + 1px 1px at 34% 58%, + rgba(255, 255, 255, 0.45), + transparent 50% + ), + radial-gradient( + 1.5px 1.5px at 62% 23%, + rgba(255, 255, 255, 0.4), + transparent 50% + ), + radial-gradient( + 1px 1px at 82% 71%, + rgba(255, 255, 255, 0.6), + transparent 50% + ), + radial-gradient( + 1px 1px at 12% 84%, + rgba(255, 255, 255, 0.4), + transparent 50% + ), + radial-gradient( + 1.5px 1.5px at 48% 91%, + rgba(255, 255, 255, 0.35), + transparent 50% + ), + radial-gradient( + 1px 1px at 91% 8%, + rgba(255, 255, 255, 0.45), + transparent 50% + ), + radial-gradient( + 1px 1px at 27% 31%, + rgba(255, 255, 255, 0.4), + transparent 50% + ), + radial-gradient( + 1.2px 1.2px at 73% 49%, + rgba(255, 255, 255, 0.5), + transparent 50% + ), + radial-gradient( + 80% 50% at 70% 0%, + rgba(80, 60, 200, 0.12), + transparent 60% + ), + linear-gradient( + 180deg, + #0c1322 0%, + #0c1322 22%, + #0b1220 38%, + #0a111e 58%, + #09101c 78%, + #08101a 100% + ); + } + + html { + background-color: var(--color-cc-bg); + color: var(--color-cc-ink); + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + } + + body { + background-color: var(--color-cc-bg); + color: var(--color-cc-ink); + min-height: 100vh; + } } html:has(:target) { scroll-behavior: smooth; } -/* Algolia DocSearch — re-skin the modal to match the site palette. The +/* Subtle dark scrollbars — the default light/native ones look harsh against + the dark UI (docs sidebar, TOC, and the page itself). */ +* { + scrollbar-width: thin; + scrollbar-color: rgba(245, 241, 234, 0.22) transparent; +} +::-webkit-scrollbar { + width: 10px; + height: 10px; +} +::-webkit-scrollbar-track { + background: transparent; +} +::-webkit-scrollbar-thumb { + background-color: rgba(245, 241, 234, 0.18); + border-radius: 9999px; + border: 2px solid transparent; + background-clip: content-box; +} +::-webkit-scrollbar-thumb:hover { + background-color: rgba(245, 241, 234, 0.32); +} + +/* Algolia DocSearch — re-skin the modal to match the dark site palette. The variables are declared by DocSearch on `:root` (its stylesheet loads after this one, so a `:root` override here loses the cascade). Scoping to `.DocSearch-Container` beats that with higher specificity and lets descendants inherit via `var()`. Full token list: https://docsearch.algolia.com/docs/styling */ .DocSearch-Container { - --docsearch-primary-color: var(--color-primary-700); - --docsearch-highlight-color: var(--color-primary-700); - --docsearch-text-color: var(--color-slate-900); - --docsearch-muted-color: var(--color-slate-500); - --docsearch-container-background: rgb(15 23 42 / 0.6); /* slate-900 / 60% */ - --docsearch-modal-background: white; + --docsearch-primary-color: var(--color-cc-accent); + --docsearch-highlight-color: var(--color-cc-accent); + --docsearch-text-color: var(--color-cc-ink); + --docsearch-muted-color: var(--color-cc-ink-dim); + --docsearch-container-background: rgb(5 8 15 / 0.7); + --docsearch-modal-background: #0c1322; --docsearch-modal-shadow: - inset 1px 1px 0 0 rgb(255 255 255 / 0.5), - 0 3px 8px 0 rgb(15 23 42 / 0.15); - --docsearch-searchbox-background: var(--color-slate-100); - --docsearch-searchbox-focus-background: white; - --docsearch-searchbox-shadow: - inset 0 0 0 2px var(--color-primary-700); - --docsearch-hit-color: var(--color-slate-700); - --docsearch-hit-active-color: white; - --docsearch-hit-background: white; - --docsearch-hit-shadow: 0 1px 3px 0 rgb(15 23 42 / 0.08); + inset 1px 1px 0 0 rgb(245 241 234 / 0.06), 0 12px 32px 0 rgb(0 0 0 / 0.5); + --docsearch-searchbox-background: rgb(245 241 234 / 0.05); + --docsearch-searchbox-focus-background: rgb(245 241 234 / 0.08); + --docsearch-searchbox-shadow: inset 0 0 0 2px var(--color-cc-accent); + --docsearch-hit-color: rgb(245 241 234 / 0.8); + --docsearch-hit-active-color: #ffffff; + --docsearch-hit-background: rgb(245 241 234 / 0.04); + --docsearch-hit-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3); --docsearch-key-gradient: linear-gradient( -225deg, - var(--color-slate-200), - var(--color-slate-100) + rgb(245 241 234 / 0.08), + rgb(245 241 234 / 0.04) ); --docsearch-key-shadow: - inset 0 -2px 0 0 var(--color-slate-300), - inset 0 0 1px 1px white, - 0 1px 2px 1px rgb(15 23 42 / 0.08); - --docsearch-footer-background: white; + inset 0 -2px 0 0 rgb(0 0 0 / 0.3), + inset 0 0 1px 1px rgb(245 241 234 / 0.06), 0 1px 2px 1px rgb(0 0 0 / 0.3); + --docsearch-footer-background: #0b0f1a; --docsearch-footer-shadow: - 0 -1px 0 0 var(--color-slate-200), - 0 -3px 6px 0 rgb(15 23 42 / 0.04); - --docsearch-logo-color: var(--color-slate-400); + 0 -1px 0 0 rgb(245 241 234 / 0.1), 0 -3px 6px 0 rgb(0 0 0 / 0.2); + --docsearch-logo-color: var(--color-cc-ink-dim); } :where(h1, h2, h3, h4, h5, h6)[id] { @@ -102,9 +201,9 @@ html:has(:target) { } [data-toc-link][data-active="true"] { - color: var(--color-primary-700); + color: var(--color-cc-accent); font-weight: 600; - border-left-color: var(--color-primary-700); + border-left-color: var(--color-cc-accent); } /* Shiki output styling — neutralize default
     background so the figure
    @@ -132,7 +231,7 @@ html:has(:target) {
     
     .shiki-wrapper .line.line-highlighted {
       background: rgba(255, 255, 255, 0.08);
    -  box-shadow: inset 3px 0 0 var(--color-primary-500);
    +  box-shadow: inset 3px 0 0 var(--color-cc-accent);
     }
     
     /* Hovering a CodeStep in prose dims only the code block that contains
    diff --git a/website-next/content/blog/2026-05-12-getting-started-with-hot-chocolate.mdx b/website-next/content/blog/2026-05-12-getting-started-with-hot-chocolate.mdx
    index 0a1b5fbc88e..86e003a7579 100644
    --- a/website-next/content/blog/2026-05-12-getting-started-with-hot-chocolate.mdx
    +++ b/website-next/content/blog/2026-05-12-getting-started-with-hot-chocolate.mdx
    @@ -5,6 +5,7 @@ author: "Lorem Ipsum"
     authorUrl: "https://example.com"
     authorImageUrl: "https://i.pravatar.cc/80?img=47"
     date: "2026-05-12"
    +category: "Tutorial"
     tags:
       - lorem
       - ipsum
    diff --git a/website-next/content/blog/2026-05-20-data-loaders-explained.mdx b/website-next/content/blog/2026-05-20-data-loaders-explained.mdx
    index a526c0db954..2d4932c3a09 100644
    --- a/website-next/content/blog/2026-05-20-data-loaders-explained.mdx
    +++ b/website-next/content/blog/2026-05-20-data-loaders-explained.mdx
    @@ -5,6 +5,7 @@ author: "Lorem Ipsum"
     authorUrl: "https://example.com"
     authorImageUrl: "https://i.pravatar.cc/80?img=32"
     date: "2026-05-20"
    +category: "Capability"
     tags:
       - lorem
       - ipsum
    diff --git a/website-next/content/blog/2026-05-27-composing-schemas-with-fusion.mdx b/website-next/content/blog/2026-05-27-composing-schemas-with-fusion.mdx
    index 062dd90df10..5a4b2be1af3 100644
    --- a/website-next/content/blog/2026-05-27-composing-schemas-with-fusion.mdx
    +++ b/website-next/content/blog/2026-05-27-composing-schemas-with-fusion.mdx
    @@ -5,6 +5,7 @@ author: "Lorem Ipsum"
     authorUrl: "https://example.com"
     authorImageUrl: "https://i.pravatar.cc/80?img=12"
     date: "2026-05-27"
    +category: "Release"
     tags:
       - lorem
       - dolor
    diff --git a/website-next/src/components/BlogMetadata.tsx b/website-next/src/components/BlogMetadata.tsx
    index 7e9ffbf2fee..82d44ffa6cf 100644
    --- a/website-next/src/components/BlogMetadata.tsx
    +++ b/website-next/src/components/BlogMetadata.tsx
    @@ -22,14 +22,17 @@ export function BlogMetadata({
         readingTime ? {readingTime} : null,
       ].filter(Boolean);
     
    +  // TODO: Fix image and custom link
       return (
    -    
    +
    {author ? ( {authorImageUrl ? ( // eslint-disable-next-line @next/next/no-img-element @@ -48,7 +51,7 @@ export function BlogMetadata({ ) : null} {parts.map((part, i) => ( - {(author || i > 0) ? : null} + {author || i > 0 ? : null} {part} ))} diff --git a/website-next/src/components/BlogTeaser.tsx b/website-next/src/components/BlogTeaser.tsx index d835d39356a..0b102203375 100644 --- a/website-next/src/components/BlogTeaser.tsx +++ b/website-next/src/components/BlogTeaser.tsx @@ -5,6 +5,8 @@ export type BlogTeaserData = { title: string; date: string; featuredImage: string | null; + category?: string | null; + description?: string | null; author?: string | null; authorImageUrl?: string | null; }; @@ -18,9 +20,9 @@ export function BlogTeaser({ post }: BlogTeaserProps) {
    -
    +
    {post.featuredImage ? ( // eslint-disable-next-line @next/next/no-img-element ) : null}
    -
    -

    - {post.title} -

    -
    - {post.author ? ( - - {post.authorImageUrl ? ( - // eslint-disable-next-line @next/next/no-img-element - - ) : null} - {post.author} +
    +
    + {post.category ? ( + + {post.category} ) : null} - {post.author ? : null}
    +

    + {post.title} +

    + {post.description ? ( +

    + {post.description} +

    + ) : null} + + Read → +
    @@ -68,9 +65,5 @@ function formatDate(iso: string): string { if (Number.isNaN(d.getTime())) { return iso; } - return d.toLocaleDateString("en-US", { - year: "numeric", - month: "short", - day: "numeric", - }); + return d.toLocaleDateString("en-US", { month: "short", year: "numeric" }); } diff --git a/website-next/src/components/BlogTeaserGrid.tsx b/website-next/src/components/BlogTeaserGrid.tsx index a6f38e4b770..21abb59ecee 100644 --- a/website-next/src/components/BlogTeaserGrid.tsx +++ b/website-next/src/components/BlogTeaserGrid.tsx @@ -7,14 +7,14 @@ type BlogTeaserGridProps = { export function BlogTeaserGrid({ posts }: BlogTeaserGridProps) { if (posts.length === 0) { return ( -

    +

    No posts yet. Check back soon.

    ); } return ( -
      +
        {posts.map((post) => (
      • diff --git a/website-next/src/components/Footer.tsx b/website-next/src/components/Footer.tsx index 61d527d5952..032e0a2087e 100644 --- a/website-next/src/components/Footer.tsx +++ b/website-next/src/components/Footer.tsx @@ -36,14 +36,14 @@ const basicPages: { path: string; title: string }[] = [ export default function Footer() { return ( -