Skip to content

Commit 23a8054

Browse files
ui demo cleanup
1 parent a58f7df commit 23a8054

File tree

8 files changed

+191
-252
lines changed

8 files changed

+191
-252
lines changed

app/ui/_container.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
import { cn } from '@/lib/utils';
22

33
interface ContainerProps {
4+
componentName?: string;
45
children: React.ReactNode;
56
className?: string;
67
}
78

8-
export function Container({ children, className }: ContainerProps) {
9+
export function Container({ componentName, children, className }: ContainerProps) {
910
return (
10-
<div
11-
className={cn(
12-
'bg-card border-input relative space-y-4 rounded-lg border p-4 drop-shadow-lg/5',
13-
className
14-
)}
15-
>
16-
{children}
11+
<div className={cn('space-y-4', className)}>
12+
<h3 className="text-foreground text-2xl font-bold">
13+
<span className="tracking-tight">{componentName}</span>
14+
</h3>
15+
<div className="bg-background border-input space-y-4 rounded-3xl border p-8 drop-shadow-lg/5">
16+
{children}
17+
</div>
1718
</div>
1819
);
1920
}

app/ui/layout.tsx

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,23 @@ export default async function ComponentsLayout({ children }: { children: React.R
77
const hdrs = await headers();
88
const appConfig = await getAppConfig(hdrs);
99
return (
10-
<div className="mx-auto min-h-svh max-w-3xl space-y-8 px-4 py-8">
11-
<header className="flex flex-col gap-1">
12-
<h1 className="text-3xl font-bold tracking-tight">Quick Start UI overview</h1>
13-
<p className="text-muted-foreground">
14-
A quick start UI overview for the LiveKit Voice Assistant.
15-
</p>
16-
</header>
17-
<RoomProvider appConfig={appConfig}>
18-
<main className="flex w-full flex-1 flex-col items-stretch gap-8">{children}</main>
19-
</RoomProvider>
10+
<div className="bg-muted/20 min-h-svh p-8">
11+
<div className="mx-auto max-w-3xl space-y-8">
12+
<header className="space-y-2">
13+
<h1 className="text-5xl font-bold tracking-tight">LiveKit UI</h1>
14+
<p className="text-muted-foreground max-w-prose text-balance">
15+
A set of beautifully designed components that you can customize, extend, and build on.
16+
</p>
17+
<p className="text-muted-foreground max-w-prose text-balance">
18+
Built with Shadcn conventions.
19+
</p>
20+
<p className="text-foreground max-w-prose text-balance">Open Source. Open Code.</p>
21+
</header>
22+
23+
<RoomProvider appConfig={appConfig}>
24+
<main className="space-y-20">{children}</main>
25+
</RoomProvider>
26+
</div>
2027
</div>
2128
);
2229
}

0 commit comments

Comments
 (0)