aboutsummaryrefslogtreecommitdiffstats
path: root/apps/landing/src/Navbar.tsx
blob: 153551704a52c33d67b5640ff1c8606fb0f3e99b (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import { buttonVariants } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import { Link } from "react-router";

import { DEMO_LINK, DOCS_LINK, GITHUB_LINK } from "./constants";
import Logo from "/icons/karakeep-full.svg?url";

export default function NavBar() {
  return (
    <div className="flex justify-between px-3 py-4">
      <Link to="/">
        <img src={Logo} alt="logo" className="w-36" />
      </Link>

      {/* Mobile navigation - show essential buttons */}
      <div className="flex items-center gap-2 sm:hidden">
        <Link
          to="/pricing"
          className="text-sm text-gray-600 hover:text-gray-900"
        >
          Pricing
        </Link>
        <a
          href="https://cloud.karakeep.app"
          target="_blank"
          className={cn(
            "px-3 py-1.5 text-xs",
            buttonVariants({ variant: "outline", size: "sm" }),
          )}
          rel="noreferrer"
        >
          Login
        </a>
      </div>

      {/* Desktop navigation - show all items */}
      <div className="hidden items-center gap-6 sm:flex">
        <Link to="/pricing" className="flex justify-center gap-2 text-center">
          Pricing
        </Link>
        <a
          href={DOCS_LINK}
          target="_blank"
          className="flex justify-center gap-2 text-center"
          rel="noreferrer"
        >
          Docs
        </a>
        <a
          href={GITHUB_LINK}
          target="_blank"
          className="flex justify-center gap-2 text-center"
          rel="noreferrer"
        >
          GitHub
        </a>
        <a
          href="https://cloud.karakeep.app"
          target="_blank"
          className={cn(
            "text flex h-full w-20 gap-2",
            buttonVariants({ variant: "outline" }),
          )}
          rel="noreferrer"
        >
          Login
        </a>
        <a
          href={DEMO_LINK}
          target="_blank"
          className={cn(
            "text flex h-full w-28 gap-2",
            buttonVariants({ variant: "default" }),
          )}
          rel="noreferrer"
        >
          Try Demo
        </a>
      </div>
    </div>
  );
}