Skip to content

The Open Standard for Generative UI

docs: reorganize the Demos page around featured projects (#1403)

ABcf615ae1401d
diff --git a/docs/components/showcase/demos.tsx b/docs/components/showcase/demos.tsx
index 4e7f7a3a7..242622955 100644
--- a/docs/components/showcase/demos.tsx
+++ b/docs/components/showcase/demos.tsx
@@ -2,7 +2,7 @@ import { EXAMPLES_REPO_URL } from "@/lib/examples-catalog";
import { labProjects } from "@/lib/lab-projects";
import { LinkCardGrid, ShowcaseGrid, type ShowcaseItem } from "./cards";
-const DEMOS: ShowcaseItem[] = [
+const PLAYGROUND: ShowcaseItem[] = [
{
name: "OpenUI Chat",
tagline: "Chat assistant",
@@ -29,7 +29,7 @@ const DEMOS: ShowcaseItem[] = [
},
{
name: "OpenUI vs JSON",
- tagline: "Playground",
+ tagline: "Tokens",
description:
"Generate UI from a prompt and watch OpenUI Lang stream against JSON, with up to 67% fewer tokens.",
image: { light: "/nav/vsjson-light.webp", dark: "/nav/vsjson-dark.webp" },
@@ -37,11 +37,33 @@ const DEMOS: ShowcaseItem[] = [
},
];
-export function Demos() {
- return <ShowcaseGrid items={DEMOS} />;
+export function Playground() {
+ return <ShowcaseGrid items={PLAYGROUND} />;
}
const FEATURED_PROJECTS: ShowcaseItem[] = [
+ {
+ name: "F1 Dashboard",
+ tagline: "Live race data",
+ description:
+ "Ask about any race, driver or team and get charts, tables and timing from OpenF1, next to live standings dashboards.",
+ image: { light: "/nav/f1-dashboard-light.webp", dark: "/nav/f1-dashboard-dark.webp" },
+ links: [
+ { label: "Open demo", href: "/demo/f1-dashboard" },
+ { label: "GitHub", href: "https://github.com/thesysdev/openui-f1-dashboard", external: true },
+ ],
+ },
+ {
+ name: "Trip Planner",
+ tagline: "Travel agent",
+ description:
+ "Plan a trip as visual spreads, a day-by-day itinerary on a map, a moodboard and a journal, with live hotel prices from trivago.",
+ image: { light: "/nav/trip-planner-light.webp", dark: "/nav/trip-planner-dark.webp" },
+ links: [
+ { label: "Open demo", href: "/demo/trip-planner" },
+ { label: "GitHub", href: "https://github.com/thesysdev/openui-trip-planner", external: true },
+ ],
+ },
{
name: "OpenClaw OS",
tagline: "Agent workspace",
diff --git a/docs/components/showcase/showcase.module.css b/docs/components/showcase/showcase.module.css
index a35408146..dbdb12d46 100644
--- a/docs/components/showcase/showcase.module.css
+++ b/docs/components/showcase/showcase.module.css
@@ -5,14 +5,8 @@
margin: 1.25rem 0 0;
}
-/* At most two columns, so four featured cards form a 2x2 grid instead of 3 + 1. */
-.featuredGrid {
- grid-template-columns: repeat(
- auto-fit,
- minmax(min(100%, max(22rem, calc((100% - 1rem) / 2))), 1fr)
- );
-}
-
+/* Image and text cards share one grid: three columns on wide screens, fewer as it narrows. */
+.featuredGrid,
.grid {
grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
diff --git a/docs/content/docs/demos/index.mdx b/docs/content/docs/demos/index.mdx
index 95e7566fd..7f803aeef 100644
--- a/docs/content/docs/demos/index.mdx
+++ b/docs/content/docs/demos/index.mdx
@@ -1,16 +1,11 @@
---
title: Demos
-description: Live demos of OpenUI, projects the team builds in the open, and work from the community.
-full: true
+description: OpenUI Playgrounds, featured projects & contributions from the community.
sidebar: false
pageActions: false
---
-import { CommunityProjects, Demos, FeaturedProjects } from "@/components/showcase/demos";
-
-## Live demos
-
-<Demos />
+import { CommunityProjects, FeaturedProjects, Playground } from "@/components/showcase/demos";
## Featured projects
@@ -18,6 +13,10 @@ Full products the OpenUI team builds in the open to show what generative UI can
<FeaturedProjects />
+## Playground
+
+<Playground />
+
## Community projects
Apps, tools, and integrations built by the OpenUI community. To add yours, [open an issue](https://github.com/thesysdev/openui/issues) with a link and a short description.
diff --git a/docs/public/nav/f1-dashboard-dark.webp b/docs/public/nav/f1-dashboard-dark.webp
new file mode 100644
index 000000000..203fcf88d
Binary files /dev/null and b/docs/public/nav/f1-dashboard-dark.webp differ
diff --git a/docs/public/nav/f1-dashboard-light.webp b/docs/public/nav/f1-dashboard-light.webp
new file mode 100644
index 000000000..6791aa47c
Binary files /dev/null and b/docs/public/nav/f1-dashboard-light.webp differ
diff --git a/docs/public/nav/trip-planner-dark.webp b/docs/public/nav/trip-planner-dark.webp
new file mode 100644
index 000000000..aa044880f
Binary files /dev/null and b/docs/public/nav/trip-planner-dark.webp differ
diff --git a/docs/public/nav/trip-planner-light.webp b/docs/public/nav/trip-planner-light.webp
new file mode 100644
index 000000000..a36030933
Binary files /dev/null and b/docs/public/nav/trip-planner-light.webp differ