mirror of
https://github.com/snowykami/web-tools.git
synced 2025-09-03 19:56:27 +00:00
Some checks failed
Build and Push Container Image, Deploy to Host / build-and-push-and-deploy (push) Has been cancelled
- Implemented MtrDisplayBoard component to show train schedules with weather information. - Created MtrTrainInfo component to manage state and render MtrDisplayBoard. - Added ScreenshotTaker component for downloading screenshots of the display board. - Introduced theme toggle functionality with ThemeToggle component. - Developed various UI components including Button, Card, ColorPicker, DropdownMenu, Input, Label, Popover, Select, Separator, Switch, Tabs, and Textarea. - Added utility functions for class name merging and tool definitions.
21 lines
619 B
TypeScript
21 lines
619 B
TypeScript
import Link from "next/link";
|
|
import { ThemeToggle } from "./theme-toggle";
|
|
|
|
export function Navbar() {
|
|
return (
|
|
<header className="sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
|
|
<div className="container flex h-14 px-4 items-center">
|
|
<div className="flex-1" />
|
|
<div className="flex-1 text-center">
|
|
<Link href="/" className="font-bold">
|
|
Web Tools
|
|
</Link>
|
|
</div>
|
|
<div className="flex flex-1 justify-end">
|
|
<ThemeToggle />
|
|
</div>
|
|
</div>
|
|
</header>
|
|
);
|
|
}
|