From 64df9b2f47cea18abd8d3f7c3e958a5623d7e833 Mon Sep 17 00:00:00 2001 From: jyswee Date: Thu, 23 Jul 2026 22:14:01 +0000 Subject: [PATCH] Seed: travel template (16 files) --- src/components/Header.tsx | 62 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/components/Header.tsx diff --git a/src/components/Header.tsx b/src/components/Header.tsx new file mode 100644 index 0000000..071084c --- /dev/null +++ b/src/components/Header.tsx @@ -0,0 +1,62 @@ +import { useState, useEffect } from "react"; +import { Link } from "react-router-dom"; +import { Button } from "@/components/ui/button"; +import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet"; +import { Menu, Globe } from "lucide-react"; +import { ThemeToggle } from "@/components/ThemeToggle"; + +export default function Header() { + const [open, setOpen] = useState(false); + const [scrolled, setScrolled] = useState(false); + + useEffect(() => { + const fn = () => setScrolled(window.scrollY > 20); + window.addEventListener("scroll", fn); + return () => window.removeEventListener("scroll", fn); + }, []); + + const links = [ + { label: "Destinations", to: "/destinations" }, + { label: "Packages", to: "/#packages" }, + { label: "About", to: "/#about" }, + { label: "Contact", to: "/contact" }, + ]; + + return ( +
+
+ + + Wanderlust Travels + + +
+ + +
+ + + + + + + + +
+
+ ); +} \ No newline at end of file