From f9542d2b40fb19f093d78cf8c4ca65895ccf9c72 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 23 Jul 2026 07:46:59 +0200 Subject: New release page layout --- src/pages/releases/[version].tsx | 112 +++++++++++++++++++++------------------ 1 file changed, 59 insertions(+), 53 deletions(-) (limited to 'src/pages/releases') diff --git a/src/pages/releases/[version].tsx b/src/pages/releases/[version].tsx index 262dac1..280925b 100644 --- a/src/pages/releases/[version].tsx +++ b/src/pages/releases/[version].tsx @@ -3,6 +3,7 @@ import { Page, PipelineStageError } from "corvos"; import { strapiLoader } from "$/deps/strapi.tsx"; import { releaseStrapiSchema } from "$/schemas/releases.ts"; import { BaseLayout } from "$/ui/base/BaseLayout.tsx"; +import { SplitLayout } from "$/ui/base/SplitLayout.tsx"; import { ReleaseCard } from "$/ui/components/ReleaseCard.tsx"; import { SiteHeader } from "$/ui/components/SiteHeader.tsx"; import { CardList } from "$/ui/layouts/CardList.tsx"; @@ -11,6 +12,9 @@ import { HList } from "$/ui/layouts/HList.tsx"; import { ActionButton } from "$/ui/objects/ActionButton.tsx"; import { Badge } from "$/ui/objects/Badge.tsx"; import { Body } from "$/ui/objects/Body.tsx"; +import { Button } from "$/ui/objects/Button.tsx"; +import { Card } from "$/ui/objects/Card.tsx"; +import { CardBody } from "$/ui/objects/CardBody.tsx"; import { Divider } from "$/ui/objects/Divider.tsx"; import { Heading } from "$/ui/objects/Heading.tsx"; import { Icon } from "$/ui/objects/Icon.tsx"; @@ -39,63 +43,65 @@ export const template = site.$.template({ type: "release" }, (page, pages) => { const feed = query.type(".rss").match({ type: "releases" }).one(); - const prev = query.type(".html").match({ type: "release" }).prev(page); - const next = query.type(".html").match({ type: "release" }).next(page); - return ( - - - } - level="quiet" - pill - title="RSS Feed" - /> - - } - > -
- {page.data.title} -
-
+ + + Release notes + - - -
  • - - - -
  • -
    - - - {page.data.title} - + {{ __html: page.content }} + + } + header-end={ +
    + } + level="quiet" + pill + title="RSS Feed" + /> +
    + } + > + + + + - {{ __html: page.content }} -
    + +
      +
    • + + + +
    • +
    - + + {page.data.title} + +
    + - - - {prev && } - {next && } - - -
    + + ); }); -- cgit v1.3.1