Download src/components/mobile-nav.tsx from NAP1320/RotNot: direct link, hf CLI and curl.
- Browser
- Download file 908 Bytes
-
https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/src/components/mobile-nav.tsx
- Command line
-
hf download hf://spaces/NAP1320/RotNot/src/components/mobile-nav.tsx
-
curl -L -o mobile-nav.tsx https://huggingface.co/spaces/NAP1320/RotNot/resolve/main/src/components/mobile-nav.tsx
908 Bytes
| "use client"; | |
| import { Brain } from "lucide-react"; | |
| /** | |
| * MobileNav — top bar shown on small screens (md:hidden). | |
| * Navigation is handled by BottomTabNav; this just provides the app | |
| * branding header so content doesn't sit flush against the status bar. | |
| */ | |
| export function MobileNav() { | |
| return ( | |
| <header | |
| className="md:hidden fixed top-0 left-0 right-0 z-40 flex items-center px-4 py-3 border-b" | |
| style={{ | |
| background: "var(--surface-1)", | |
| borderColor: "rgba(255,255,255,0.06)", | |
| paddingTop: "calc(0.75rem + env(safe-area-inset-top))", | |
| }} | |
| > | |
| <div className="flex items-center gap-2"> | |
| <Brain size={20} style={{ color: "var(--primary)" }} /> | |
| <span | |
| className="font-bold text-base tracking-tight" | |
| style={{ fontFamily: "var(--font-mono)" }} | |
| > | |
| RotNot | |
| </span> | |
| </div> | |
| </header> | |
| ); | |
| } | |