Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

[Design system] Update homepage links (#26706)

Jonathan Summers-Muir0b46eed4c1a2
diff --git a/apps/design-system/app/(app)/page.tsx b/apps/design-system/app/(app)/page.tsx
index 7d22b66af8b..b87bd384d01 100644
--- a/apps/design-system/app/(app)/page.tsx
+++ b/apps/design-system/app/(app)/page.tsx
@@ -1,6 +1,7 @@
import { DesignSystemMarks } from '@/components/design-system-marks'
import { HomepageSvgHandler } from '@/components/homepage-svg-handler'
import Image from 'next/image'
+import Link from 'next/link'
import { Separator } from 'ui'
export default function Home() {
@@ -22,90 +23,93 @@ export default function Home() {
{/* Homepage items */}
<div className="grid grid-cols-2 gap-10">
- <div className="px-10 py-8 min-h-[18rem] flex flex-col justify-between bg-surface-75/50 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
- <HomepageSvgHandler name="atoms-illustration" />
- <div>
- <h3 className="font-medium text-foreground">Atom components</h3>
- <p className="text-sm text-foreground-light">Building blocks of User interfaces</p>
+ <Link href="/docs/components/atom-components">
+ <div className="px-10 py-8 min-h-[18rem] flex flex-col justify-between bg-surface-75/50 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
+ <HomepageSvgHandler name="atoms-illustration" />
+ <div>
+ <h3 className="font-medium text-foreground">Atom components</h3>
+ <p className="text-sm text-foreground-light">Building blocks of User interfaces</p>
+ </div>
</div>
- </div>
- <div className="px-10 py-8 min-h-[18rem] flex flex-col justify-between bg-surface-75/50 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
- <HomepageSvgHandler name="fragments-illustration" />
- <div>
- <h3 className="font-medium text-foreground">Fragment components</h3>
- <p className="text-sm text-foreground-light">Components assembled from Atoms</p>
+ </Link>
+ <Link href="/docs/components/fragment-components">
+ <div className="px-10 py-8 min-h-[18rem] flex flex-col justify-between bg-surface-75/50 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
+ <HomepageSvgHandler name="fragments-illustration" />
+ <div>
+ <h3 className="font-medium text-foreground">Fragment components</h3>
+ <p className="text-sm text-foreground-light">Components assembled from Atoms</p>
+ </div>
</div>
- </div>
+ </Link>
+ <Link href="/docs/color-usage">
+ <div className="px-10 py-8 min-h-[18rem] flex flex-col justify-between bg-surface-75/50 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
+ <div className="flex flex-col gap-1">
+ <div className="flex flex-row gap-0.5">
+ <div className="w-3 h-16 rounded border bg-foreground"></div>
+ <div className="w-3 h-16 rounded border bg-foreground-light"></div>
+ <div className="w-3 h-16 rounded border bg-foreground-lighter"></div>
+ <div className="w-3 h-16 rounded border bg-foreground-muted"></div>
+ <div className="w-3 h-16 rounded border"></div>
- <div className="px-10 py-8 min-h-[18rem] flex flex-col justify-between bg-surface-75/50 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
- <div className="flex flex-col gap-1">
- <div className="flex flex-row gap-0.5">
- <div className="w-3 h-16 rounded border bg-foreground"></div>
- <div className="w-3 h-16 rounded border bg-foreground-light"></div>
- <div className="w-3 h-16 rounded border bg-foreground-lighter"></div>
- <div className="w-3 h-16 rounded border bg-foreground-muted"></div>
- <div className="w-3 h-16 rounded border"></div>
+ <div className="w-3 h-16 rounded border bg"></div>
+ <div className="w-3 h-16 rounded border bg-200"></div>
+ <div className="w-3 h-16 rounded border bg-surface-75"></div>
+ <div className="w-3 h-16 rounded border bg-surface-100"></div>
+ <div className="w-3 h-16 rounded border bg-surface-200"></div>
+ <div className="w-3 h-16 rounded border bg-surface-300"></div>
+ <div className="w-3 h-16 rounded border"></div>
- <div className="w-3 h-16 rounded border bg"></div>
- <div className="w-3 h-16 rounded border bg-200"></div>
- <div className="w-3 h-16 rounded border bg-surface-75"></div>
- <div className="w-3 h-16 rounded border bg-surface-100"></div>
- <div className="w-3 h-16 rounded border bg-surface-200"></div>
- <div className="w-3 h-16 rounded border bg-surface-300"></div>
- <div className="w-3 h-16 rounded border"></div>
+ <div className="w-3 h-16 rounded border bg-brand-200"></div>
+ <div className="w-3 h-16 rounded border bg-brand-300"></div>
+ <div className="w-3 h-16 rounded border bg-brand-400"></div>
+ <div className="w-3 h-16 rounded border bg-brand-500"></div>
+ <div className="w-3 h-16 rounded border bg-brand"></div>
+ <div className="w-3 h-16 rounded border bg-brand-600"></div>
+ <div className="w-3 h-16 rounded border"></div>
- <div className="w-3 h-16 rounded border bg-brand-200"></div>
- <div className="w-3 h-16 rounded border bg-brand-300"></div>
- <div className="w-3 h-16 rounded border bg-brand-400"></div>
- <div className="w-3 h-16 rounded border bg-brand-500"></div>
- <div className="w-3 h-16 rounded border bg-brand"></div>
- <div className="w-3 h-16 rounded border bg-brand-600"></div>
- <div className="w-3 h-16 rounded border"></div>
+ <div className="w-3 h-16 rounded border bg-warning-200"></div>
+ <div className="w-3 h-16 rounded border bg-warning-300"></div>
+ <div className="w-3 h-16 rounded border bg-warning-400"></div>
+ <div className="w-3 h-16 rounded border bg-warning-500"></div>
+ <div className="w-3 h-16 rounded border bg-warning"></div>
+ <div className="w-3 h-16 rounded border bg-warning-600"></div>
+ <div className="w-3 h-16 rounded border"></div>
- <div className="w-3 h-16 rounded border bg-warning-200"></div>
- <div className="w-3 h-16 rounded border bg-warning-300"></div>
- <div className="w-3 h-16 rounded border bg-warning-400"></div>
- <div className="w-3 h-16 rounded border bg-warning-500"></div>
- <div className="w-3 h-16 rounded border bg-warning"></div>
- <div className="w-3 h-16 rounded border bg-warning-600"></div>
- <div className="w-3 h-16 rounded border"></div>
-
- <div className="w-3 h-16 rounded border bg-destructive-200"></div>
- <div className="w-3 h-16 rounded border bg-destructive-300"></div>
- <div className="w-3 h-16 rounded border bg-destructive-400"></div>
- <div className="w-3 h-16 rounded border bg-destructive-500"></div>
- <div className="w-3 h-16 rounded border bg-destructive"></div>
- <div className="w-3 h-16 rounded border bg-destructive-600"></div>
- <div className="w-3 h-16 rounded border"></div>
+ <div className="w-3 h-16 rounded border bg-destructive-200"></div>
+ <div className="w-3 h-16 rounded border bg-destructive-300"></div>
+ <div className="w-3 h-16 rounded border bg-destructive-400"></div>
+ <div className="w-3 h-16 rounded border bg-destructive-500"></div>
+ <div className="w-3 h-16 rounded border bg-destructive"></div>
+ <div className="w-3 h-16 rounded border bg-destructive-600"></div>
+ <div className="w-3 h-16 rounded border"></div>
+ </div>
+ </div>
+ <div>
+ <h3 className="font-medium text-foreground">Colors</h3>
+ <p className="text-sm text-foreground-light">Building blocks of User interfaces</p>
</div>
</div>
- <div>
- <h3 className="font-medium text-foreground">Colors</h3>
- <p className="text-sm text-foreground-light">Building blocks of User interfaces</p>
- </div>
- </div>
- <div className="px-10 py-8 min-h-[18rem] flex flex-col justify-between bg-surface-75/50 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
- <HomepageSvgHandler name="fragments-illustration" />
- <div>
- <h3 className="font-medium text-foreground">Theming</h3>
- <p className="text-sm text-foreground-light">Components assembled from Atoms</p>
- </div>
- </div>
+ </Link>
- <div className="px-10 py-8 min-h-[18rem] flex flex-col justify-between bg-surface-75/50 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
- <HomepageSvgHandler name="atoms-illustration" />
- <div>
- <h3 className="font-medium text-foreground">Background / Surfaces</h3>
- <p className="text-sm text-foreground-light">Building blocks of User interfaces</p>
+ <Link href="/docs/theming">
+ <div className="px-10 py-8 min-h-[18rem] flex flex-col justify-between bg-surface-75/50 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
+ <HomepageSvgHandler name="fragments-illustration" />
+ <div>
+ <h3 className="font-medium text-foreground">Theming</h3>
+ <p className="text-sm text-foreground-light">Components assembled from Atoms</p>
+ </div>
</div>
- </div>
- <div className="px-10 py-8 min-h-[18rem] flex flex-col justify-between bg-surface-75/50 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
- <HomepageSvgHandler name="fragments-illustration" />
- <div>
- <h3 className="font-medium text-foreground">Icons</h3>
- <p className="text-sm text-foreground-light">Components assembled from Atoms</p>
+ </Link>
+
+ <Link href="/docs/icons">
+ <div className="px-10 py-8 min-h-[18rem] flex flex-col justify-between bg-surface-75/50 hover:bg-overlay/50 hover:border-foreground-muted cursor-pointer transition-all border rounded-md">
+ <HomepageSvgHandler name="fragments-illustration" />
+ <div>
+ <h3 className="font-medium text-foreground">Icons</h3>
+ <p className="text-sm text-foreground-light">Components assembled from Atoms</p>
+ </div>
</div>
- </div>
+ </Link>
</div>
</div>
</main>
diff --git a/apps/design-system/config/docs.ts b/apps/design-system/config/docs.ts
index 5d56ad87a5b..97dd211b94b 100644
--- a/apps/design-system/config/docs.ts
+++ b/apps/design-system/config/docs.ts
@@ -72,6 +72,11 @@ export const docsConfig: DocsConfig = {
{
title: 'Fragment Components',
items: [
+ {
+ title: 'Introduction',
+ href: '/docs/components/fragment-components',
+ items: [],
+ },
{
title: 'Text Confirm Dialog',
href: '/docs/fragments/text-confirm-dialog',
@@ -87,6 +92,11 @@ export const docsConfig: DocsConfig = {
{
title: 'Atom Components',
items: [
+ {
+ title: 'Introduction',
+ href: '/docs/components/atom-components',
+ items: [],
+ },
{
title: 'Accordion',
href: '/docs/components/accordion',
diff --git a/apps/design-system/content/docs/components/atom-components.mdx b/apps/design-system/content/docs/components/atom-components.mdx
new file mode 100644
index 00000000000..8952b428085
--- /dev/null
+++ b/apps/design-system/content/docs/components/atom-components.mdx
@@ -0,0 +1,4 @@
+---
+title: Atom components
+description:
+---
diff --git a/apps/design-system/content/docs/components/fragment-components.mdx b/apps/design-system/content/docs/components/fragment-components.mdx
new file mode 100644
index 00000000000..1a924430a1f
--- /dev/null
+++ b/apps/design-system/content/docs/components/fragment-components.mdx
@@ -0,0 +1,4 @@
+---
+title: Fragment components
+description: ''
+---