Skip to content

Commit 52ad4a9

Browse files
ui demo cleanup
1 parent a58f7df commit 52ad4a9

File tree

8 files changed

+167
-237
lines changed

8 files changed

+167
-237
lines changed

app/ui/_container.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
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 (
1011
<div
1112
className={cn(
12-
'bg-card border-input relative space-y-4 rounded-lg border p-4 drop-shadow-lg/5',
13+
'bg-muted/20 border-input relative space-y-2 rounded-lg border p-2 drop-shadow-lg/5',
1314
className
1415
)}
1516
>
16-
{children}
17+
<h3 className="text-foreground text-lg font-medium">
18+
<span className="font-mono">&lt;{componentName}/&gt;</span>
19+
</h3>
20+
<div className="bg-background border-input space-y-2 rounded border p-4">{children}</div>
1721
</div>
1822
);
1923
}

app/ui/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default async function ComponentsLayout({ children }: { children: React.R
1414
A quick start UI overview for the LiveKit Voice Assistant.
1515
</p>
1616
</header>
17+
1718
<RoomProvider appConfig={appConfig}>
1819
<main className="flex w-full flex-1 flex-col items-stretch gap-8">{children}</main>
1920
</RoomProvider>

0 commit comments

Comments
 (0)