Skip to content

Commit a819d86

Browse files
committed
feat: playground update layout
1 parent 5be776d commit a819d86

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

playground/src/app/layout.tsx

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import type { Metadata } from 'next';
22
import { Geist, Geist_Mono } from 'next/font/google';
33
import '../css/globals.css';
4-
import { Card, Sonner } from 'soybean-react-ui';
4+
import Link from 'next/link';
5+
import { ButtonIcon, Card, Icon, Popover, Sonner } from 'soybean-react-ui';
6+
7+
import ThemeCustomize from '../components/ThemeCustomize';
8+
import config from '../config';
59

610
const geistSans = Geist({
711
subsets: ['latin'],
@@ -34,6 +38,36 @@ export default async function RootLayout({
3438
flexHeight
3539
className="h-full max-sm:h-auto"
3640
title="Soybean UI Components"
41+
extra={
42+
<div className="flex items-center gap-3">
43+
<Popover
44+
align="end"
45+
classNames={{ content: 'z-15' }}
46+
side="bottom"
47+
trigger={
48+
<ButtonIcon
49+
icon="lucide:swatch-book"
50+
size="lg"
51+
/>
52+
}
53+
>
54+
<ThemeCustomize />
55+
</Popover>
56+
57+
<ButtonIcon
58+
asChild
59+
size="lg"
60+
>
61+
<Link
62+
href={config.githubUrl}
63+
rel="noopener noreferrer"
64+
target="_blank"
65+
>
66+
<Icon icon="lucide:github" />
67+
</Link>
68+
</ButtonIcon>
69+
</div>
70+
}
3771
>
3872
{children}
3973
</Card>

0 commit comments

Comments
 (0)