summaryrefslogtreecommitdiff
path: root/apps/web/src/components/header.tsx
blob: 5e2e51cb36ff5a74bdaf96ca87ea053d0e3b0f83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"use client";

import Link from "next/link";
import Image from "next/image";
import { Button } from "./ui/button";
import { ArrowRight } from "lucide-react";
import { HeaderBase } from "./header-base";

export function Header() {
  const leftContent = (
    <Link href="/" className="flex items-center gap-3">
      <Image src="/logo.png" alt="AppCut Logo" width={24} height={24} />
      <span className="font-medium tracking-tight">AppCut</span>
    </Link>
  );

  const rightContent = (
    <nav className="flex items-center">
      <Link href="/editor">
        <Button variant="ghost" className="text-sm">
          Open editor
        </Button>
      </Link>
      <Link href="https://github.com/mazeincoding/AppCut" target="_blank">
        <Button variant="ghost" className="text-sm">
          GitHub
        </Button>
      </Link>
      <Link href="/editor">
        <Button size="sm" className="text-sm ml-4">
          Start editing
          <ArrowRight className="h-4 w-4" />
        </Button>
      </Link>
    </nav>
  );

  return <HeaderBase leftContent={leftContent} rightContent={rightContent} />;
}