Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Redesign Put-it-to-work use-case cards with custom graphics (#1795)

sarahbce576057bc7
diff --git a/docs/src/app/(home)/sections/agent-brain-graphic.tsx b/docs/src/app/(home)/sections/agent-brain-graphic.tsx
new file mode 100644
index 000000000..bce9d3d3e
--- /dev/null
+++ b/docs/src/app/(home)/sections/agent-brain-graphic.tsx
@@ -0,0 +1,133 @@
+import {
+ Box,
+ Code,
+ FileText,
+ Globe,
+ type LucideIcon,
+ MessageCircleMore,
+ Sparkles,
+ User,
+} from 'lucide-react';
+
+const RINGS = [20, 44, 68, 94] as const;
+
+type Bubble = { icon: LucideIcon; angle: number; radius: number };
+
+const BUBBLES: Bubble[] = [
+ { icon: Globe, angle: 8, radius: 68 }, // right, outer ring
+ { icon: User, angle: 65, radius: 44 }, // upper-right, inner ring
+ { icon: FileText, angle: 128, radius: 68 }, // upper-left, outer ring
+ { icon: MessageCircleMore, angle: 185, radius: 44 }, // left, inner ring
+ { icon: Code, angle: 248, radius: 68 }, // lower-left, outer ring
+ { icon: Box, angle: 305, radius: 44 }, // lower-right, inner ring
+];
+
+const CENTER = { x: 80, y: 45 };
+
+function orbitMotion(radius: number) {
+ return radius > 50
+ ? { duration: 130, direction: 'reverse' as const }
+ : { duration: 90, direction: 'normal' as const };
+}
+
+function AgentMark() {
+ return (
+ <div
+ className="flex shrink-0 items-center justify-center rounded-full"
+ style={{
+ width: 44,
+ height: 44,
+ background:
+ 'linear-gradient(135deg, var(--color-purple-light) 0%, var(--color-sky-blue) 50%, var(--color-crystal-blue) 100%)',
+ boxShadow: '0 1px 2px rgba(15, 23, 42, 0.08), 0 6px 16px -4px rgba(15, 23, 42, 0.18)',
+ }}
+ >
+ <Sparkles className="size-[22px] text-white" strokeWidth={2} aria-hidden="true" />
+ </div>
+ );
+}
+
+export function AgentBrainGraphic() {
+ return (
+ <div className="relative h-full w-full overflow-hidden" aria-hidden="true">
+ <style>{`
+ @keyframes ok-orbit { to { transform: rotate(360deg); } }
+ @media (prefers-reduced-motion: reduce) {
+ .ok-orbit-anim { animation: none !important; }
+ }
+ `}</style>
+ <svg
+ className="absolute inset-0 h-full w-full"
+ viewBox="0 0 160 90"
+ preserveAspectRatio="xMidYMid meet"
+ aria-hidden="true"
+ >
+ {RINGS.map((r) => (
+ <circle
+ key={r}
+ cx={CENTER.x}
+ cy={CENTER.y}
+ r={r}
+ fill="none"
+ style={{ stroke: 'color-mix(in srgb, var(--slide-text) 5%, transparent)' }}
+ strokeWidth={1}
+ vectorEffect="non-scaling-stroke"
+ />
+ ))}
+ </svg>
+
+ {BUBBLES.map((b, i) => {
+ const Icon = b.icon;
+ const { duration, direction } = orbitMotion(b.radius);
+ const counterDirection = direction === 'reverse' ? 'normal' : 'reverse';
+ return (
+ <div
+ // biome-ignore lint/suspicious/noArrayIndexKey: static positions
+ key={i}
+ className="absolute left-1/2 top-1/2 aspect-square"
+ style={{
+ width: `${(b.radius / 80) * 100}%`,
+ transform: `translate(-50%, -50%) rotate(${-b.angle}deg)`,
+ }}
+ >
+ <div
+ className="ok-orbit-anim h-full w-full"
+ style={{ animation: `ok-orbit ${duration}s linear infinite ${direction}` }}
+ >
+ <div className="absolute left-full top-1/2 size-0">
+ <div
+ className="ok-orbit-anim"
+ style={{ animation: `ok-orbit ${duration}s linear infinite ${counterDirection}` }}
+ >
+ <div
+ className="absolute flex items-center justify-center rounded-full"
+ style={{
+ width: '40px',
+ height: '40px',
+ transform: `translate(-50%, -50%) rotate(${b.angle}deg)`,
+ background: 'color-mix(in srgb, white 45%, var(--slide-bg))',
+ border: '1px solid rgba(26, 26, 26, 0.07)',
+ }}
+ >
+ <Icon
+ className="size-[18px]"
+ strokeWidth={1.6}
+ style={{
+ color: 'color-mix(in srgb, var(--slide-text) 40%, var(--slide-bg))',
+ }}
+ aria-hidden="true"
+ />
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+ })}
+
+ <div className="absolute inset-0 flex items-center justify-center">
+ <AgentMark />
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/app/(home)/sections/eng-specs-graphic.tsx b/docs/src/app/(home)/sections/eng-specs-graphic.tsx
new file mode 100644
index 000000000..b208fee1f
--- /dev/null
+++ b/docs/src/app/(home)/sections/eng-specs-graphic.tsx
@@ -0,0 +1,241 @@
+import { Code, Sparkles } from 'lucide-react';
+
+const RINGS = [56, 82, 108] as const;
+const RING_CENTER = { x: 80, y: 45 };
+
+const CARD_BG = 'var(--slide-bg-elevated)';
+const CARD_RADIUS = '3.6cqw';
+const FRONT_SHADOW = '0 1px 3px rgba(15, 23, 42, 0.07), 0 16px 34px -10px rgba(15, 23, 42, 0.18)';
+const BACK_SHADOW = '0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 18px -8px rgba(15, 23, 42, 0.12)';
+
+const LINE_FILL = 'color-mix(in srgb, var(--slide-text) 13%, transparent)';
+const ACCENT_LINE = 'color-mix(in srgb, var(--slide-accent) 45%, transparent)';
+const HAIRLINE = 'color-mix(in srgb, var(--slide-text) 8%, transparent)';
+const MUTED_FILL = 'color-mix(in srgb, var(--slide-muted) 14%, transparent)';
+
+function BackgroundRings() {
+ return (
+ <svg
+ className="absolute inset-0 h-full w-full"
+ viewBox="0 0 160 90"
+ preserveAspectRatio="xMidYMid slice"
+ aria-hidden="true"
+ >
+ {RINGS.map((r) => (
+ <circle
+ key={r}
+ cx={RING_CENTER.x}
+ cy={RING_CENTER.y}
+ r={r}
+ fill="none"
+ style={{ stroke: 'color-mix(in srgb, var(--slide-text) 10%, transparent)' }}
+ strokeWidth={1}
+ strokeDasharray="1.5 4"
+ vectorEffect="non-scaling-stroke"
+ />
+ ))}
+ </svg>
+ );
+}
+
+type Seg = { w: string; accent?: boolean };
+
+function CodeLine({ indent, segs }: { indent?: string; segs: Seg[] }) {
+ return (
+ <div className="flex items-center" style={{ gap: '1.1cqw', marginLeft: indent }}>
+ {segs.map((s, i) => (
+ <div
+ // biome-ignore lint/suspicious/noArrayIndexKey: static token layout
+ key={i}
+ style={{
+ height: '1.7cqw',
+ width: s.w,
+ borderRadius: '9999px',
+ backgroundColor: s.accent ? ACCENT_LINE : LINE_FILL,
+ }}
+ />
+ ))}
+ </div>
+ );
+}
+
+function SkeletonLine({ width, delay }: { width: string; delay: string }) {
+ return (
+ <div
+ className="relative overflow-hidden"
+ style={{ height: '2.1cqw', width, borderRadius: '9999px', backgroundColor: MUTED_FILL }}
+ >
+ <div
+ className="ok-spec-shimmer absolute inset-y-0"
+ style={{
+ width: '50%',
+ animationDelay: delay,
+ background:
+ 'linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%)',
+ }}
+ />
+ </div>
+ );
+}
+
+function CodeCard() {
+ return (
+ <div
+ className="absolute flex flex-col overflow-hidden"
+ style={{
+ left: '9%',
+ top: '15%',
+ width: '43%',
+ height: '69%',
+ transform: 'rotate(-5deg)',
+ backgroundColor: CARD_BG,
+ borderRadius: CARD_RADIUS,
+ boxShadow: BACK_SHADOW,
+ }}
+ >
+ <div
+ className="flex items-center"
+ style={{
+ gap: '1.6cqw',
+ padding: '3.2cqw 3.6cqw',
+ borderBottom: `1px solid ${HAIRLINE}`,
+ }}
+ >
+ <Code
+ style={{ width: '3.4cqw', height: '3.4cqw', color: 'var(--slide-accent)' }}
+ strokeWidth={2}
+ aria-hidden="true"
+ />
+ <span
+ style={{
+ fontSize: '2.6cqw',
+ fontWeight: 600,
+ color: 'var(--slide-muted)',
+ fontFamily: 'var(--font-geist-mono, ui-monospace, monospace)',
+ }}
+ >
+ auth.ts
+ </span>
+ </div>
+
+ <div className="flex flex-1 flex-col" style={{ padding: '3.6cqw', gap: '2.4cqw' }}>
+ <CodeLine segs={[{ w: '14%', accent: true }, { w: '30%' }, { w: '20%' }]} />
+ <CodeLine indent="4cqw" segs={[{ w: '22%', accent: true }, { w: '40%' }]} />
+ <CodeLine indent="4cqw" segs={[{ w: '34%' }, { w: '18%', accent: true }]} />
+ <CodeLine indent="4cqw" segs={[{ w: '16%', accent: true }, { w: '24%' }, { w: '14%' }]} />
+ <CodeLine segs={[{ w: '10%' }]} />
+ </div>
+ </div>
+ );
+}
+
+function SpecCard() {
+ return (
+ <div
+ className="absolute flex flex-col overflow-hidden"
+ style={{
+ left: '44%',
+ top: '11%',
+ width: '47%',
+ height: '79%',
+ padding: '4.4cqw',
+ transform: 'rotate(3.5deg)',
+ backgroundColor: CARD_BG,
+ borderRadius: CARD_RADIUS,
+ boxShadow: FRONT_SHADOW,
+ }}
+ >
+ <div
+ style={{
+ fontSize: '2.2cqw',
+ fontWeight: 600,
+ letterSpacing: '0.22em',
+ color: 'var(--slide-muted)',
+ }}
+ >
+ SPEC
+ </div>
+ <div
+ style={{
+ marginTop: '1.6cqw',
+ fontSize: '5.4cqw',
+ fontWeight: 600,
+ lineHeight: 1.05,
+ letterSpacing: '-0.02em',
+ color: 'color-mix(in srgb, var(--slide-text) 88%, transparent)',
+ }}
+ >
+ Auth service
+ </div>
+
+ <div className="flex flex-col" style={{ marginTop: '3.4cqw', gap: '2.2cqw' }}>
+ <SkeletonLine width="100%" delay="0s" />
+ <SkeletonLine width="88%" delay="0.7s" />
+ <SkeletonLine width="94%" delay="1.4s" />
+ </div>
+
+ <div className="flex-1" />
+
+ <div className="flex items-center" style={{ gap: '2cqw' }}>
+ <div className="flex items-center">
+ <div
+ className="flex shrink-0 items-center justify-center rounded-full"
+ style={{
+ width: '5.6cqw',
+ height: '5.6cqw',
+ backgroundColor: 'var(--color-orange-light)',
+ color: '#b45309',
+ border: '0.5cqw solid var(--slide-bg-elevated)',
+ fontSize: '2.4cqw',
+ fontWeight: 600,
+ }}
+ >
+ S
+ </div>
+ <div
+ className="flex shrink-0 items-center justify-center rounded-full"
+ style={{
+ width: '5.6cqw',
+ height: '5.6cqw',
+ marginLeft: '-1.6cqw',
+ backgroundColor: 'var(--color-crystal-blue)',
+ color: 'var(--color-azure-blue)',
+ border: '0.5cqw solid var(--slide-bg-elevated)',
+ }}
+ >
+ <Sparkles
+ style={{ width: '3cqw', height: '3cqw' }}
+ strokeWidth={2.2}
+ aria-hidden="true"
+ />
+ </div>
+ </div>
+ <span style={{ fontSize: '2.2cqw', whiteSpace: 'nowrap', color: 'var(--slide-muted)' }}>
+ You and your agents
+ </span>
+ </div>
+ </div>
+ );
+}
+
+export function EngSpecsGraphic() {
+ return (
+ <div className="@container relative h-full w-full overflow-hidden" aria-hidden="true">
+ <style>{`
+ @keyframes ok-spec-shimmer {
+ 0% { transform: translateX(-160%); }
+ 45% { transform: translateX(360%); }
+ 100% { transform: translateX(360%); }
+ }
+ .ok-spec-shimmer { animation: ok-spec-shimmer 5.5s ease-in-out infinite; }
+ @media (prefers-reduced-motion: reduce) {
+ .ok-spec-shimmer { animation: none !important; }
+ }
+ `}</style>
+
+ <BackgroundRings />
+ <CodeCard />
+ <SpecCard />
+ </div>
+ );
+}
diff --git a/docs/src/app/(home)/sections/knowledge-base-graphic.tsx b/docs/src/app/(home)/sections/knowledge-base-graphic.tsx
new file mode 100644
index 000000000..112feb5b4
--- /dev/null
+++ b/docs/src/app/(home)/sections/knowledge-base-graphic.tsx
@@ -0,0 +1,248 @@
+import { Sparkles } from 'lucide-react';
+import type { CSSProperties } from 'react';
+
+const RINGS = [56, 82, 108] as const;
+const RING_CENTER = { x: 80, y: 45 };
+
+const CARD_BG = 'var(--slide-bg-elevated)';
+const CARD_RADIUS = '3.6cqw';
+const BACK_SHADOW = '0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 18px -8px rgba(15, 23, 42, 0.12)';
+const FRONT_SHADOW = '0 1px 3px rgba(15, 23, 42, 0.07), 0 16px 34px -10px rgba(15, 23, 42, 0.18)';
+const MUTED_FILL = 'color-mix(in srgb, var(--slide-muted) 14%, transparent)';
+
+type Avatar = { label?: string; agent?: boolean; bg: string; fg: string };
+
+const AVATARS: Avatar[] = [
+ { label: 'M', bg: '#f0ece3', fg: '#78716c' },
+ { label: 'J', bg: 'var(--color-orange-light)', fg: '#b45309' },
+ { agent: true, bg: 'var(--color-crystal-blue)', fg: 'var(--color-azure-blue)' },
+ { label: 'K', bg: 'var(--color-purple-light)', fg: '#6d28d9' },
+];
+
+function BackgroundRings() {
+ return (
+ <svg
+ className="absolute inset-0 h-full w-full"
+ viewBox="0 0 160 90"
+ preserveAspectRatio="xMidYMid slice"
+ aria-hidden="true"
+ >
+ {RINGS.map((r) => (
+ <circle
+ key={r}
+ cx={RING_CENTER.x}
+ cy={RING_CENTER.y}
+ r={r}
+ fill="none"
+ style={{ stroke: 'color-mix(in srgb, var(--slide-text) 10%, transparent)' }}
+ strokeWidth={1}
+ strokeDasharray="1.5 4"
+ vectorEffect="non-scaling-stroke"
+ />
+ ))}
+ </svg>
+ );
+}
+
+function CardSkeletonLine({ width, delay }: { width: string; delay: string }) {
+ return (
+ <div
+ className="relative overflow-hidden"
+ style={{ height: '2.1cqw', width, borderRadius: '9999px', backgroundColor: MUTED_FILL }}
+ >
+ <div
+ className="ok-kb-shimmer absolute inset-y-0"
+ style={{
+ width: '50%',
+ animationDelay: delay,
+ background:
+ 'linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%)',
+ }}
+ />
+ </div>
+ );
+}
+
+function Avatars() {
+ return (
+ <div className="flex items-center">
+ {AVATARS.map((a, i) => (
+ <div
+ // biome-ignore lint/suspicious/noArrayIndexKey: static roster
+ key={i}
+ className="flex shrink-0 items-center justify-center rounded-full"
+ style={{
+ width: '5.8cqw',
+ height: '5.8cqw',
+ marginLeft: i === 0 ? 0 : '-1.7cqw',
+ backgroundColor: a.bg,
+ color: a.fg,
+ border: '0.5cqw solid var(--slide-bg-elevated)',
+ fontSize: '2.5cqw',
+ fontWeight: 600,
+ }}
+ >
+ {a.agent ? (
+ <Sparkles
+ style={{ width: '3.1cqw', height: '3.1cqw' }}
+ strokeWidth={2.2}
+ aria-hidden="true"
+ />
+ ) : (
+ a.label
+ )}
+ </div>
+ ))}
+ </div>
+ );
+}
+
+function BackCard({
+ title,
+ align,
+ style,
+}: {
+ title: string;
+ align: 'top' | 'bottom';
+ style: CSSProperties;
+}) {
+ return (
+ <div
+ className={`absolute flex flex-col overflow-hidden ${align === 'bottom' ? 'justify-end' : 'justify-start'}`}
+ style={style}
+ >
+ <div
+ style={{
+ padding: '4.5cqw',
+ fontSize: '3.2cqw',
+ fontWeight: 600,
+ color:
+ align === 'bottom'
+ ? 'color-mix(in srgb, var(--slide-text) 55%, transparent)'
+ : 'var(--slide-muted)',
+ }}
+ >
+ {title}
+ </div>
+ </div>
+ );
+}
+
+export function KnowledgeBaseGraphic() {
+ return (
+ <div className="@container relative h-full w-full overflow-hidden" aria-hidden="true">
+ <style>{`
+ @keyframes ok-kb-shimmer {
+ 0% { transform: translateX(-160%); }
+ 45% { transform: translateX(360%); }
+ 100% { transform: translateX(360%); }
+ }
+ .ok-kb-shimmer { animation: ok-kb-shimmer 5.5s ease-in-out infinite; }
+ @media (prefers-reduced-motion: reduce) {
+ .ok-kb-shimmer { animation: none !important; }
+ }
+ `}</style>
+
+ <BackgroundRings />
+
+ <BackCard
+ title="Oncall guide"
+ align="top"
+ style={{
+ left: '30%',
+ top: '-8%',
+ width: '50%',
+ height: '30%',
+ transform: 'rotate(-3.5deg)',
+ backgroundColor: CARD_BG,
+ borderRadius: CARD_RADIUS,
+ boxShadow: BACK_SHADOW,
+ }}
+ />
+
+ <BackCard
+ title="Incident postmortem"
+ align="bottom"
+ style={{
+ left: '15%',
+ top: '74%',
+ width: '50%',
+ height: '30%',
+ transform: 'rotate(3.2deg)',
+ backgroundColor: CARD_BG,
+ borderRadius: CARD_RADIUS,
+ boxShadow: BACK_SHADOW,
+ }}
+ />
+
+ <div
+ className="absolute flex flex-col overflow-hidden"
+ style={{
+ left: '22%',
+ top: '11%',
+ width: '56%',
+ height: '78%',
+ padding: '4.5cqw',
+ transform: 'rotate(-1.2deg)',
+ backgroundColor: CARD_BG,
+ borderRadius: CARD_RADIUS,
+ boxShadow: FRONT_SHADOW,
+ }}
+ >
+ <div
+ style={{
+ fontSize: '2.2cqw',
+ fontWeight: 600,
+ letterSpacing: '0.22em',
+ color: 'var(--slide-muted)',
+ }}
+ >
+ DOCS
+ </div>
+ <div
+ style={{
+ marginTop: '1.8cqw',
+ fontSize: '5.6cqw',
+ fontWeight: 600,
+ lineHeight: 1.05,
+ letterSpacing: '-0.02em',
+ color: 'color-mix(in srgb, var(--slide-text) 88%, transparent)',
+ }}
+ >
+ Deploy runbook
+ </div>
+ <div style={{ marginTop: '1.4cqw', fontSize: '2.7cqw', color: 'var(--slide-muted)' }}>
+ Updated 2 hours ago
+ </div>
+
+ <div className="flex flex-col" style={{ marginTop: '3.4cqw', gap: '2.1cqw' }}>
+ <CardSkeletonLine width="100%" delay="0s" />
+ <CardSkeletonLine width="62%" delay="0.7s" />
+ </div>
+
+ <div className="flex-1" />
+
+ <div
+ style={{
+ height: '1px',
+ width: '100%',
+ backgroundColor: 'color-mix(in srgb, var(--slide-text) 8%, transparent)',
+ }}
+ />
+ <div className="flex items-center" style={{ marginTop: '3cqw' }}>
+ <Avatars />
+ <span
+ style={{
+ marginLeft: '2cqw',
+ fontSize: '2.2cqw',
+ whiteSpace: 'nowrap',
+ color: 'var(--slide-muted)',
+ }}
+ >
+ Kept current by 12 people
+ </span>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/app/(home)/sections/put-it-to-work.tsx b/docs/src/app/(home)/sections/put-it-to-work.tsx
index ca21f3282..54b9e4be3 100644
--- a/docs/src/app/(home)/sections/put-it-to-work.tsx
+++ b/docs/src/app/(home)/sections/put-it-to-work.tsx
@@ -1,83 +1,54 @@
-import { BookOpen, Code, type LucideIcon, Sparkle } from 'lucide-react';
+import type { ReactNode } from 'react';
+import { Section } from '../section';
import SectionHeading from '../section-heading';
+import { AgentBrainGraphic } from './agent-brain-graphic';
+import { EngSpecsGraphic } from './eng-specs-graphic';
+import { KnowledgeBaseGraphic } from './knowledge-base-graphic';
type UseCaseCard = {
- icon: LucideIcon;
+ visual: ReactNode;
title: string;
description: string;
};
const cards: UseCaseCard[] = [
{
- icon: Sparkle,
+ visual: <AgentBrainGraphic />,
title: 'Agent brain',
description:
'A shared knowledge base your agents read from and write to — the persistent memory behind every session.',
},
{
- icon: Code,
+ visual: <EngSpecsGraphic />,
title: 'Engineering specs',
description:
'Specs, RFCs and runbooks living next to the code, edited by humans and coding agents in the same loop.',
},
{
- icon: BookOpen,
+ visual: <KnowledgeBaseGraphic />,
title: 'Knowledge base',
description:
- 'A living wiki for your team — docs, notes and decisions in plain markdown, kept current by everyone who works on them.',
+ 'A living wiki for your team — docs, notes, and decisions in plain markdown, kept current by everyone who works on them.',
},
];
-function CornerSquare({ className }: { className: string }) {
- return (
- <span
- aria-hidden="true"
- className={`pointer-events-none absolute hidden size-1.5 bg-border lg:block ${className}`}
- />
- );
-}
-
-const dashedExtensions: React.CSSProperties = {
- backgroundImage:
- 'repeating-linear-gradient(to right, var(--border) 0 8px, transparent 8px 14px), repeating-linear-gradient(to right, var(--border) 0 8px, transparent 8px 14px)',
- backgroundPosition: 'top left, bottom left',
- backgroundSize: '100% 1px, 100% 1px',
- backgroundRepeat: 'no-repeat, no-repeat',
-};
-
export function PutItToWork() {
return (
- <section className="w-full py-16 lg:py-28">
- <div className="container px-4 sm:px-11">
- <SectionHeading tag="Use cases">Put it to work.</SectionHeading>
- </div>
- <div className="relative mt-16 w-full" style={dashedExtensions}>
- <div className="container px-4 sm:px-11">
- <div className="relative border border-border">
- <div className="grid grid-cols-1 divide-y divide-border lg:grid-cols-3 lg:divide-x lg:divide-y-0">
- {cards.map(({ icon: Icon, title, description }) => (
- <article
- key={title}
- className="flex min-h-[320px] flex-col justify-between gap-16 p-8 md:p-10"
- >
- <Icon className="size-6 text-slide-muted" strokeWidth={1.5} aria-hidden="true" />
- <p className="text-lg leading-relaxed text-slide-muted">
- <span className="font-semibold text-primary">{title}.</span> {description}
- </p>
- </article>
- ))}
+ <Section className="container">
+ <SectionHeading tag="Use cases">Put it to work.</SectionHeading>
+ <div className="mt-16 grid grid-cols-1 gap-y-12 lg:grid-cols-3 lg:gap-8">
+ {cards.map((card) => (
+ <article key={card.title} className="flex flex-col gap-4">
+ <div className="relative aspect-video w-full overflow-hidden rounded-2xl bg-slide-bg">
+ {card.visual}
+ </div>
+ <div className="flex flex-col gap-1.5">
+ <h3 className="text-lg font-semibold text-slide-text">{card.title}</h3>
+ <p className="text-base text-slide-muted">{card.description}</p>
</div>
- <CornerSquare className="left-0 top-0 -translate-x-1/2 -translate-y-1/2" />
- <CornerSquare className="left-1/3 top-0 -translate-x-1/2 -translate-y-1/2" />
- <CornerSquare className="left-2/3 top-0 -translate-x-1/2 -translate-y-1/2" />
- <CornerSquare className="right-0 top-0 translate-x-1/2 -translate-y-1/2" />
- <CornerSquare className="left-0 bottom-0 -translate-x-1/2 translate-y-1/2" />
- <CornerSquare className="left-1/3 bottom-0 -translate-x-1/2 translate-y-1/2" />
- <CornerSquare className="left-2/3 bottom-0 -translate-x-1/2 translate-y-1/2" />
- <CornerSquare className="right-0 bottom-0 translate-x-1/2 translate-y-1/2" />
- </div>
- </div>
+ </article>
+ ))}
</div>
- </section>
+ </Section>
);
}
diff --git a/docs/src/app/(home)/sections/rich-editing.tsx b/docs/src/app/(home)/sections/rich-editing.tsx
index d29ad1c01..b2efb98f7 100644
--- a/docs/src/app/(home)/sections/rich-editing.tsx
+++ b/docs/src/app/(home)/sections/rich-editing.tsx
@@ -39,8 +39,8 @@ function FeatureCard({
children: React.ReactNode;
}) {
return (
- <div className="grid row-span-2 grid-rows-subgrid">
- <MockupCard className="md:min-h-[220px] lg:min-h-[260px] xl:min-h-[320px] flex items-center justify-center">
+ <div className="flex flex-col gap-4 lg:grid lg:row-span-2 lg:grid-rows-subgrid">
+ <MockupCard className="lg:min-h-[260px] xl:min-h-[320px] flex items-center justify-center">
{children}
</MockupCard>
<div className="flex flex-col gap-1.5">
@@ -606,7 +606,7 @@ export function RichEditing() {
A canvas for your knowledge.
</SectionHeading>
- <div className="grid grid-cols-1 md:grid-cols-3 grid-rows-[auto_auto] gap-x-6 gap-y-5 lg:gap-x-8">
+ <div className="grid grid-cols-1 gap-y-12 lg:grid-cols-3 lg:grid-rows-[auto_auto] lg:gap-x-8 lg:gap-y-5">
<FeatureCard title="Rich elements" description="Tables, images, code, diagrams, and more.">
<BlockComponents />
</FeatureCard>