Skip to content

Commit 7183cc9

Browse files
authored
Update layout.tsx to and improve GitHub link (#74)
- Added GitHub logo icon to the header. - Reorganized header content for improved layout and responsiveness, ensuring better alignment and spacing. - Updated the GitHub link to point directly to the Anam Demo in the Python examples GitHub repository.
1 parent 20938e2 commit 7183cc9

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

  • complex-agents/avatars/anam/frontend/app

complex-agents/avatars/anam/frontend/app/layout.tsx

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Public_Sans } from 'next/font/google';
22
import localFont from 'next/font/local';
33
import { headers } from 'next/headers';
4+
import { GithubLogoIcon } from '@phosphor-icons/react/dist/ssr';
45
import { ThemeProvider } from '@/components/app/theme-provider';
56
import { ThemeToggle } from '@/components/app/theme-toggle';
67
import { cn } from '@/lib/shadcn/utils';
@@ -98,18 +99,29 @@ export default async function RootLayout({ children }: RootLayoutProps) {
9899
className="hidden size-14 sm:size-26 dark:block"
99100
/>
100101
</a>
101-
<span className="text-foreground text-right font-mono text-[11px] font-bold tracking-wider uppercase md:text-xs">
102-
<span className="hidden sm:inline">Built with </span>
102+
<div className="text-foreground flex items-center gap-3 text-right font-mono text-[11px] font-bold tracking-wider uppercase md:text-xs">
103+
<span>
104+
<span className="hidden sm:inline">Built with </span>
105+
<a
106+
target="_blank"
107+
rel="noopener noreferrer"
108+
href="https://docs.livekit.io/agents"
109+
className="underline underline-offset-4"
110+
>
111+
<span className="sm:hidden">LiveKit docs</span>
112+
<span className="hidden sm:inline">LiveKit Agents</span>
113+
</a>
114+
</span>
103115
<a
104116
target="_blank"
105117
rel="noopener noreferrer"
106-
href="https://docs.livekit.io/agents"
107-
className="underline underline-offset-4"
118+
href="https://github.com/livekit-examples/python-agents-examples/tree/main/complex-agents/avatars/anam"
119+
aria-label="Anam GitHub repository"
120+
className="text-foreground/80 hover:text-foreground transition-colors"
108121
>
109-
<span className="sm:hidden">LiveKit docs</span>
110-
<span className="hidden sm:inline">LiveKit Agents</span>
122+
<GithubLogoIcon size={18} weight="fill" />
111123
</a>
112-
</span>
124+
</div>
113125
</header>
114126

115127
{children}

0 commit comments

Comments
 (0)