Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 0 additions & 220 deletions CLAUDE.md

This file was deleted.

62 changes: 3 additions & 59 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@

import Link from "next/link";
import { useState } from "react";
import {
NavigationMenu,
NavigationMenuItem,
NavigationMenuLink,
NavigationMenuList,
} from "@/components/ui/navigation-menu";
import { cn } from "../lib/utils";
import { Navigation } from "@/components/Navigation";

export function Header() {
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
Expand All @@ -21,12 +15,6 @@ export function Header() {
setIsMobileMenuOpen(false);
};

const navigationItems = [
{ href: "/plan", label: "The Plan" },
{ href: "/co-creators", label: "Co-Creators" },
{ href: "/research", label: "Research" },
];

return (
<header className="fixed top-0 w-full z-50 bg-white/95 backdrop-blur supports-[backdrop-filter]:bg-white/90 border-b border-gray-200">
<div className="max-w-7xl mx-auto px-4">
Expand All @@ -37,30 +25,7 @@ export function Header() {

{/* Desktop Navigation */}
<div className="hidden lg:flex items-center gap-2">
<NavigationMenu>
<NavigationMenuList>
{navigationItems.map(item => (
<NavigationMenuItem key={item.href}>
<NavigationMenuLink
href={item.href}
className="text-gray-700 hover:text-gray-900 hover:bg-gray-100 px-4 py-2 text-sm font-medium transition-colors rounded-md"
>
{item.label}
</NavigationMenuLink>
</NavigationMenuItem>
))}
</NavigationMenuList>
</NavigationMenu>

<Link
href="/help"
className={cn(
"bg-brand-dark-green text-white cursor-pointer px-4 py-2",
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
)}
>
Get help now
</Link>
<Navigation />
</div>

{/* Mobile Hamburger Button */}
Expand Down Expand Up @@ -94,28 +59,7 @@ export function Header() {
}`}
>
<nav className="py-4 space-y-2">
{navigationItems.map(item => (
<Link
key={item.href}
href={item.href}
className="block text-gray-700 hover:text-gray-900 hover:bg-gray-100 px-4 py-3 text-sm font-medium transition-colors rounded-md"
onClick={closeMobileMenu}
>
{item.label}
</Link>
))}
<div className="px-4 pt-2">
<Link
href="/help"
onClick={closeMobileMenu}
className={cn(
"bg-brand-dark-green text-white cursor-pointer px-4 py-2",
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
)}
>
Get help now
</Link>
</div>
<Navigation isMobile={true} onLinkClick={closeMobileMenu} />
</nav>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Link from "next/link";
import { Button } from "@/components/ui/button";

const navigationItems = [
{ href: "/plan", label: "The Plan" },
{ href: "#the-plan", label: "The Plan" },
{ href: "#data-trends", label: "Data & Trends" },
{ href: "#community-spotlight", label: "Community Spotlight" },
{ href: "#about", label: "About" },
Expand Down