Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
New landing + pricing pages
Richie McIlroyef9fb199479b
diff --git a/apps/web/app/dashboard/settings/workspace/Workspace.tsx b/apps/web/app/dashboard/settings/workspace/Workspace.tsxindex 74a0ac762..bddbfce61 100644--- a/apps/web/app/dashboard/settings/workspace/Workspace.tsx+++ b/apps/web/app/dashboard/settings/workspace/Workspace.tsx@@ -232,20 +232,18 @@ export const Workspace = () => {Save</Button></CardFooter>- {user.email === "[email protected]" && (- <>- <CardContent className="pt-6">- <CardTitle>Custom Domain</CardTitle>- <CardDescription>- Configure a custom domain for your workspace's shared caps.- </CardDescription>- <div className="mt-4">- <CustomDomain />- </div>- </CardContent>- <CardFooter className="border-b px-6 pt-0 pb-2"></CardFooter>- </>- )}+ <>+ <CardContent className="pt-6">+ <CardTitle>Custom Domain</CardTitle>+ <CardDescription>+ Configure a custom domain for your workspace's shared caps.+ </CardDescription>+ <div className="mt-4">+ <CustomDomain />+ </div>+ </CardContent>+ <CardFooter className="border-b px-6 pt-0 pb-2"></CardFooter>+ </><CardHeader><div className="flex items-center justify-between"><div>diff --git a/apps/web/app/dashboard/settings/workspace/components/CustomDomain.tsx b/apps/web/app/dashboard/settings/workspace/components/CustomDomain.tsxindex 6285692c8..3e722186e 100644--- a/apps/web/app/dashboard/settings/workspace/components/CustomDomain.tsx+++ b/apps/web/app/dashboard/settings/workspace/components/CustomDomain.tsx@@ -39,7 +39,7 @@ type VerificationResponse = {export function CustomDomain() {const router = useRouter();- const { activeSpace } = useSharedContext();+ const { activeSpace, isSubscribed } = useSharedContext();const [domain, setDomain] = useState(activeSpace?.space.customDomain || "");const [loading, setLoading] = useState(false);const [verifying, setVerifying] = useState(false);@@ -168,6 +168,32 @@ export function CustomDomain() {const handleSubmit = async (e: React.FormEvent) => {e.preventDefault();+ if (!isSubscribed) {+ toast.error(+ (t) => (+ <span>+ Please upgrade to{" "}+ <a+ href="/pricing"+ className="text-blue-500 font-medium hover:text-blue-600"+ onClick={(e) => {+ e.preventDefault();+ toast.dismiss(t.id);+ router.push("/pricing");+ }}+ >+ Cap Pro+ </a>{" "}+ to use custom domains+ </span>+ ),+ {+ duration: 5000,+ }+ );+ return;+ }+const cleanedDomain = cleanDomain(domain);if (!cleanedDomain) {toast.error("Please enter a valid domain");@@ -217,6 +243,32 @@ export function CustomDomain() {};const handleRemoveDomain = async () => {+ if (!isSubscribed) {+ toast.error(+ (t) => (+ <span>+ Please upgrade to{" "}+ <a+ href="/pricing"+ className="text-blue-500 font-medium hover:text-blue-600"+ onClick={(e) => {+ e.preventDefault();+ toast.dismiss(t.id);+ router.push("/pricing");+ }}+ >+ Cap Pro+ </a>{" "}+ to use custom domains+ </span>+ ),+ {+ duration: 5000,+ }+ );+ return;+ }+if (!confirm("Are you sure you want to remove this custom domain?")) return;setLoading(true);diff --git a/apps/web/components/Navbar.tsx b/apps/web/components/Navbar.tsxindex 1adb7b318..95c8bd664 100644--- a/apps/web/components/Navbar.tsx+++ b/apps/web/components/Navbar.tsx@@ -14,19 +14,19 @@ import {} from "@cap/ui";import Link from "next/link";import { useState } from "react";-import { Menu, X} from "lucide-react";+import { Menu, X } from "lucide-react";import { classNames } from "@cap/utils";import { seoPages } from "../lib/seo-pages";-import {faGithub} from "@fortawesome/free-brands-svg-icons"-import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"+import { faGithub } from "@fortawesome/free-brands-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";const Links = [{label: "Product",dropdown: [{- label: "Download MacOS App",- sub: "Download for macOS. Windows and Linux coming soon",+ label: "Download App",+ sub: "Downloads for macOS & Windows",href: "/download",},{@@ -38,33 +38,33 @@ const Links = [label: "Join the community",sub: "Join the Cap community on Discord",href: "https://discord.gg/4bbD3Yt",- }+ },],},{label: "Help",dropdown: [- {- label: "Documentation",- sub: "Documentation for using Cap",- href: "/docs",- },- {- label: "FAQs",- sub: "Frequently asked questions about Cap",- href: "/faq",- },- {- label: "Email support",- sub: "Support via email",- href: "mailto:[email protected]",- },- {- label: "Chat support",- sub: "Support via chat",- href: "https://discord.gg/y8gdQ3WRN3",- },- ]+ {+ label: "Documentation",+ sub: "Documentation for using Cap",+ href: "/docs",+ },+ {+ label: "FAQs",+ sub: "Frequently asked questions about Cap",+ href: "/faq",+ },+ {+ label: "Email support",+ sub: "Support via email",+ href: "mailto:[email protected]",+ },+ {+ label: "Chat support",+ sub: "Support via chat",+ href: "https://discord.gg/y8gdQ3WRN3",+ },+ ],},{label: "Pricing",@@ -96,92 +96,90 @@ export const Navbar = ({ auth }: { auth: boolean }) => {return (<>- <div className="fixed border-b border-b-zinc-100 inset-0 z-20 p-4 w-full backdrop-blur-md bg-white/70 h-[60px]">+ <div className="fixed border-b border-b-zinc-100 inset-0 z-20 p-4 w-full backdrop-blur-md bg-white/70 h-[60px]"><div className="flex justify-between items-center mx-auto max-w-3xl h-full transition-all"><div className="flex items-center"><Link passHref href="/">- <Logo- className="w-[90px]"- />+ <Logo className="w-[90px]" /></Link><div className="hidden md:block">- <NavigationMenu>- <NavigationMenuList className="space-x-0">- {Links.map((link) => (- <NavigationMenuItem key={link.label}>- {link.dropdown ? (- <>- <NavigationMenuTrigger- className={- "px-3 text-black/70 text-[14px] active:text-black/70 focus:text-black/70 hover:text-primary"- }- >- {link.label}- </NavigationMenuTrigger>- <NavigationMenuContent>- <ul className="grid gap-3 p-6 md:w-[400px] lg:w-[500px] lg:grid-cols-2">- {link.dropdown.map((sublink) => (- <ListItem- key={sublink.href}- href={sublink.href}- title={sublink.label}- >- {sublink.sub}- </ListItem>- ))}- </ul>- </NavigationMenuContent>- </>- ) : (- <Link href={link.href} legacyBehavior passHref>- <NavigationMenuLink- className={classNames(- navigationMenuTriggerStyle(),- "px-3 text-black/70 text-[14px] hover:text-primary active:text-black/70 focus:text-black/70"- )}- >- {link.label}- </NavigationMenuLink>- </Link>- )}- </NavigationMenuItem>- ))}- </NavigationMenuList>- </NavigationMenu>- </div>+ <NavigationMenu>+ <NavigationMenuList className="space-x-0">+ {Links.map((link) => (+ <NavigationMenuItem key={link.label}>+ {link.dropdown ? (+ <>+ <NavigationMenuTrigger+ className={+ "px-3 text-black/70 text-[14px] active:text-black/70 focus:text-black/70 hover:text-primary"+ }+ >+ {link.label}+ </NavigationMenuTrigger>+ <NavigationMenuContent>+ <ul className="grid gap-3 p-6 md:w-[400px] lg:w-[500px] lg:grid-cols-2">+ {link.dropdown.map((sublink) => (+ <ListItem+ key={sublink.href}+ href={sublink.href}+ title={sublink.label}+ >+ {sublink.sub}+ </ListItem>+ ))}+ </ul>+ </NavigationMenuContent>+ </>+ ) : (+ <Link href={link.href} legacyBehavior passHref>+ <NavigationMenuLink+ className={classNames(+ navigationMenuTriggerStyle(),+ "px-3 text-black/70 text-[14px] hover:text-primary active:text-black/70 focus:text-black/70"+ )}+ >+ {link.label}+ </NavigationMenuLink>+ </Link>+ )}+ </NavigationMenuItem>+ ))}+ </NavigationMenuList>+ </NavigationMenu>+ </div></div><div className="hidden items-center space-x-2 sm:flex">- <Button- variant="white"- href="https://github.com/CapSoftware/Cap"- size="md"- className="w-full font-medium sm:w-auto"- icon={<FontAwesomeIcon icon={faGithub} />}- >- Github- </Button>- <Button- variant="dark"- href={auth === false ? "/login" : "/dashboard"}- size="md"- className="w-full font-medium sm:w-auto"- >- {auth === false ? "Login" : "Dashboard"}- </Button>+ <Button+ variant="white"+ href="https://github.com/CapSoftware/Cap"+ size="md"+ className="w-full font-medium sm:w-auto"+ icon={<FontAwesomeIcon icon={faGithub} />}+ >+ Github+ </Button>+ <Button+ variant="dark"+ href={auth === false ? "/login" : "/dashboard"}+ size="md"+ className="w-full font-medium sm:w-auto"+ >+ {auth === false ? "Login" : "Dashboard"}+ </Button></div><div className="block md:hidden"><button onClick={() => setShowMobileMenu(!showMobileMenu)}>- <Menu- className={`w-[28px] h-[28px] text-black/70`}- />+ <Menu className={`w-[28px] h-[28px] text-black/70`} /></button></div></div>- </div>+ </div>{showMobileMenu && (<div className="fixed top-0 left-0 w-full h-full px-4 bg-white z-[100000] overflow-auto">- <div className="bg-gradient-to-b from-white to-[rgba(255,255,255,0.3)]- pt-3 pb-12 sticky top-0 flex items-center justify-between">+ <div+ className="bg-gradient-to-b from-white to-[rgba(255,255,255,0.3)]+ pt-3 pb-12 sticky top-0 flex items-center justify-between"+ ><Link passHref href="/"><Logo className="w-[90px] h-auto" /></Link>@@ -264,7 +262,7 @@ export const Navbar = ({ auth }: { auth: boolean }) => {<li><Buttonvariant="radialblue"- className="font-medium h-[50px] !text-white"+ className="font-medium h-[50px] !text-white"href={auth === false ? "/download" : "/dashboard"}size="lg">diff --git a/apps/web/components/pages/HomePage/index.tsx b/apps/web/components/pages/HomePage/index.tsxindex 206c14c43..c8e8b372a 100644--- a/apps/web/components/pages/HomePage/index.tsx+++ b/apps/web/components/pages/HomePage/index.tsx@@ -27,12 +27,17 @@ export const HomePage = () => {<div className="relative z-10 px-5 w-full"><div className="mx-auto text-center wrapper wrapper-sm"><Link- href="/"+ href="#"className="flex gap-3 transition-opacity duration-300hover:opacity-90 mb-[52px] items-center relative z-[20] px-4 py-2mx-auto bg-[#2e2e2e] rounded-full border w-fit border-zinc-200">- <p className="text-sm text-white">Launch week day 1</p>+ <p className="text-xs sm:text-sm text-white">+ Launch Week Day 1:{" "}+ <span className="text-xs sm:text-sm font-bold text-blue-100">+ Custom Domains+ </span>+ </p><FontAwesomeIconfontWeight="light"className="w-2 text-white"@@ -47,7 +52,7 @@ export const HomePage = () => {<br />owned by you.</h1>- <p className="mx-auto mb-8 max-w-3xl text-xl text-zinc-500 fade-in-down animate-delay-1">+ <p className="text-md sm:text-xl mx-auto mb-8 max-w-3xl text-zinc-500 fade-in-down animate-delay-1">Cap is the open source alternative to Loom. Lightweight, powerful,and stunning. Record and share securely in seconds with custom S3bucket support.@@ -56,23 +61,23 @@ export const HomePage = () => {<div className="flex flex-col justify-center items-center mb-5 space-y-2 fade-in-up animate-delay-2 sm:flex-row sm:space-y-0 sm:space-x-2"><Buttonvariant="white"- href="/pricing"+ href="/download"size="lg"className="w-full font-medium text-md sm:w-auto">- Get Started+ Download App</Button><Buttonvariant="radialblue"- href="/download"+ href="/pricing"size="lg"className="relative z-[20] w-full font-medium text-md sm:w-auto">- Download App+ Buy Now</Button></div><p className="text-sm text-center text-zinc-400">- No credit card required.+ Free version available. No credit card required.</p></div><AnimatePresence>@@ -88,7 +93,7 @@ export const HomePage = () => {onClick={() => setVideoToggled(true)}className="absolute cursor-pointer size-[100px] flex items-center justify-center group">- <div+ {/* <divstyle={{background:"linear-gradient(180deg, rgba(255, 255, 255, 0.10) 30%, #3B7BFA 100%)",@@ -110,11 +115,11 @@ export const HomePage = () => {icon={faPlay}/></div>- </div>+ </div> */}</motion.div><imgsrc="/illustrations/app.webp"- className="mx-auto w-full max-w-[540px] select-none h-auto rounded-xl pointer-events-none"+ className="mx-auto w-full max-w-[540px] pointer-events-none h-auto rounded-xl"alt="Landing Page Screenshot Banner"/></Parallax>@@ -213,13 +218,13 @@ export const HomePage = () => {repeatType: "reverse",ease: "linear",}}- className="absolute top-[20px] left-[-60px] md:left-[-400px] select-none z-[5]"+ className="absolute top-[20px] left-[-60px] md:left-[-400px] select-none z-[5] pointer-events-none"src="./illustrations/bottomcloud.webp"alt="bottomcloudthree"/><imgclassName="absolute- top-[180px] w-full max-w-[400px] z-0 select-none right-[60px] opacity-30"+ top-[180px] w-full max-w-[400px] z-0 select-none right-[60px] opacity-30 pointer-events-none"src="./illustrations/smallcloudthree.webp"alt="smallcloudthree"/>@@ -237,7 +242,7 @@ export const HomePage = () => {ease: "linear",}}className="absolute- bottom-[240px] w-full max-w-[430px] z-[1] right-[40px] select-none opacity-80 brightness-125"+ bottom-[240px] w-full max-w-[430px] z-[1] right-[40px] select-none opacity-80 brightness-125 pointer-events-none"src="./illustrations/smallcloudtwo.webp"alt="smallcloudtwo"/>@@ -246,7 +251,7 @@ export const HomePage = () => {mixBlendMode: "screen",}}className="absolute- w-full max-w-[500px] top-[210px] right-[300px] z-[2] select-none brightness-125"+ w-full max-w-[500px] top-[210px] right-[300px] z-[2] select-none brightness-125 pointer-events-none"src="./illustrations/chipcloud.webp"alt="chipcloudtwo"/>@@ -268,23 +273,23 @@ export const HomePage = () => {ease: "linear",}}className="absolute- w-full max-w-[500px] bottom-[15px] select-none left-[-200px] lg:left-[30px] z-[10]"+ w-full max-w-[500px] bottom-[15px] select-none left-[-200px] lg:left-[30px] z-[10] pointer-events-none"src="./illustrations/chipcloud.webp"alt="chipcloudfour"/><imgclassName="absolute- w-full max-w-[500px] top-[160px] select-none mix-blend-screen left-[-200px] lg:left-[30px] z-[10]"+ w-full max-w-[500px] top-[160px] select-none mix-blend-screen left-[-200px] lg:left-[30px] z-[10] pointer-events-none"src="./illustrations/chipcloud.webp"alt="chipcloud"/><img- className="absolute bottom-[-200px] -left-[500px] select-none z-[5]"+ className="absolute bottom-[-200px] -left-[500px] select-none z-[5] pointer-events-none"src="./illustrations/bottomcloud.webp"alt="bottomcloud"/><img- className="absolute bottom-[-90px] right-[-400px] select-none z-[5]"+ className="absolute bottom-[-90px] right-[-400px] select-none z-[5] pointer-events-none"src="./illustrations/bottomcloud.webp"alt="bottomcloudtwo"/>diff --git a/apps/web/components/pages/PricingPage.tsx b/apps/web/components/pages/PricingPage.tsxindex efb22c92e..b19cdc58c 100644--- a/apps/web/components/pages/PricingPage.tsx+++ b/apps/web/components/pages/PricingPage.tsx@@ -20,9 +20,12 @@ import { SimplePlans } from "../text/SimplePlans";import { LogoSection } from "./_components/LogoSection";export const PricingPage = () => {- const [loading, setLoading] = useState(false);+ const [proLoading, setProLoading] = useState(false);+ const [commercialLoading, setCommercialLoading] = useState(false);const [isAnnual, setIsAnnual] = useState(true);- const [quantity, setQuantity] = useState(1);+ const [isCommercialAnnual, setIsCommercialAnnual] = useState(false);+ const [proQuantity, setProQuantity] = useState(1);+ const [licenseQuantity, setLicenseQuantity] = useState(1);const [initialRender, setInitialRender] = useState(true);const { push } = useRouter();const searchParams = useSearchParams();@@ -33,9 +36,9 @@ export const PricingPage = () => {const planFromUrl = searchParams.get("plan");const next = searchParams.get("next");const pendingPriceId = localStorage.getItem("pendingPriceId");- const pendingQuantity = localStorage.getItem("pendingQuantity");+ const pendingProQuantity = localStorage.getItem("pendingQuantity");- if (pendingPriceId && pendingQuantity) {+ if (pendingPriceId && pendingProQuantity) {localStorage.removeItem("pendingPriceId");localStorage.removeItem("pendingQuantity");@@ -46,7 +49,7 @@ export const PricingPage = () => {},body: JSON.stringify({priceId: pendingPriceId,- quantity: parseInt(pendingQuantity),+ quantity: parseInt(pendingProQuantity),}),});const data = await response.json();@@ -63,7 +66,7 @@ export const PricingPage = () => {}, []);const planCheckout = async (planId?: string) => {- setLoading(true);+ setProLoading(true);if (!planId) {planId = getProPlanId(isAnnual ? "yearly" : "monthly");@@ -74,13 +77,13 @@ export const PricingPage = () => {headers: {"Content-Type": "application/json",},- body: JSON.stringify({ priceId: planId, quantity }),+ body: JSON.stringify({ priceId: planId, quantity: proQuantity }),});const data = await response.json();if (data.auth === false) {localStorage.setItem("pendingPriceId", planId);- localStorage.setItem("pendingQuantity", quantity.toString());+ localStorage.setItem("pendingQuantity", proQuantity.toString());push(`/login?next=/pricing`);return;}@@ -93,10 +96,43 @@ export const PricingPage = () => {window.location.href = data.url;}- setLoading(false);+ setProLoading(false);+ };++ const openCommercialCheckout = async () => {+ setCommercialLoading(true);+ try {+ const response = await fetch(`/api/commercial/checkout`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ type: isCommercialAnnual ? "yearly" : "lifetime",+ quantity: licenseQuantity,+ }),+ });++ const data = await response.json();++ if (response.status === 200) {+ window.location.href = data.url;+ } else {+ throw new Error(data.message);+ }+ } catch (error) {+ console.error("Error during commercial checkout:", error);+ toast.error("Failed to start checkout process");+ } finally {+ setCommercialLoading(false);+ }};const proList = [+ {+ text: "Connect your own domain to Cap",+ available: true,+ },{text: "Unlimited cloud storage & Shareable links",available: true,@@ -131,34 +167,22 @@ export const PricingPage = () => {},];- const plannedFeatures = [- {- text: "Custom scenes (branded videos, automatic zoom)",- available: false,- },- {- text: "Video editing",- available: false,- },+ const commercialList = [{- text: "Cap AI (generated description, title, etc)",- available: false,- },- {- text: "Password protected videos",- available: false,+ text: "Commercial Use of Cap Recorder + Editor",+ available: true,},{- text: "Custom domains",- available: false,+ text: "Community Support",+ available: true,},{- text: "Embeddable videos",- available: false,+ text: "Local-only features",+ available: true,},{- text: "API access",- available: false,+ text: "Perpetual license option",+ available: true,},];@@ -172,223 +196,234 @@ export const PricingPage = () => {</div><h1className={`text-4xl md:text-5xl ${- initialRender ? "fade-in-down" : ""}mb-6 }`}+ initialRender ? "fade-in-down" : ""+ }mb-6 }`}>Early Adopter Pricing</h1><pclassName={`max-w-[800px] mx-auto ${- initialRender ? "fade-in-down animate-delay-1" : ""}`}+ initialRender ? "fade-in-down animate-delay-1" : ""+ }`}>Cap is currently in public beta, and we're offering special earlyadopter pricing to our first users. This pricing will be locked infor the lifetime of your subscription.</p></div>- <div>- <div className="text-center max-w-[800px] mx-auto mb-8 lg:mb-4">- <h2 className="text-xl text-gray-400">- Used by employees at leading tech companies- </h2>- </div>- <div className="flex flex-col items-center pb-8 text-center lg:flex-row lg:items-center lg:justify-between lg:text-left lg:pb-0">- <div className="grid grid-cols-2 gap-10 mx-auto md:grid-cols-5 lg:max-w-4xl lg:gap-10">- <div className="flex justify-center items-center lg:mt-0">- <img- alt="Tesla Logo"- loading="lazy"- width={100}- height={30}- decoding="async"- style={{ color: "transparent" }}- src="/logos/tesla.svg"- />- </div>- <div className="flex justify-center items-center lg:mt-0">- <img- alt="Microsoft Logo"- loading="lazy"- width={98}- height={24}- decoding="async"- style={{ color: "transparent" }}- src="/logos/microsoft.svg"- />- </div>- <div className="flex justify-center items-center lg:mt-0">- <img- alt="Coinbase Logo"- loading="lazy"- width={139}- height={32}- decoding="async"- style={{ color: "transparent" }}- src="/logos/coinbase.svg"- />- </div>- <div className="flex justify-center items-center lg:mt-0">- <img- alt="IBM Logo"- loading="lazy"- width={80}- height={20}- decoding="async"- style={{ color: "transparent" }}- src="/logos/ibm.svg"- />- </div>- <div className="flex justify-center items-center lg:mt-0">- <img- alt="Dropbox Logo"- loading="lazy"- width={115}- height={50}- decoding="async"- style={{ color: "transparent" }}- src="/logos/dropbox.svg"- />- </div>- </div>- </div>- </div>- <div className="grid grid-cols-1 gap-3 items-stretch md:grid-cols-3">+ <div className="grid grid-cols-1 gap-3 items-stretch md:grid-cols-2"><CardclassName={`bg-gray-100 rounded-xl min-h-[600px] flex-grow ${- initialRender ? "fade-in-down animate-delay-2" : ""}`}+ initialRender ? "fade-in-down animate-delay-2" : ""+ }`}><div className="space-y-4"><CardHeader><CardTitle className="text-2xl">- Cap Lite (Open Source)+ App + Commercial License</CardTitle><CardDescription className="text-lg">- For personal and minimal use.+ For professional use of the desktop app, without cloud+ features.</CardDescription>- <h3 className="text-4xl">Free</h3>+ <div>+ <div className="flex items-center space-x-3">+ <h3 className="text-4xl">+ {isCommercialAnnual+ ? `$${29 * licenseQuantity}`+ : `$${58 * licenseQuantity}`}+ </h3>+ <div>+ <p className="text-sm font-medium">+ {isCommercialAnnual+ ? licenseQuantity === 1+ ? "billed annually"+ : `for ${licenseQuantity} licenses, billed annually`+ : licenseQuantity === 1+ ? "one-time payment"+ : `for ${licenseQuantity} licenses, one-time payment`}+ </p>+ {isCommercialAnnual && (+ <p className="text-sm">+ or, ${58 * licenseQuantity} one-time payment+ </p>+ )}+ </div>+ </div>+ <div className="flex items-center justify-between pt-4 mt-2 border-t border-gray-200">+ <div className="flex items-center">+ <span className="mr-2 text-xs">+ Switch to {isCommercialAnnual ? "lifetime" : "yearly"}+ </span>+ <Switch+ checked={!isCommercialAnnual}+ onCheckedChange={() =>+ setIsCommercialAnnual(!isCommercialAnnual)+ }+ />+ </div>+ <div className="flex items-center">+ <span className="mr-2 text-xs">Licenses:</span>+ <div className="flex gap-2 items-center">+ <Button+ variant="secondary"+ size="sm"+ onClick={() =>+ licenseQuantity > 1 &&+ setLicenseQuantity(licenseQuantity - 1)+ }+ className="px-2 py-0 h-6"+ >+ -+ </Button>+ <span className="w-4 text-center">+ {licenseQuantity}+ </span>+ <Button+ variant="secondary"+ size="sm"+ onClick={() =>+ setLicenseQuantity(licenseQuantity + 1)+ }+ className="px-2 py-0 h-6"+ >+ ++ </Button>+ </div>+ </div>+ </div>+ </div></CardHeader><CardContent><Button- href="/download"- className="w-full hover:bg-gray-200"- variant="white"+ onClick={openCommercialCheckout}+ className="w-full"size="lg"+ disabled={commercialLoading}>- Try for Free+ {commercialLoading+ ? "Loading..."+ : licenseQuantity > 1+ ? "Purchase Licenses"+ : "Purchase License"}</Button></CardContent><CardFooter>- <div className="space-y-2">- <div className="flex items-center">- <div className="w-5 h-5 m-0 p-0 flex items-center border-[2px] border-gray-500 justify-center rounded-full">- <Check className="w-3 h-3 stroke-[4px] stroke-gray-500" />- </div>- <p className="ml-1.5 text-gray-500">- Core features, including:- </p>+ <div className="space-y-8">+ <div>+ <ul className="p-0 space-y-3 list-none">+ {commercialList.map((item, index) => (+ <li+ key={index}+ className="flex justify-start items-center"+ >+ <div className="w-5 h-5 m-0 p-0 flex items-center border-[2px] border-green-500 justify-center rounded-full">+ <Check className="w-3 h-3 stroke-[4px] stroke-green-500" />+ </div>+ <span className="ml-1.5 font-bold text-gray-500">+ {item.text}+ </span>+ </li>+ ))}+ </ul></div>- <p className="pl-8">- Screen & Window recording, Local video export, 5 min- shareable links, Powerful video editor (custom background- gradients, transitions, etc) + many more.- </p></div></CardFooter></div></Card>+<Card- className={`bg-blue-300 rounded-xl min-h-[600px] flex-grow border-blue-500/20 ${- initialRender ? "fade-in-up animate-delay-2" : ""}`}+ className={`bg-gray-100 rounded-xl min-h-[600px] flex-grow border-blue-500 border-4 ${+ initialRender ? "fade-in-up animate-delay-2" : ""+ }`}><div className="space-y-3"><CardHeader>- <CardTitle className="text-3xl text-white">Cap Pro</CardTitle>- <CardDescription className="text-white/80">- For the best Cap experience.+ <CardTitle className="text-2xl font-medium">+ App + Commercial License +{" "}+ <span className="text-blue-500 text-2xl font-bold">+ Cap Pro+ </span>+ </CardTitle>+ <CardDescription className="text-lg">+ For professional use + cloud features like shareable links,+ transcriptions, comments, & more. Perfect for teams or+ sharing with clients.</CardDescription><div>- <div>- <h3 className="text-4xl text-white">+ <div className="flex items-center space-x-3">+ <h3 className="text-4xl">{isAnnual- ? `$${6 * quantity}/mo`- : `$${9 * quantity}/mo`}+ ? `$${6 * proQuantity}/mo`+ : `$${9 * proQuantity}/mo`}</h3><div>- <p className="text-sm font-medium text-white/80">+ <p className="text-sm font-medium">{isAnnual- ? quantity === 1+ ? proQuantity === 1? "per user, billed annually."- : `for ${quantity} users, billed annually.`- : quantity === 1+ : `for ${proQuantity} users, billed annually.`+ : proQuantity === 1? "per user, billed monthly."- : `for ${quantity} users, billed monthly.`}+ : `for ${proQuantity} users, billed monthly.`}</p>{isAnnual && (- <p- className="text-sm transition-colors cursor-pointer text-white/80 hover:text-white"- onClick={() => setIsAnnual(false)}- >- or, ${9 * quantity}/month,{" "}- {quantity === 1+ <p className="text-sm">+ or, ${9 * proQuantity}/month,{" "}+ {proQuantity === 1? "per user, "- : `for ${quantity} users, `}+ : `for ${proQuantity} users, `}billed monthly.</p>)}</div></div>- <div className="flex items-center pt-2 mt-2 border-t-2 border-white/20">- <span className="mr-2 text-xs text-white/80">- Number of users:- </span>- <div className="flex gap-2 items-center">- <Button- variant="secondary"- size="sm"- onClick={() =>- quantity > 1 && setQuantity(quantity - 1)- }- className="px-2 py-0 h-6"- >- -- </Button>- <span className="text-white min-w-[20px] text-center">- {quantity}- </span>- <Button- variant="secondary"- size="sm"- onClick={() => setQuantity(quantity + 1)}- className="px-2 py-0 h-6"- >- +- </Button>- </div>- </div>- <div className="flex flex-col gap-4 pt-4 mt-2 -mb-4 border-t-2 border-white/20">+ <div className="flex items-center justify-between pt-4 mt-2 border-t border-gray-200"><div className="flex items-center">- <span className="mr-2 text-xs text-white/80">- {isAnnual- ? "Switch to monthly"- : "Switch to annually"}+ <span className="mr-2 text-xs">+ Switch to {isAnnual ? "monthly" : "annually"}</span><Switchchecked={!isAnnual}onCheckedChange={() => setIsAnnual(!isAnnual)}/></div>+ <div className="flex items-center">+ <span className="mr-2 text-xs">Users:</span>+ <div className="flex gap-2 items-center">+ <Button+ variant="secondary"+ size="sm"+ onClick={() =>+ proQuantity > 1 && setProQuantity(proQuantity - 1)+ }+ className="px-2 py-0 h-6"+ >+ -+ </Button>+ <span className="w-4 text-center">{proQuantity}</span>+ <Button+ variant="secondary"+ size="sm"+ onClick={() => setProQuantity(proQuantity + 1)}+ className="px-2 py-0 h-6"+ >+ ++ </Button>+ </div>+ </div></div></div></CardHeader><CardContent><Button- type="button"- spinner={loading}+ variant="primary"onClick={() => planCheckout()}- className="-mb-4 w-full"+ className="w-full"size="lg"- variant="white"+ disabled={proLoading}>- Get Started with Pro+ {proLoading ? "Loading..." : "Upgrade to Cap Pro"}</Button></CardContent><CardFooter>@@ -400,10 +435,10 @@ export const PricingPage = () => {key={index}className="flex justify-start items-center">- <div className="w-5 h-5 m-0 p-0 flex items-center border-[2px] border-white justify-center rounded-full">- <Check className="w-3 h-3 stroke-[4px] stroke-white" />+ <div className="w-5 h-5 m-0 p-0 flex items-center border-[2px] border-green-500 justify-center rounded-full">+ <Check className="w-3 h-3 stroke-[4px] stroke-green-500" /></div>- <span className="ml-1.5 text-white">+ <span className="ml-1.5 text-gray-500 font-bold">{item.text}</span></li>@@ -414,77 +449,6 @@ export const PricingPage = () => {</CardFooter></div></Card>- <Card- className={`bg-gray-900 text-white rounded-xl min-h-[600px] flex-grow ${- initialRender ? "fade-in-down animate-delay-2" : ""}`}- >- <div className="space-y-4">- <CardHeader>- <CardTitle className="text-3xl">Custom</CardTitle>- <CardDescription className="text-white/80">- For teams and organizations who prioritize security.- </CardDescription>- </CardHeader>- <CardContent>- <Button- href="https://cap.link/sales"- className="w-full"- variant="white"- size="lg"- >- Schedule a Demo- </Button>- </CardContent>- <CardFooter>- <div className="space-y-8">- <div>- <ul className="p-0 space-y-3 list-none">- <li className="flex justify-start items-center">- <div className="w-5 h-5 m-0 p-0 flex items-center border-[2px] border-white justify-center rounded-full">- <Check className="w-3 h-3 stroke-[4px] stroke-white" />- </div>- <span className="ml-1.5 text-white">- Everything in Pro- </span>- </li>- <li className="flex justify-start items-center">- <div className="w-5 h-5 m-0 p-0 flex items-center border-[2px] border-white justify-center rounded-full">- <Check className="w-3 h-3 stroke-[4px] stroke-white" />- </div>- <span className="ml-1.5 text-white">- Custom deployment options- </span>- </li>- <li className="flex justify-start items-center">- <div className="w-5 h-5 m-0 p-0 flex items-center border-[2px] border-white justify-center rounded-full">- <Check className="w-3 h-3 stroke-[4px] stroke-white" />- </div>- <span className="ml-1.5 text-white">- Dedicated support- </span>- </li>- <li className="flex justify-start items-center">- <div className="w-5 h-5 m-0 p-0 flex items-center border-[2px] border-white justify-center rounded-full">- <Check className="w-3 h-3 stroke-[4px] stroke-white" />- </div>- <span className="ml-1.5 text-white">- SLA guarantees- </span>- </li>- <li className="flex justify-start items-center">- <div className="w-5 h-5 m-0 p-0 flex items-center border-[2px] border-white justify-center rounded-full">- <Check className="w-3 h-3 stroke-[4px] stroke-white" />- </div>- <span className="ml-1.5 text-white">- Custom integrations- </span>- </li>- </ul>- </div>- </div>- </CardFooter>- </div>- </Card></div></div><div>diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjsindex 156bf10a1..5c7a0035a 100644--- a/apps/web/next.config.mjs+++ b/apps/web/next.config.mjs@@ -36,6 +36,12 @@ const nextConfig = {port: "",pathname: "**",},+ {+ protocol: "https",+ hostname: "l.cap.so",+ port: "",+ pathname: "**",+ },process.env.NODE_ENV === "development" && {protocol: "http",hostname: "localhost",@@ -50,6 +56,10 @@ const nextConfig = {source: "/r/:path*",destination: "https://dub.cap.link/:path*",},+ {+ source: "/api/commercial/:path*",+ destination: "https://l.cap.so/api/commercial/:path*",+ },{source: '/s/:videoId',destination: '/s/:videoId',diff --git a/packages/ui/src/components/Switch.tsx b/packages/ui/src/components/Switch.tsxindex d2a63a851..30f3532be 100644--- a/packages/ui/src/components/Switch.tsx+++ b/packages/ui/src/components/Switch.tsx@@ -19,7 +19,7 @@ const Switch = React.forwardRef<><SwitchPrimitives.ThumbclassName={classNames(- "pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"+ "pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0 border border-gray-400")}/></SwitchPrimitives.Root>diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 3acf47fc1..ff5e05a13 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -720,7 +720,7 @@ importers:version: 14.2.9(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])next-auth:specifier: ^4.24.5- version: 4.24.8([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 4.24.8([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])react-email:specifier: ^1.10.1version: 1.10.1@@ -4640,10 +4640,10 @@ packages:react-dom:optional: true- '@storybook/[email protected]':- resolution: {integrity: sha512-q6dHn+oLBm697mrsCxL+QLigTsqxpX9fo8Y/QWhJjlKT43pz9TNPqDEsUFcmU66PNnqJ8VXe9XzHyTlruDZF3A==}+ '@storybook/[email protected]':+ resolution: {integrity: sha512-3p9x+8ruP6jILdbRXHpKljG6hc0hjX/MRKYeALWNsP9jpiI9i1TPSlrk3uDg/AY7R8xgpvtrQmX00TlCHntozg==}peerDependencies:- storybook: ^8.6.0-beta.2+ storybook: ^8.6.0-beta.8vite: ^4.0.0 || ^5.0.0 || ^6.0.0'@storybook/[email protected]':@@ -4654,10 +4654,10 @@ packages:peerDependencies:storybook: ^8.3.3- '@storybook/[email protected]':- resolution: {integrity: sha512-Be6F6E3lSzWct3ZKaJp1lR2PXStqHOutnFMp971m9IuNPj7Tija9HBSqbTool7JZFrVmPGbMoG9F7StHA8OAmQ==}+ '@storybook/[email protected]':+ resolution: {integrity: sha512-VeiMSp1Z6I3gSVqLXjKb0BD2Kn9Wp0CZpM5ZjO6VpNOzHdaOx/psPwn8U6LpQgPuygk303TGSaGedIdEZX4D9w==}peerDependencies:- storybook: ^8.6.0-beta.2+ storybook: ^8.6.0-beta.8'@storybook/[email protected]':resolution: {integrity: sha512-dHYFQH3mA+EtnCkHXzicbLgsvzYjcDJ1JWsogbItZogkPHgSJM/Wr71uMkcvw8v9mmCyP4NpXJuu6bPoVsOnzg==}@@ -7717,6 +7717,9 @@ packages:resolution: {integrity: sha512-6cD7xN6bycBHaXz2WyPIaHn/iXFizE5au2yvY5q9aC4wfihxAr16C9fUy4nxh2a3wOw0fEgLRa9dN6wsYjlpNg==}+ resolution: {integrity: sha512-uu0VXUK52JhihhnN/MVVo1lvqNNuhoxkonqgO3IpjvQiGpJBdIXMGkofjQb/j9zvV7a1SW8U9g1FslWx/1HOiQ==}+resolution: {integrity: sha512-V3eWoPkBxoNgFCkSc5Y5rpLF6YoQQx1pkYO4qrF6YfOw8RZbujUNlJLZCxh0z9gZct70+je2Ih7Zrdpv21hP9w==}engines: {node: '>=16.9.0'}@@ -9677,6 +9680,9 @@ packages:resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}+ resolution: {integrity: sha512-OzwGziw/mECZIq+15lwTbewP9IqoqSrImXHQiXJKyMdZZlSICSZvhUub0JBo/aMTVEDMzckhvLB38MlP4jvFkg==}+resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==}engines: {node: '>=4'}@@ -15952,9 +15958,9 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])- '@storybook/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))':+ '@storybook/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))':dependencies:- '@storybook/csf-plugin': 8.6.0-beta.2([email protected])+ '@storybook/csf-plugin': 8.6.0-beta.8([email protected])browser-assert: 1.2.1storybook: 8.3.3ts-dedent: 2.2.0@@ -15985,7 +15991,7 @@ snapshots:storybook: 8.3.3unplugin: 1.16.1- '@storybook/[email protected]([email protected])':+ '@storybook/[email protected]([email protected])':dependencies:storybook: 8.3.3unplugin: 1.16.1@@ -19918,6 +19924,8 @@ snapshots:+ [email protected]: {}+@@ -22089,7 +22097,7 @@ snapshots:optionalDependencies:nodemailer: 6.9.15- [email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]):+ [email protected]([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]):dependencies:'@babel/runtime': 7.25.6'@panva/hkdf': 1.2.1@@ -22700,6 +22708,10 @@ snapshots:mlly: 1.7.4pathe: 2.0.3+ dependencies:+ media-chrome: 4.5.0+@@ -23813,7 +23825,7 @@ snapshots:[email protected]([email protected])([email protected](@types/[email protected])([email protected])):dependencies:- '@storybook/builder-vite': 8.6.0-beta.2([email protected])([email protected](@types/[email protected])([email protected]))+ '@storybook/builder-vite': 8.6.0-beta.8([email protected])([email protected](@types/[email protected])([email protected]))transitivePeerDependencies:- storybook- vite