2025-06-22 13:07:02 +02:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
import Link from "next/link";
|
|
|
|
|
import { Button } from "./ui/button";
|
|
|
|
|
import { ArrowRight } from "lucide-react";
|
|
|
|
|
import { HeaderBase } from "./header-base";
|
2025-06-26 01:08:25 +02:00
|
|
|
import Image from "next/image";
|
2025-06-25 22:58:16 +01:00
|
|
|
|
2025-06-22 13:07:02 +02:00
|
|
|
export function Header() {
|
|
|
|
|
const leftContent = (
|
2025-06-26 01:08:25 +02:00
|
|
|
<Link href="/" className="flex items-center gap-3">
|
|
|
|
|
<Image src="/logo.svg" alt="OpenCut Logo" width={32} height={32} />
|
|
|
|
|
<span className="text-xl font-medium hidden md:block">OpenCut</span>
|
2025-06-22 13:07:02 +02:00
|
|
|
</Link>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const rightContent = (
|
2025-06-25 21:44:54 +02:00
|
|
|
<nav className="flex items-center gap-3">
|
2025-07-21 23:18:07 +02:00
|
|
|
<Link href="/blog">
|
|
|
|
|
<Button variant="text" className="text-sm p-0">
|
|
|
|
|
Blog
|
|
|
|
|
</Button>
|
|
|
|
|
</Link>
|
2025-06-24 15:11:30 +02:00
|
|
|
<Link href="/contributors">
|
2025-06-25 21:44:54 +02:00
|
|
|
<Button variant="text" className="text-sm p-0">
|
2025-06-24 15:11:30 +02:00
|
|
|
Contributors
|
2025-06-22 13:07:02 +02:00
|
|
|
</Button>
|
|
|
|
|
</Link>
|
2025-07-20 21:44:20 +02:00
|
|
|
<Link href="/projects">
|
|
|
|
|
<Button size="sm" className="text-sm ml-4">
|
|
|
|
|
Projects
|
|
|
|
|
<ArrowRight className="h-4 w-4" />
|
|
|
|
|
</Button>
|
|
|
|
|
</Link>
|
2025-06-22 13:07:02 +02:00
|
|
|
</nav>
|
|
|
|
|
);
|
|
|
|
|
|
2025-06-25 15:00:35 +01:00
|
|
|
return (
|
2025-06-25 22:58:16 +01:00
|
|
|
<div className="mx-4 md:mx-0">
|
|
|
|
|
<HeaderBase
|
2025-06-29 20:09:43 +02:00
|
|
|
className="bg-accent border rounded-2xl max-w-3xl mx-auto mt-4 pl-4 pr-[14px]"
|
2025-06-25 22:58:16 +01:00
|
|
|
leftContent={leftContent}
|
|
|
|
|
rightContent={rightContent}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2025-06-25 15:00:35 +01:00
|
|
|
);
|
2025-06-22 13:07:02 +02:00
|
|
|
}
|