From ec815475afe843fed16ec24a1dd6d46480f9529f Mon Sep 17 00:00:00 2001 From: jyswee Date: Thu, 23 Jul 2026 22:11:41 +0000 Subject: [PATCH] Seed: real-estate template (18 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..5757e61 --- /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, Home } 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: "Properties", to: "/properties" }, + { label: "Agents", to: "/agents" }, + { label: "About", to: "/about" }, + { label: "Contact", to: "/contact" }, + ]; + + return ( +
+
+ + + Prestige Realty + + +
+ + +
+ + + + + + + + +
+
+ ); +} \ No newline at end of file