Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Pricing page + new footer

Richie McIlroy783fc0fe924d
diff --git a/apps/desktop/src/app/styles.css b/apps/desktop/src/app/styles.css
index c477ccc36..5ae3e0ce6 100644
--- a/apps/desktop/src/app/styles.css
+++ b/apps/desktop/src/app/styles.css
@@ -189,9 +189,6 @@ h5 {
h1,
h2,
-h3,
-h4,
-h5,
a,
p,
span,
diff --git a/apps/web/app/api/releases/macos/route.ts b/apps/web/app/api/releases/macos/route.ts
new file mode 100644
index 000000000..f76c2ad31
--- /dev/null
+++ b/apps/web/app/api/releases/macos/route.ts
@@ -0,0 +1,62 @@
+import { Octokit } from "@octokit/rest";
+
+const octokit = new Octokit();
+
+export const runtime = "edge";
+
+export const revalidate = 0;
+
+export async function GET(
+ req: Request,
+ {
+ params,
+ }: {
+ params: {
+ version: string;
+ target: string;
+ arch: string;
+ };
+ }
+) {
+ try {
+ if (params.arch === "x86_64") {
+ params.arch = "x64";
+ }
+
+ const { data: release } = await octokit.repos.getLatestRelease({
+ owner: "capsoftware",
+ repo: "cap",
+ });
+
+ const version = release.tag_name.replace("cap-v", "");
+ const notes = release.body;
+ const pub_date = release.published_at
+ ? new Date(release.published_at).toISOString()
+ : null;
+
+ const asset = release.assets.find((asset) => asset.name.endsWith(".dmg"));
+
+ if (!asset) {
+ return new Response(null, {
+ status: 204,
+ });
+ }
+
+ const url = asset.browser_download_url;
+
+ return new Response(JSON.stringify({ version, notes, pub_date, url }), {
+ status: 200,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ });
+ } catch (error) {
+ console.error("Error fetching latest release:", error);
+ return new Response(JSON.stringify({ error: "Missing required fields" }), {
+ status: 400,
+ headers: {
+ "Content-Type": "application/json",
+ },
+ });
+ }
+}
diff --git a/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsx b/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsx
index c2e41295a..c67df26f1 100644
--- a/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsx
+++ b/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsx
@@ -119,7 +119,7 @@ export const AdminNavItems = () => {
className="w-full flex flex-col justify-between h-full"
aria-label="Sidebar"
>
- <Button href="/dashboard/record" className="w-full mb-4">
+ <Button href="/record" className="w-full mb-4">
<Video className="flex-shrink-0 w-6 h-6" aria-hidden="true" />
<span className="ml-2.5 text-white">Record a Cap</span>
</Button>
diff --git a/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx b/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx
index e89033efe..4d3ee9601 100644
--- a/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx
+++ b/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx
@@ -1,8 +1,19 @@
"use client";
-import { createContext, useContext } from "react";
+import { createContext, useContext, useState } from "react";
import AdminDesktopNav from "@/app/dashboard/_components/AdminNavbar/AdminDesktopNav";
import AdminMobileNav from "@/app/dashboard/_components/AdminNavbar/AdminMobileNav";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuLabel,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+ Button,
+} from "@cap/ui";
+
import { users, spaces } from "@cap/database/schema";
+import Link from "next/link";
type SharedContext = {
spaceData: (typeof spaces.$inferSelect)[] | null;
@@ -29,6 +40,71 @@ export default function DynamicSharedLayout({
<AdminDesktopNav />
<div className="flex-1 overflow-auto focus:outline-none">
<AdminMobileNav />
+ <div className="py-3 -mb-3 flex justify-end wrapper">
+ <DropdownMenu>
+ <DropdownMenuTrigger
+ asChild
+ className="flex items-center justify-center cursor-pointer w-9 h-9 bg-white hover:bg-gray-100 rounded-xl"
+ >
+ <button>
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="24"
+ height="24"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="2"
+ className="w-7 h-7"
+ viewBox="0 0 24 24"
+ >
+ <circle cx="12" cy="12" r="1"></circle>
+ <circle cx="19" cy="12" r="1"></circle>
+ <circle cx="5" cy="12" r="1"></circle>
+ </svg>
+ </button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent className="w-56">
+ <DropdownMenuItem>
+ <Link
+ className="w-full text-primary font-medium"
+ href="/pricing"
+ >
+ Upgrade to Pro
+ </Link>
+ </DropdownMenuItem>
+ <DropdownMenuItem>
+ <Link className="w-full" href="/dashboard/settings">
+ Settings
+ </Link>
+ </DropdownMenuItem>
+ <DropdownMenuSeparator />
+ <DropdownMenuItem>
+ <Link className="w-full" href="/dashboard/settings">
+ Live Chat
+ </Link>
+ </DropdownMenuItem>
+ <DropdownMenuItem>
+ <Link className="w-full" href="/download">
+ Download Mac App
+ </Link>
+ </DropdownMenuItem>
+ <DropdownMenuItem>
+ <Link className="w-full" href="/record">
+ Record a Video
+ </Link>
+ </DropdownMenuItem>
+ <DropdownMenuSeparator />
+ <DropdownMenuItem>
+ <Link className="w-full" href="/logout">
+ Logout
+ </Link>
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </div>
+
<main className="min-h-screen w-full">{children}</main>
</div>
</div>
diff --git a/apps/web/app/dashboard/caps/Caps.tsx b/apps/web/app/dashboard/caps/Caps.tsx
index cb50de91b..745f038b4 100644
--- a/apps/web/app/dashboard/caps/Caps.tsx
+++ b/apps/web/app/dashboard/caps/Caps.tsx
@@ -75,7 +75,7 @@ export const Caps = ({ data, count }: { data: videoData; count: number }) => {
}, [data]);
return (
- <div className="py-12">
+ <div>
{data.length === 0 ? (
<div className="min-h-full h-full flex flex-col items-center justify-center">
<div className="w-full max-w-md mx-auto">
@@ -94,7 +94,7 @@ export const Caps = ({ data, count }: { data: videoData; count: number }) => {
Craft your narrative with a Cap—get projects done quicker.
</p>
<Button
- href="/dashboard/record"
+ href="/record"
size="default"
className="mt-8 relative"
variant="default"
@@ -105,8 +105,8 @@ export const Caps = ({ data, count }: { data: videoData; count: number }) => {
</div>
</div>
) : (
- <>
- <div className="mb-8">
+ <div className="space-y-8">
+ <div>
<h1 className="text-3xl font-semibold mb-1">My Caps</h1>
</div>
<div className="grid grid-cols-2 md:grid-cols-4 gap-6">
@@ -184,66 +184,71 @@ export const Caps = ({ data, count }: { data: videoData; count: number }) => {
);
})}
</div>
- </>
+ <div>
+ <Pagination>
+ <PaginationContent>
+ {page > 1 && (
+ <PaginationItem>
+ <PaginationPrevious
+ href={
+ process.env.NEXT_PUBLIC_URL +
+ `/dashboard/caps?page=${page === 1 ? page : page - 1}`
+ }
+ />
+ </PaginationItem>
+ )}
+ <PaginationItem>
+ <PaginationLink
+ href={
+ process.env.NEXT_PUBLIC_URL + `/dashboard/caps?page=1`
+ }
+ isActive={page === 1}
+ >
+ 1
+ </PaginationLink>
+ </PaginationItem>
+ {page !== 1 && (
+ <PaginationItem>
+ <PaginationLink
+ href={
+ process.env.NEXT_PUBLIC_URL +
+ `/dashboard/caps?page=${page}`
+ }
+ isActive={true}
+ >
+ {page}
+ </PaginationLink>
+ </PaginationItem>
+ )}
+ {totalPages > page + 1 && (
+ <PaginationItem>
+ <PaginationLink
+ href={
+ process.env.NEXT_PUBLIC_URL +
+ `/dashboard/caps?page=${page + 1}`
+ }
+ isActive={page === page + 1}
+ >
+ {page + 1}
+ </PaginationLink>
+ </PaginationItem>
+ )}
+ {page > 2 && <PaginationEllipsis />}
+ <PaginationItem>
+ <PaginationNext
+ href={
+ process.env.NEXT_PUBLIC_URL +
+ `/dashboard/caps?page=${
+ page === totalPages ? page : page + 1
+ }`
+ }
+ />
+ </PaginationItem>
+ </PaginationContent>
+ </Pagination>
+ </div>
+ </div>
)}
- <div className="pt-8">
- <Pagination>
- <PaginationContent>
- <PaginationItem>
- <PaginationPrevious
- href={
- process.env.NEXT_PUBLIC_URL +
- `/dashboard/caps?page=${page === 1 ? page : page - 1}`
- }
- />
- </PaginationItem>
- <PaginationItem>
- <PaginationLink
- href={process.env.NEXT_PUBLIC_URL + `/dashboard/caps?page=1`}
- isActive={page === 1}
- >
- 1
- </PaginationLink>
- </PaginationItem>
- {page !== 1 && (
- <PaginationItem>
- <PaginationLink
- href={
- process.env.NEXT_PUBLIC_URL + `/dashboard/caps?page=${page}`
- }
- isActive={true}
- >
- {page}
- </PaginationLink>
- </PaginationItem>
- )}
- {totalPages > page + 1 && (
- <PaginationItem>
- <PaginationLink
- href={
- process.env.NEXT_PUBLIC_URL +
- `/dashboard/caps?page=${page + 1}`
- }
- isActive={page === page + 1}
- >
- {page + 1}
- </PaginationLink>
- </PaginationItem>
- )}
- {page > 2 && <PaginationEllipsis />}
- <PaginationItem>
- <PaginationNext
- href={
- process.env.NEXT_PUBLIC_URL +
- `/dashboard/caps?page=${
- page === totalPages ? page : page + 1
- }`
- }
- />
- </PaginationItem>
- </PaginationContent>
- </Pagination>
- </div>
</div>
);
};
diff --git a/apps/web/app/dashboard/caps/page.tsx b/apps/web/app/dashboard/caps/page.tsx
index 02598a6ac..b2f59038d 100644
--- a/apps/web/app/dashboard/caps/page.tsx
+++ b/apps/web/app/dashboard/caps/page.tsx
@@ -4,6 +4,11 @@ import { comments, videos } from "@cap/database/schema";
import { desc, eq, sql, count } from "drizzle-orm";
import { getCurrentUser } from "@cap/database/auth/session";
import { redirect } from "next/navigation";
+import { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "My Caps — Cap",
+};
export const revalidate = 0;
@@ -17,8 +22,6 @@ export default async function CapsPage({
const user = await getCurrentUser();
const userId = user?.id as string;
- console.log("page: ", page);
-
if (
user !== null &&
(user.name === null ||
diff --git a/apps/web/app/dashboard/settings/billing/page.tsx b/apps/web/app/dashboard/settings/billing/page.tsx
index 29d458e80..b6268d9f0 100644
--- a/apps/web/app/dashboard/settings/billing/page.tsx
+++ b/apps/web/app/dashboard/settings/billing/page.tsx
@@ -1,5 +1,10 @@
import { Billing } from "./Billing";
import { getCurrentUser } from "@cap/database/auth/session";
+import { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Billing Settings — Cap",
+};
export const revalidate = 0;
diff --git a/apps/web/app/dashboard/settings/layout.tsx b/apps/web/app/dashboard/settings/layout.tsx
index 971a51b8d..318dfd8f8 100644
--- a/apps/web/app/dashboard/settings/layout.tsx
+++ b/apps/web/app/dashboard/settings/layout.tsx
@@ -20,7 +20,7 @@ export default async function DashboardLayout({
);
return (
- <div className="py-12">
+ <div>
<header className="border-b border-white/5">
<h1 className="text-3xl">{currentPage?.title ?? "Settings"}</h1>
<nav className="mb-4 flex overflow-x-auto py-4">
diff --git a/apps/web/app/dashboard/settings/page.tsx b/apps/web/app/dashboard/settings/page.tsx
index e9cf8d5de..ba45ed49d 100644
--- a/apps/web/app/dashboard/settings/page.tsx
+++ b/apps/web/app/dashboard/settings/page.tsx
@@ -1,5 +1,10 @@
import { Settings } from "./Settings";
import { getCurrentUser } from "@cap/database/auth/session";
+import { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Settings — Cap",
+};
export const revalidate = 0;
diff --git a/apps/web/app/download/page.tsx b/apps/web/app/download/page.tsx
new file mode 100644
index 000000000..435871bbf
--- /dev/null
+++ b/apps/web/app/download/page.tsx
@@ -0,0 +1,10 @@
+import { DownloadPage } from "@/components/pages/DownloadPage";
+import { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Download — Cap",
+};
+
+export default function App() {
+ return <DownloadPage />;
+}
diff --git a/apps/web/app/faq/page.tsx b/apps/web/app/faq/page.tsx
index 955fca9f3..ba0b9e2b7 100644
--- a/apps/web/app/faq/page.tsx
+++ b/apps/web/app/faq/page.tsx
@@ -2,7 +2,7 @@ import { FaqPage } from "@/components/pages/FaqPage";
import { Metadata } from "next";
export const metadata: Metadata = {
- title: "FAQ - Cap",
+ title: "FAQ — Cap",
};
export default function App() {
diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
index 50dccbd3f..d674d07e6 100644
--- a/apps/web/app/globals.css
+++ b/apps/web/app/globals.css
@@ -364,3 +364,15 @@ slot:not(.dashboard-layout slot) {
body.react-draggable-transparent-selection .crosshair {
display: block;
}
+
+footer ul {
+ @apply list-none p-0;
+}
+
+footer h3 {
+ @apply text-xl font-semibold;
+}
+
+footer a {
+ @apply text-base text-gray-700 hover:text-black hover:underline;
+}
diff --git a/apps/web/app/pricing/page.tsx b/apps/web/app/pricing/page.tsx
new file mode 100644
index 000000000..8654ee4f6
--- /dev/null
+++ b/apps/web/app/pricing/page.tsx
@@ -0,0 +1,10 @@
+import { PricingPage } from "@/components/pages/PricingPage";
+import { Metadata } from "next";
+
+export const metadata: Metadata = {
+ title: "Early Adopter Pricing — Cap",
+};
+
+export default function App() {
+ return <PricingPage />;
+}
diff --git a/apps/web/components/Footer.tsx b/apps/web/components/Footer.tsx
index 10ab876f5..cca3a1bf0 100644
--- a/apps/web/components/Footer.tsx
+++ b/apps/web/components/Footer.tsx
@@ -1,6 +1,7 @@
"use client";
import { usePathname } from "next/navigation";
+import { Logo, LogoBadge } from "@cap/ui";
export const Footer = () => {
const pathname = usePathname();
@@ -16,11 +17,61 @@ export const Footer = () => {
return null;
return (
- <footer className="py-4 border-t">
- <div className="wrapper text-center">
- <p className="text-xs text-black">
- © Cap Software, Inc. {new Date().getFullYear()}.
- </p>
+ <footer>
+ <div className="wrapper min-h-[500px] bg-white rounded-tr-xl rounded-tl-xl p-8 md:p-12 shadow-xl border-l border-t border-r relative overflow-hidden">
+ <div className="grid grid-cols-1 md:grid-cols-12 gap-8 items-start justify-between z-10 relative">
+ <div className="space-y-4 md:col-span-6">
+ <Logo className="w-24 h-auto" />
+ <p className="text-gray-500 max-w-md">
+ Cap is the open source alternative to Loom. Lightweight, powerful,
+ and stunning. Record and share in seconds.
+ </p>
+ <p className="text-gray-400">
+ © Cap Software, Inc. {new Date().getFullYear()}.
+ </p>
+ </div>
+ <div className="space-y-4 md:col-span-3">
+ <h3 className="text-lg font-semibold">Product</h3>
+ <ul className="space-y-2">
+ <li>
+ <a href="/changelog">Changelog</a>
+ </li>
+ <li>
+ <a href="/pricing">Pricing</a>
+ </li>
+ <li>
+ <a href="/download">Download</a>
+ </li>
+ <li>
+ <a href="https://github.com/CapSoftware/Cap" target="_blank">
+ Open source
+ </a>
+ </li>
+ <li>
+ <a href="https://discord.gg/y8gdQ3WRN3" target="_blank">
+ Join the community
+ </a>
+ </li>
+ </ul>
+ </div>
+ <div className="space-y-4 md:col-span-3">
+ <h3 className="text-lg font-semibold">Help</h3>
+ <ul className="space-y-2">
+ <li>
+ <a href="/faq">FAQs</a>
+ </li>
+ <li>
+ <a href="mailto:[email protected]">Email Support</a>
+ </li>
+ <li>
+ <a href="#">Live chat</a>
+ </li>
+ </ul>
+ </div>
+ </div>
+ <div className="absolute left-1/2 transform -translate-x-1/2 bottom-0 rotate-45 pointer-events-none">
+ <LogoBadge className="w-[650px] h-auto opacity-10 pointer-events-none" />
+ </div>
</div>
</footer>
);
diff --git a/apps/web/components/Navbar.tsx b/apps/web/components/Navbar.tsx
index 3d765fd5d..1ebd3819b 100644
--- a/apps/web/components/Navbar.tsx
+++ b/apps/web/components/Navbar.tsx
@@ -110,20 +110,13 @@ export const Navbar = ({ auth }: { auth: boolean }) => {
</ul>
</NavigationMenuContent>
</NavigationMenuItem>
+
<NavigationMenuItem>
- <Link
+ <Button
href={auth === false ? "/login" : "/dashboard"}
- legacyBehavior
- passHref
+ size="sm"
>
- <NavigationMenuLink className={navigationMenuTriggerStyle()}>
- {auth === false ? "Sign in" : "Dashboard"}
- </NavigationMenuLink>
- </Link>
- </NavigationMenuItem>
- <NavigationMenuItem>
- <Button href="/download" size="sm">
- Download
+ {auth === false ? "Sign in" : "Dashboard"}
</Button>
</NavigationMenuItem>
</NavigationMenuList>
diff --git a/apps/web/components/pages/DownloadPage.tsx b/apps/web/components/pages/DownloadPage.tsx
new file mode 100644
index 000000000..3ab516737
--- /dev/null
+++ b/apps/web/components/pages/DownloadPage.tsx
@@ -0,0 +1,47 @@
+"use client";
+
+import { Button, LogoBadge } from "@cap/ui";
+import { useState } from "react";
+
+export const DownloadPage = () => {
+ const [loading, setLoading] = useState(false);
+
+ const releaseFetch = async () => {
+ setLoading(true);
+ const response = await fetch("/api/releases/macos");
+ const data = await response.json();
+
+ if (data.url) {
+ window.location.href = data.url;
+ }
+
+ setLoading(false);
+ };
+
+ return (
+ <div className="wrapper wrapper-sm py-20">
+ <div className="text-center space-y-6">
+ <LogoBadge className="w-20 h-auto mx-auto fade-in-down" />
+ <h1 className=" text-3xl md:text-4xl fade-in-down animate-delay-1">
+ Download Cap for macOS
+ </h1>
+ <p className="text-lg text-gray-600 max-w-sm mx-auto fade-in-down animate-delay-2">
+ The quickest way to share your screen. Pin to your dock and record in
+ seconds.
+ </p>
+ <div className="fade-in-up animate-delay-2">
+ <Button
+ spinner={loading}
+ onClick={async () => await releaseFetch()}
+ className="mb-3"
+ >
+ Download
+ </Button>
+ <p className="text-xs text-gray-500">
+ Supports both Apple Sillicon & Intel based Macs
+ </p>
+ </div>
+ </div>
+ </div>
+ );
+};
diff --git a/apps/web/components/pages/PricingPage.tsx b/apps/web/components/pages/PricingPage.tsx
new file mode 100644
index 000000000..9bf6e4874
--- /dev/null
+++ b/apps/web/components/pages/PricingPage.tsx
@@ -0,0 +1,235 @@
+"use client";
+
+import {
+ Button,
+ LogoBadge,
+ Card,
+ CardDescription,
+ CardTitle,
+ CardHeader,
+ CardContent,
+ CardFooter,
+} from "@cap/ui";
+import { Check, Construction } from "lucide-react";
+import { useState } from "react";
+
+export const PricingPage = () => {
+ const [loading, setLoading] = useState(false);
+
+ const freeList = [
+ {
+ text: "Up to 25 videos",
+ available: true,
+ },
+ {
+ text: "Up to 5 mins/video",
+ available: true,
+ },
+ {
+ text: "Unlimited views",
+ available: true,
+ },
+ {
+ text: "Basic analytics",
+ available: true,
+ },
+ {
+ text: "Community support",
+ available: true,
+ },
+ ];
+
+ const proList = [
+ {
+ text: "Unlimited videos",
+ available: true,
+ },
+ {
+ text: "Unlimited recording length",
+ available: true,
+ },
+ {
+ text: "Advanced analytics",
+ available: true,
+ },
+ {
+ text: "Priority support",
+ available: true,
+ },
+ ];
+
+ const plannedFeatures = [
+ {
+ text: "Automatic transcription",
+ available: false,
+ },
+ {
+ text: "Cap AI",
+ available: false,
+ },
+ {
+ text: "Custom branding",
+ available: false,
+ },
+ {
+ text: "Password protection",
+ available: false,
+ },
+ {
+ text: "Custom domains",
+ available: false,
+ },
+ {
+ text: "Embeddable videos",
+ available: false,
+ },
+ {
+ text: "API access",
+ available: false,
+ },
+ ];
+
+ return (
+ <div className="custom-bg wrapper wrapper-sm py-20">
+ <div className="space-y-12">
+ <div className="text-center">
+ <h1 className="text-4xl md:text-5xl fade-in-down mb-6">
+ Early Adopter Pricing
+ </h1>
+ <p className="text-lg text-gray-600 max-w-md mx-auto fade-in-down animate-delay-1">
+ Cap is currently in public beta, and we're offering special early
+ adopter pricing to our first users. This pricing will be locked in
+ for the lifetime of your subscription.
+ </p>
+ </div>
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4 items-stretch">
+ <Card className="bg-gradient-to-l from-primary to-primary-3 p-8 rounded-xl min-h-[600px] flex-grow border-primary-3 fade-in-up animate-delay-3">
+ <div className="space-y-4">
+ <CardHeader>
+ <CardTitle className="text-3xl text-white">Cap Pro</CardTitle>
+ <CardDescription className="text-lg text-white">
+ For professional use and teams
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <Button
+ href="/register"
+ className="w-full bg-secondary-2 hover:bg-secondary-3"
+ variant="outline"
+ >
+ <span className="text-white">Get started with Pro</span>
+ </Button>
+ </CardContent>
+ <CardFooter>
+ <div className="space-y-8">
+ <div>
+ <h3 className="text-base text-white mb-3">
+ What's included:
+ </h3>
+ <ul className="list-none p-0 space-y-3">
+ {proList.map((item, index) => (
+ <li
+ key={index}
+ className="flex items-center justify-start"
+ >
+ <div className="w-6 h-6 bg-white m-0 p-0 flex items-center justify-center rounded-full">
+ {item.available ? (
+ <Check className="w-4 h-4 text-black" />
+ ) : (
+ <Construction className="w-4 h-4 text-black" />
+ )}
+ </div>
+ <span className="ml-4 text-lg text-white">
+ {item.text}
+ </span>
+ </li>
+ ))}
+ </ul>
+ </div>
+ <div>
+ <h3 className="text-base text-white mb-3">
+ What's planned:
+ </h3>
+ <ul className="list-none p-0 space-y-3 mb-6">
+ {plannedFeatures.map((item, index) => (
+ <li
+ key={index}
+ className="flex items-center justify-start"
+ >
+ <div className="w-6 h-6 bg-white m-0 p-0 flex items-center justify-center rounded-full">
+ {item.available ? (
+ <Check className="w-4 h-4 text-black" />
+ ) : (
+ <Construction className="w-4 h-4 text-black" />
+ )}
+ </div>
+ <span className="ml-4 text-lg text-white">
+ {item.text}
+ </span>
+ </li>
+ ))}
+ </ul>
+ <p className="text-white italic">
+ View the full Cap Roadmap{" "}
+ <a
+ href="/roadmap"
+ className="underline font-medium text-white"
+ >
+ here
+ </a>
+ </p>
+ </div>
+ </div>
+ </CardFooter>
+ </div>
+ </Card>
+ <Card className="bg-white p-8 rounded-xl min-h-[600px] flex-grow fade-in-down animate-delay-2">
+ <div className="space-y-4">
+ <CardHeader>
+ <CardTitle className="text-2xl">Free</CardTitle>
+ <CardDescription className="text-lg">
+ For personal and minimal use
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <Button
+ href="/register"
+ className="w-full hover:bg-gray-100"
+ variant="outline"
+ >
+ Start for free
+ </Button>
+ </CardContent>
+ <CardFooter>
+ <div>
+ <h3 className="text-base text-gray-600 mb-3">
+ What's included:
+ </h3>
+ <ul className="list-none p-0 space-y-3">
+ {freeList.map((item, index) => (
+ <li
+ key={index}
+ className="flex items-center justify-start"
+ >
+ <div className="w-6 h-6 bg-black m-0 p-0 flex items-center justify-center rounded-full">
+ {item.available ? (
+ <Check className="w-4 h-4 text-white" />
+ ) : (
+ <Construction className="w-4 h-4 text-white" />
+ )}
+ </div>
+ <span className="ml-4 text-lg text-gray-700">
+ {item.text}
+ </span>
+ </li>
+ ))}
+ </ul>
+ </div>
+ </CardFooter>
+ </div>
+ </Card>
+ </div>
+ </div>
+ </div>
+ );
+};
diff --git a/packages/ui/src/components/Dropdown.tsx b/packages/ui/src/components/Dropdown.tsx
index fb37c3b47..c2d3537e5 100644
--- a/packages/ui/src/components/Dropdown.tsx
+++ b/packages/ui/src/components/Dropdown.tsx
@@ -27,7 +27,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
<DropdownMenuPrimitive.SubTrigger
ref={ref}
className={classNames(
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
+ "flex cursor-default select-none flex justify-between items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
inset && "pl-8",
className
)}
@@ -162,7 +162,7 @@ const DropdownMenuSeparator = React.forwardRef<
>(({ className, ...props }, ref) => (
<DropdownMenuPrimitive.Separator
ref={ref}
- className={classNames("-mx-1 my-1 h-px bg-muted", className)}
+ className={classNames("-mx-1 my-1 h-px bg-gray-200", className)}
{...props}
/>
));