Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
New Landing page (#708)
Ameer Al Ashhab7dfc31c7ce01
diff --git a/apps/web/app/(org)/dashboard/_components/DashboardInner.tsx b/apps/web/app/(org)/dashboard/_components/DashboardInner.tsxindex ccf3c58dd..21a421d44 100644--- a/apps/web/app/(org)/dashboard/_components/DashboardInner.tsx+++ b/apps/web/app/(org)/dashboard/_components/DashboardInner.tsx@@ -83,7 +83,7 @@ export default function DashboardInner({name={activeSpace?.name}/>))}- <p className="relative text-base truncate md:text-lg text-gray-12 lg:text-2xl">+ <p className="relative text-lg truncate text-gray-12 lg:text-2xl">{title}</p></div>diff --git a/apps/web/app/(org)/dashboard/_components/Navbar/CapAIBox.tsx b/apps/web/app/(org)/dashboard/_components/Navbar/CapAIBox.tsxnew file mode 100644index 000000000..dd5334c31--- /dev/null+++ b/apps/web/app/(org)/dashboard/_components/Navbar/CapAIBox.tsx@@ -0,0 +1,66 @@+import { Dialog, DialogTrigger } from "@cap/ui";+import { useRive, Fit, Layout } from "@rive-app/react-canvas";+import CapAIDialog from "./CapAIDialog";+import { memo, useState } from "react";+import clsx from "clsx";+import { motion } from "framer-motion";+import { useTheme } from "../../Contexts";++const CapAIBox = ({+ openAIDialog,+ setOpenAIDialog,+}: {+ openAIDialog: boolean;+ setOpenAIDialog: (open: boolean) => void;+}) => {+ const [hovered, setHovered] = useState(false);+ return (+ <Dialog open={openAIDialog} onOpenChange={setOpenAIDialog}>+ <DialogTrigger asChild>+ <motion.div+ layout+ transition={{+ type: "spring",+ }}+ onMouseEnter={() => setHovered(true)}+ onMouseLeave={() => setHovered(false)}+ className="p-3 mb-6 w-full rounded-xl border transition-colors cursor-pointer hover:bg-gray-2 h-fit border-gray-3"+ >+ <div className="flex justify-between items-center px-3 pb-3 w-full">+ <h3 className="text-sm font-medium text-gray-12">Cap AI</h3>+ <p className="text-xs text-gray-10">Available now</p>+ </div>+ <CapAIArt />+ <div+ className={clsx(+ "overflow-hidden pt-3 text-xs font-medium text-center text-gray-12 read-more-transition"+ )}+ style={{+ maxHeight: hovered ? 32 : 0, // 32px for one line of text, adjust if multiline+ opacity: hovered ? 1 : 0,+ }}+ aria-hidden={!hovered}+ >+ Read more+ </div>+ </motion.div>+ </DialogTrigger>+ <CapAIDialog setOpen={(open) => setOpenAIDialog(open)} />+ </Dialog>+ );+};++const CapAIArt = memo(() => {+ const { theme } = useTheme();+ const { RiveComponent: CapAIArt } = useRive({+ src: "/rive/bento.riv",+ artboard: theme === "light" ? "capai" : "capaidark",+ autoplay: true,+ layout: new Layout({+ fit: Fit.Contain,+ }),+ });+ return <CapAIArt key={theme} className="h-[100px]" />;+});++export default CapAIBox;diff --git a/apps/web/app/(org)/dashboard/_components/Navbar/CapAIDialog.tsx b/apps/web/app/(org)/dashboard/_components/Navbar/CapAIDialog.tsxnew file mode 100644index 000000000..2c7236c5b--- /dev/null+++ b/apps/web/app/(org)/dashboard/_components/Navbar/CapAIDialog.tsx@@ -0,0 +1,112 @@+import {+ Button,+ DialogContent,+ DialogHeader,+ DialogTitle,+ DialogFooter,+} from "@cap/ui";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import {+ faInfoCircle,+ faWandMagicSparkles,+} from "@fortawesome/free-solid-svg-icons";+import { useRive, Fit, Layout } from "@rive-app/react-canvas";+import { useTheme, useDashboardContext } from "../../Contexts";++const CapAIDialog = ({ setOpen }: { setOpen: (open: boolean) => void }) => {+ const { theme } = useTheme();+ const { isSubscribed, setUpgradeModalOpen } = useDashboardContext();++ const { RiveComponent: CapAIArt } = useRive({+ src: "/rive/bento.riv",+ artboard: theme === "light" ? "capai" : "capaidark",+ animations: ["in"],+ autoplay: true,+ layout: new Layout({+ fit: Fit.Contain,+ }),+ });++ return (+ <DialogContent+ onOpenAutoFocus={(e) => e.preventDefault()}+ className="w-[calc(100%-20px)] max-w-[500px]"+ >+ <DialogHeader icon={<FontAwesomeIcon icon={faInfoCircle} />}>+ <DialogTitle className="flex gap-2 items-center text-lg font-medium text-gray-12">+ Cap AI+ <span className="inline-flex items-center text-xs font-medium px-2 py-0.5 rounded-full bg-gradient-to-br from-blue-400 to-blue-600 text-white">+ Pro+ </span>+ </DialogTitle>+ </DialogHeader>+ <div className="p-8">+ <CapAIArt className="w-full max-w-[450px] mx-auto h-[240px]" />+ <div className="pt-5 space-y-4">+ <p className="text-base text-gray-11">+ Cap AI automatically processes your recordings to make them more+ useful and accessible.+ </p>+ <h4 className="text-sm font-medium text-gray-12">+ Features include:+ </h4>+ <ul className="flex flex-wrap gap-2 text-sm text-gray-11">+ {[+ "Auto-generated titles",+ "Recording summaries",+ "Clickable chapters",+ "Automatic transcriptions",+ ].map((feature) => (+ <li+ key={feature}+ className="flex flex-1 items-center border border-gray-5 py-2 px-2.5 rounded-xl min-w-fit bg-gray-3"+ >+ <FontAwesomeIcon+ icon={faWandMagicSparkles}+ className="mr-2 mt-0.5 text-blue-11 size-3"+ />+ <span>{feature}</span>+ </li>+ ))}+ </ul>+ </div>+ </div>+ <DialogFooter>+ {!isSubscribed ? (+ <div className="flex gap-2 ml-auto">+ <Button+ autoFocus={false}+ className="min-w-[100px]"+ variant="gray"+ onClick={() => setOpen(false)}+ >+ Close+ </Button>+ <Button+ autoFocus={false}+ className="min-w-[100px]"+ variant="blue"+ onClick={() => {+ setOpen(false);+ setUpgradeModalOpen(true);+ }}+ >+ Upgrade to Pro+ </Button>+ </div>+ ) : (+ <Button+ autoFocus={false}+ className="min-w-[100px] max-w-fit ml-auto"+ variant="primary"+ onClick={() => setOpen(false)}+ >+ Close+ </Button>+ )}+ </DialogFooter>+ </DialogContent>+ );+};++export default CapAIDialog;diff --git a/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx b/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsxindex f436c2e53..16f03a4f8 100644--- a/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx+++ b/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx@@ -21,6 +21,8 @@ import {PopoverContent,PopoverTrigger,} from "@cap/ui";+import CapAIBox from "./CapAIBox";+import { AnimatePresence } from "framer-motion";import { classNames } from "@cap/utils";import { faBuilding } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";@@ -37,7 +39,6 @@ import { CogIcon, CogIconHandle } from "../AnimatedIcons/Cog";import { updateActiveOrganization } from "./server";import SpacesList from "./SpacesList";-interface Props {toggleMobileNav?: () => void;}@@ -88,6 +89,7 @@ const AdminNavItems = ({ toggleMobileNav }: Props) => {const [createLoading, setCreateLoading] = useState(false);const [organizationName, setOrganizationName] = useState("");const isOwner = activeOrg?.organization.ownerId === user.id;+ const [openAIDialog, setOpenAIDialog] = useState(false);const isPathActive = (path: string) => pathname.includes(path);@@ -320,6 +322,25 @@ const AdminNavItems = ({ toggleMobileNav }: Props) => {<SpacesList toggleMobileNav={() => toggleMobileNav?.()} /></div><div className="pb-4 mt-auto w-full">+ <AnimatePresence>+ {!sidebarCollapsed && (+ <motion.div+ initial={{ scale: 0 }}+ animate={{ scale: 1 }}+ exit={{ scale: 0 }}+ transition={{+ type: "spring",+ bounce: 0.2,+ duration: 0.2,+ }}+ >+ <CapAIBox+ openAIDialog={openAIDialog}+ setOpenAIDialog={setOpenAIDialog}+ />+ </motion.div>+ )}+ </AnimatePresence><UsageButtontoggleMobileNav={() => toggleMobileNav?.()}subscribed={userIsSubscribed}diff --git a/apps/web/app/(org)/dashboard/caps/Caps.tsx b/apps/web/app/(org)/dashboard/caps/Caps.tsxindex 3725858f2..df70b477d 100644--- a/apps/web/app/(org)/dashboard/caps/Caps.tsx+++ b/apps/web/app/(org)/dashboard/caps/Caps.tsx@@ -262,7 +262,7 @@ export const Caps = ({</div></div>)}- <div className="flex justify-start mb-5">+ <div className="flex justify-start mb-4"><UploadCapButtononStart={handleUploadStart}size="sm"diff --git a/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx b/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsxindex 81941c58a..b69957307 100644--- a/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx+++ b/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx@@ -261,7 +261,7 @@ export const CapCard = ({onDragStart={handleDragStart}onDragEnd={handleDragEnd}className={clsx(- "flex relative flex-col gap-4 w-full h-full rounded-xl cursor-default bg-gray-1 border-gray-3 group border-px",+ "flex relative flex-col gap-4 w-full h-full rounded-xl cursor-default bg-gray-1 border border-gray-3 group border-px",isSelected? "!border-blue-10 border-px": anyCapSelecteddiff --git a/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsx b/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsxindex 735c097f7..fd30628ef 100644--- a/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsx+++ b/apps/web/app/(org)/dashboard/caps/components/UploadCapButton.tsx@@ -22,11 +22,13 @@ export const UploadCapButton = ({onProgress,onComplete,size = "md",+ grey = false,}: {onStart?: (id: string, thumbnail?: string) => void;onProgress?: (id: string, progress: number, uploadProgress?: number) => void;onComplete?: (id: string) => void;size?: "sm" | "lg" | "md";+ grey?: boolean;}) => {const { user, isSubscribed } = useDashboardContext();const inputRef = useRef<HTMLInputElement>(null);diff --git a/apps/web/app/(org)/dashboard/settings/organization/components/InviteDialog.tsx b/apps/web/app/(org)/dashboard/settings/organization/components/InviteDialog.tsxindex d453c1c1e..f70aa51d2 100644--- a/apps/web/app/(org)/dashboard/settings/organization/components/InviteDialog.tsx+++ b/apps/web/app/(org)/dashboard/settings/organization/components/InviteDialog.tsx@@ -3,13 +3,13 @@import { sendOrganizationInvites } from "@/actions/organization/send-invites";import { calculateSeats } from "@/utils/organization";import {- Button,- Dialog,- DialogContent,- DialogFooter,- DialogHeader,- DialogTitle,- Input,+ Button,+ Dialog,+ DialogContent,+ DialogFooter,+ DialogHeader,+ DialogTitle,+ Input,} from "@cap/ui";import { faUserGroup } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";diff --git a/apps/web/app/(site)/Footer.tsx b/apps/web/app/(site)/Footer.tsxindex 8c2cfad7a..ca94e8b03 100644--- a/apps/web/app/(site)/Footer.tsx+++ b/apps/web/app/(site)/Footer.tsx@@ -101,144 +101,142 @@ export const Footer = () => {style={{ boxShadow: "0px 2px 8px rgba(18, 22, 31, 0.02)" }}className="mx-auto max-w-[1400px] bg-gray-1 border-[1px] border-gray-200 p-8 lg:p-12 rounded-[20px] mb-10 relative overflow-hidden">- <div className="grid relative z-10 grid-cols-1 gap-8 justify-between items-start lg:grid-cols-12">+ <div className="flex relative z-10 flex-col-reverse items-center">{/* Logo Column */}- <div className="col-span-12 space-y-2 sm:space-y-4 lg:col-span-5">- <Logo className="w-[104px] h-auto" />+ <div className="flex-1 mt-10 space-y-2 text-center md:mt-0">+ <Logo className="w-[104px] h-auto mx-auto" /><div className="w-full"><p className="max-w-sm text-gray-12">Cap is the open source alternative to Loom. Lightweight,powerful, and cross-platform. Record and share in seconds.</p></div>- <p className="text-gray-10">+ <p className="pt-4 text-sm text-gray-9">© Cap Software, Inc. {new Date().getFullYear()}.</p>- <div className="flex space-x-3">- <a className="text-sm text-gray-10" href="/terms">+ <div className="flex justify-center pt-6 space-x-10">+ <a className="text-sm text-gray-8" href="/terms">Terms of Service</a>- <a className="text-sm text-gray-10" href="/privacy">+ <a className="text-sm text-gray-8" href="/privacy">Privacy Policy</a></div></div>{/* Links Container Column */}- <div className="col-span-12 lg:col-span-7">- <div className="grid grid-cols-1 gap-8 xs:grid-cols-2 sm:grid-cols-3">- {/* Product Column */}- <div className="space-y-4">- <h3 className="text-lg font-semibold text-gray-12">Product</h3>- <ul className="space-y-2">- {footerLinks.product.map((link, index) => (- <li key={index}>- <Link- className="text-gray-10"- href={link.href}- target={link.isExternal ? "_blank" : undefined}- >- {link.label}- </Link>- </li>- ))}- </ul>+ <div className="grid grid-cols-1 gap-10 w-full md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6">+ {/* Product Column */}+ <div className="space-y-2">+ <h3 className="text-lg font-semibold text-gray-12">Product</h3>+ <ul className="grid grid-cols-1 gap-2 pt-2">+ {footerLinks.product.map((link, index) => (+ <li key={index}>+ <Link+ className="text-gray-10"+ href={link.href}+ target={link.isExternal ? "_blank" : undefined}+ >+ {link.label}+ </Link>+ </li>+ ))}+ </ul>+ </div>++ <div className="space-y-2">+ <h3 className="text-lg font-semibold text-gray-12">+ Additional Links+ </h3>+ <ul className="grid grid-cols-1 gap-2 pt-2">+ {footerLinks.additional.map((link, index) => (+ <li key={index}>+ <Link+ className="text-gray-10"+ href={link.href}+ target={link.isExternal ? "_blank" : undefined}+ >+ {link.label}+ </Link>+ </li>+ ))}+ </ul>+ </div>- <div className="pt-4">- <h3 className="text-lg font-semibold text-gray-12">- Additional Links- </h3>- <ul className="grid grid-cols-1 gap-2 pt-2">- {footerLinks.additional.map((link, index) => (- <li key={index}>- <Link- className="text-gray-10"- href={link.href}- target={link.isExternal ? "_blank" : undefined}- >- {link.label}- </Link>- </li>- ))}- </ul>- </div>- </div>+ {/* Help Column */}+ <div className="space-y-2">+ <h3 className="text-lg font-semibold text-gray-12">Cap</h3>+ <ul className="grid grid-cols-1 gap-2 pt-2">+ {footerLinks.help.map((link, index) => (+ <li key={index}>+ <Link+ className="text-gray-10"+ href={link.href}+ target={link.isExternal ? "_blank" : undefined}+ >+ {link.label}+ </Link>+ </li>+ ))}+ </ul>+ </div>- {/* Help Column */}- <div className="space-y-4">- <ul className="space-y-2">- {footerLinks.help.map((link, index) => (- <li key={index}>- <Link- className="text-gray-10"- href={link.href}- target={link.isExternal ? "_blank" : undefined}- >- {link.label}- </Link>- </li>- ))}- </ul>+ <div className="space-y-2">+ <h3 className="text-lg font-semibold text-gray-12">Use Cases</h3>+ <ul className="grid grid-cols-1 gap-2 pt-2">+ {footerLinks.useCases.map((link, index) => (+ <li key={index}>+ <Link+ className="text-gray-10"+ href={link.href}+ target={link.isExternal ? "_blank" : undefined}+ >+ {link.label}+ </Link>+ </li>+ ))}+ </ul>+ </div>- <div className="pt-4">- <h3 className="text-lg font-semibold text-gray-12">- Use Cases- </h3>- <ul className="grid grid-cols-1 gap-2 pt-2">- {footerLinks.useCases.map((link, index) => (- <li key={index}>- <Link- className="text-gray-10"- href={link.href}- target={link.isExternal ? "_blank" : undefined}- >- {link.label}- </Link>- </li>- ))}- </ul>- </div>- </div>+ {/* Socials Column */}+ <div className="space-y-2">+ <h3 className="text-lg font-semibold text-gray-12">Socials</h3>+ <ul className="grid grid-cols-1 gap-2 pt-2">+ {footerLinks.socials.map((link, index) => (+ <li key={index}>+ <Link+ className="text-gray-10"+ href={link.href}+ target={link.isExternal ? "_blank" : undefined}+ >+ {link.label}+ </Link>+ </li>+ ))}+ </ul>+ </div>- {/* Socials Column */}- <div className="space-y-4">- <h3 className="text-lg font-semibold text-gray-12">Socials</h3>- <ul className="space-y-2">- {footerLinks.socials.map((link, index) => (- <li key={index}>- <Link- className="text-gray-10"- href={link.href}- target={link.isExternal ? "_blank" : undefined}- >- {link.label}- </Link>- </li>- ))}- </ul>+ <div className="space-y-2">+ <Link+ href="/tools"+ className="text-lg font-semibold text-gray-12"+ >+ Tools+ </Link>- <div className="pt-4">- <Link- href="/tools"- className="text-lg font-semibold text-gray-12"- >- Tools- </Link>- <ul className="grid grid-cols-1 gap-2 pt-2">- {footerLinks.tools.map((link, index) => (- <li key={index}>- <Link- className="text-gray-10"- href={link.href}- target={link.isExternal ? "_blank" : undefined}- >- {link.label}- </Link>- </li>- ))}- </ul>- </div>- </div>+ <ul className="grid grid-cols-1 gap-2 pt-2">+ {footerLinks.tools.map((link, index) => (+ <li key={index}>+ <Link+ className="text-gray-10"+ href={link.href}+ target={link.isExternal ? "_blank" : undefined}+ >+ {link.label}+ </Link>+ </li>+ ))}+ </ul></div></div></div>diff --git a/apps/web/app/(site)/Navbar.tsx b/apps/web/app/(site)/Navbar.tsxindex 13520dcd3..baaf792f4 100644--- a/apps/web/app/(site)/Navbar.tsx+++ b/apps/web/app/(site)/Navbar.tsx@@ -169,7 +169,7 @@ export const Navbar = () => {<Suspensefallback={<Button- variant="darkgradient"+ variant="dark"disabledsize="sm"className="w-full font-medium sm:w-auto"@@ -229,7 +229,7 @@ function LoginOrDashboard() {const auth = use(useAuthContext().user);return (<Button- variant="darkgradient"+ variant="dark"href={auth ? "/dashboard" : "/login"}size="sm"className="w-full font-medium sm:w-auto"diff --git a/apps/web/app/(site)/features/FeaturesPage.tsx b/apps/web/app/(site)/features/FeaturesPage.tsxnew file mode 100644index 000000000..e3eeb04e1--- /dev/null+++ b/apps/web/app/(site)/features/FeaturesPage.tsx@@ -0,0 +1,477 @@+"use client";++import { Button } from "@cap/ui";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import Link from "next/link";+import {+ faVideo,+ faRocket,+ faCloud,+ faLock,+ faUsers,+ faMagic,+ faPalette,+ faShareNodes,+ faCode,+ faGlobe,+ faWandMagicSparkles,+ faCamera,+ faKeyboard,+ faChartLine,+ faEye,+ faVolumeUp,+ faEdit,+ faDownload,+ faExpand,+ faClock,+ faComments,+ faMobileAlt,+ faServer,+ faCog,+ faShieldAlt,+ faInfinity,+ faCheckCircle,+ faBolt,+ faDesktop,+} from "@fortawesome/free-solid-svg-icons";++interface Feature {+ icon: any;+ title: string;+ description: string;+ category: "recording" | "ai" | "sharing" | "editing" | "platform" | "privacy";+ isPro?: boolean;+ isComingSoon?: boolean;+ size?: "small" | "medium" | "large";+}++const features: Feature[] = [+ {+ icon: faVideo,+ title: "Instant & Studio Modes",+ description:+ "Choose between quick shareable recordings or professional local editing with Studio Mode",+ category: "recording",+ size: "medium",+ },+ {+ icon: faRocket,+ title: "4K 60fps Recording",+ description:+ "Crystal-clear recordings at up to 4K resolution and 60 frames per second",+ category: "recording",+ },+ {+ icon: faCamera,+ title: "Composite Recording",+ description:+ "Camera and screen recorded separately and rendered as one video in real-time",+ category: "recording",+ },+ {+ icon: faDesktop,+ title: "Multiple Layouts",+ description:+ "Choose from various recording layouts to best showcase your content",+ category: "recording",+ },+ {+ icon: faPalette,+ title: "Custom Branding",+ description:+ "Add your logo, colors, and custom backgrounds to match your brand",+ category: "recording",+ },+ {+ icon: faBolt,+ title: "Blazing Fast Native App",+ description:+ "Lightning-fast performance with native macOS and Windows applications",+ category: "platform",+ },+ {+ icon: faKeyboard,+ title: "Keyboard Shortcuts",+ description:+ "Efficient workflow with customizable keyboard shortcuts for all actions",+ category: "recording",+ },+ {+ icon: faExpand,+ title: "Smart Auto-Zoom",+ description: "Automatically zoom in on important content during recordings",+ category: "recording",+ },+ {+ icon: faCog,+ title: "Advanced Cursor Settings",+ description:+ "Customize cursor size, style, animations, and motion blur effects",+ category: "recording",+ },+ {+ icon: faPalette,+ title: "Background Customization",+ description:+ "Choose from colors, gradients, images, or blur effects for your background",+ category: "editing",+ },++ {+ icon: faWandMagicSparkles,+ title: "AI-Generated Titles",+ description: "Automatically generate engaging titles for your recordings",+ category: "ai",+ isPro: true,+ },+ {+ icon: faMagic,+ title: "Smart Summaries",+ description: "Get AI-powered summaries of your recording content instantly",+ category: "ai",+ isPro: true,+ size: "medium",+ },+ {+ icon: faCheckCircle,+ title: "Clickable Chapters",+ description:+ "Auto-generated chapter markers for easy navigation through long recordings",+ category: "ai",+ isPro: true,+ },+ {+ icon: faComments,+ title: "Automatic Transcriptions",+ description: "Accurate transcriptions generated for every recording",+ category: "ai",+ isPro: true,+ size: "medium",+ },+ {+ icon: faEdit,+ title: "Auto-Edit",+ description:+ "AI-powered automatic editing to remove silences and improve pacing",+ category: "ai",+ isComingSoon: true,+ },+ {+ icon: faVolumeUp,+ title: "Noise Reduction",+ description: "Advanced AI noise reduction for crystal-clear audio",+ category: "ai",+ isComingSoon: true,+ },++ {+ icon: faCloud,+ title: "Unlimited Cloud Storage",+ description:+ "Store all your recordings in the cloud with no storage limits",+ category: "sharing",+ isPro: true,+ size: "medium",+ },+ {+ icon: faShareNodes,+ title: "Instant Shareable Links",+ description:+ "Share recordings instantly with a simple link - no downloads required",+ category: "sharing",+ },+ {+ icon: faLock,+ title: "Password Protection",+ description: "Secure your sensitive recordings with password protection",+ category: "sharing",+ isPro: true,+ },+ {+ icon: faChartLine,+ title: "Viewer Analytics",+ description: "Track views, engagement, and watch time for your recordings",+ category: "sharing",+ isPro: true,+ },+ {+ icon: faUsers,+ title: "Team Workspaces",+ description: "Collaborate with your team in organized workspaces",+ category: "sharing",+ isPro: true,+ },+ {+ icon: faComments,+ title: "Thread Comments",+ description: "Contextual discussions with timestamp-linked comments",+ category: "sharing",+ },+ {+ icon: faGlobe,+ title: "Custom Domain",+ description: "Share recordings from your own domain (cap.yourdomain.com)",+ category: "sharing",+ isPro: true,+ },+ {+ icon: faCode,+ title: "Embed Support",+ description: "Embed recordings anywhere with customizable players",+ category: "sharing",+ },++ {+ icon: faServer,+ title: "Custom S3 Bucket",+ description: "Use your own S3 storage for complete data ownership",+ category: "privacy",+ isPro: true,+ },+ {+ icon: faShieldAlt,+ title: "Local Recording",+ description:+ "Record and store everything locally with Cap Studio Mode - your data never leaves your device",+ category: "privacy",+ size: "medium",+ },+ {+ icon: faLock,+ title: "End-to-End Encryption",+ description: "Military-grade encryption for cloud-stored recordings",+ category: "privacy",+ isPro: true,+ },+ {+ icon: faCode,+ title: "100% Open Source",+ description:+ "Fully transparent, auditable code you can trust and contribute to",+ category: "privacy",+ size: "medium",+ },+ {+ icon: faServer,+ title: "Self-Hosting",+ description: "Deploy Cap on your own infrastructure for ultimate control",+ category: "privacy",+ },++ {+ icon: faMobileAlt,+ title: "Cross-Platform",+ description: "Native apps for macOS (Apple Silicon & Intel) and Windows",+ category: "platform",+ size: "medium",+ },++ {+ icon: faClock,+ title: "Timeline Editor",+ description: "Professional timeline editing with frame-perfect precision",+ category: "editing",+ size: "medium",+ },+ {+ icon: faEdit,+ title: "Split & Trim",+ description: "Cut, split, and trim your recordings with ease",+ category: "editing",+ },+ {+ icon: faDownload,+ title: "Export Any Format",+ description: "Export to MP4, WebM, MOV, GIF and more formats",+ category: "editing",+ },+ {+ icon: faClock,+ title: "Speed Control",+ description: "Adjust playback speed from 0.25x to 3x",+ category: "editing",+ },+ {+ icon: faInfinity,+ title: "No Watermarks",+ description: "Your recordings are yours - no Cap watermarks ever",+ category: "editing",+ },++ {+ icon: faChartLine,+ title: "Performance Insights",+ description: "Detailed analytics on recording performance and system usage",+ category: "platform",+ isComingSoon: true,+ },+ {+ icon: faServer,+ title: "Webhooks & API",+ description:+ "Integrate Cap into your workflow with webhooks and API access",+ category: "platform",+ isPro: true,+ isComingSoon: true,+ size: "medium",+ },+ {+ icon: faWandMagicSparkles,+ title: "AI Video Search",+ description: "Search through your recordings using natural language",+ category: "ai",+ isPro: true,+ isComingSoon: true,+ },+];++const categoryColors = {+ recording: "bg-gray-1 dark:bg-gray-2 border-gray-3",+ ai: "bg-gray-1 dark:bg-gray-2 border-gray-3",+ sharing: "bg-gray-1 dark:bg-gray-2 border-gray-3",+ editing: "bg-gray-1 dark:bg-gray-2 border-gray-3",+ platform: "bg-gray-1 dark:bg-gray-2 border-gray-3",+ privacy: "bg-gray-1 dark:bg-gray-2 border-gray-3",+};++const categoryIcons = {+ recording: { icon: faVideo, color: "text-gray-11" },+ ai: { icon: faWandMagicSparkles, color: "text-gray-11" },+ sharing: { icon: faShareNodes, color: "text-gray-11" },+ editing: { icon: faEdit, color: "text-gray-11" },+ platform: { icon: faDesktop, color: "text-gray-11" },+ privacy: { icon: faShieldAlt, color: "text-gray-11" },+};++export const FeaturesPage = () => {+ return (+ <div className="min-h-screen">+ <div className="relative z-10 px-5 pt-32 pb-20 w-full">+ <div className="mx-auto text-center wrapper wrapper-sm">+ <h1 className="text-[2rem] font-medium leading-[2.5rem] md:text-[3.75rem] md:leading-[4rem] relative z-10 mb-4">+ The screen recorder for+ <br />+ <span className="text-gray-11">teams and creators</span>+ </h1>+ <p className="mx-auto mb-8 max-w-3xl text-md sm:text-xl text-gray-10">+ Whether you're a solo creator or a global agency, Cap scales with+ you. Record in 4K, collaborate seamlessly, maintain brand+ consistency, and ship content faster. All while keeping full control+ of your data.+ </p>++ <div className="flex flex-col justify-center items-center space-y-2 sm:flex-row sm:space-y-0 sm:space-x-2">+ <Button+ href="/download"+ variant="primary"+ size="lg"+ className="flex justify-center items-center w-full font-medium text-md sm:w-auto"+ >+ Download Cap Free+ </Button>+ <Button+ href="/pricing"+ variant="blue"+ size="lg"+ className="flex justify-center items-center w-full font-medium text-md sm:w-auto"+ >+ Upgrade to Cap Pro+ </Button>+ </div>+ </div>+ </div>++ <div className="wrapper pb-32">+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 auto-rows-[minmax(200px,_auto)] grid-flow-dense">+ {features.map((feature, index) => {+ const sizeClasses = {+ small: "col-span-1",+ medium: "col-span-1 md:col-span-2",+ large: "col-span-1 md:col-span-2 lg:col-span-2",+ };++ return (+ <div+ key={index}+ className={`+ ${sizeClasses[feature.size || "small"]}+ group relative overflow-hidden rounded-xl border p-6+ ${categoryColors[feature.category]}+ hover:border-gray-5 transition-all duration-200+ ${feature.isComingSoon ? "opacity-75" : ""}+ `}+ >+ <div+ className={`+ w-12 h-12 rounded-lg flex items-center justify-center mb-4+ bg-gray-2 dark:bg-gray-3+ ${categoryIcons[feature.category].color}+ `}+ >+ <FontAwesomeIcon icon={feature.icon} className="w-6 h-6" />+ </div>++ <h3 className="text-lg font-semibold mb-2 text-gray-12">+ {feature.title}+ {feature.isPro && (+ <Link+ href="/pricing"+ className="ml-2 inline-flex items-center text-xs font-medium px-2 py-1 rounded-full bg-gradient-to-br from-blue-400 to-blue-600 text-white hover:from-blue-500 hover:to-blue-700 transition-all duration-200"+ >+ Cap Pro+ </Link>+ )}+ {feature.isComingSoon && (+ <span className="ml-2 text-xs font-medium px-2 py-1 rounded-full bg-gray-3 text-gray-10">+ SOON+ </span>+ )}+ </h3>+ <p className="text-sm text-gray-11 leading-relaxed">+ {feature.description}+ </p>++ <div className="absolute top-3 right-3 opacity-0 group-hover:opacity-100 transition-opacity">+ <FontAwesomeIcon+ icon={categoryIcons[feature.category].icon}+ className={`w-4 h-4 ${+ categoryIcons[feature.category].color+ } opacity-50`}+ />+ </div>+ </div>+ );+ })}+ </div>+ </div>++ <div className="bg-gray-2 py-20">+ <div className="wrapper text-center">+ <h2 className="text-3xl font-medium mb-4">Ready to get started?</h2>+ <p className="text-lg text-gray-10 mb-8 max-w-2xl mx-auto">+ Join thousands of users who are already creating better recordings+ with Cap.+ </p>+ <div className="flex flex-col sm:flex-row gap-4 justify-center">+ <Button+ href="/download"+ variant="primary"+ size="lg"+ className="font-medium"+ >+ Download Cap Free+ </Button>+ <Button+ href="/pricing"+ variant="white"+ size="lg"+ className="font-medium"+ >+ Compare Plans+ </Button>+ </div>+ </div>+ </div>+ </div>+ );+};diff --git a/apps/web/app/(site)/features/page.tsx b/apps/web/app/(site)/features/page.tsxnew file mode 100644index 000000000..3f4eeb2f7--- /dev/null+++ b/apps/web/app/(site)/features/page.tsx@@ -0,0 +1,12 @@+import { Metadata } from "next";+import { FeaturesPage } from "./FeaturesPage";++export const metadata: Metadata = {+ title: "Features - Cap",+ description:+ "Discover all the powerful features Cap offers for screen recording, sharing, and collaboration. From AI-powered tools to advanced editing capabilities.",+};++export default function Page() {+ return <FeaturesPage />;+}diff --git a/apps/web/app/(site)/self-hosting/SelfHostingPage.tsx b/apps/web/app/(site)/self-hosting/SelfHostingPage.tsxindex 7c3df03fd..45446b1b4 100644--- a/apps/web/app/(site)/self-hosting/SelfHostingPage.tsx+++ b/apps/web/app/(site)/self-hosting/SelfHostingPage.tsx@@ -39,7 +39,7 @@ export const SelfHostingPage = () => {</div><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"><Button- variant="radialblue"+ variant="blue"href="#features"size="lg"className="flex justify-center items-center w-full font-medium text-md sm:w-auto"diff --git a/apps/web/app/globals.css b/apps/web/app/globals.cssindex b4936173f..5e01f6a5b 100644--- a/apps/web/app/globals.css+++ b/apps/web/app/globals.css@@ -41,14 +41,19 @@}}+body {+ overflow-x: hidden;+}+body,html {color: #000000;- background-color: white;+ background-color: #f2f2f2;}::-webkit-scrollbar {- width: 7px;+ width: 4px;+ height: 4px;}/* Track */@@ -254,7 +259,7 @@ h2,h3,h4,h5 {- @apply font-normal tracking-[-0.03em] text-[1.75rem] leading-[2.5rem] md:text-[2.5rem] md:leading-[3.25rem];+ @apply font-normal tracking-normal text-[1.75rem] leading-[2.5rem] md:text-[2.5rem] md:leading-[3.25rem];}a,@@ -263,7 +268,7 @@ span,input,label,button {- @apply tracking-tight text-gray-10 font-normal text-[1rem] leading-[1.5rem];+ @apply tracking-normal text-gray-10 font-normal leading-[1.5rem];}a,@@ -275,19 +280,10 @@ nav ul {@apply list-none;}-nav a {- @apply text-sm md:text-base;-}-nav.mobile a {@apply flex w-full;}-nav.mobile a:not(.button),-nav.mobile a:not(.button) * {- @apply text-[1.3rem] text-gray-700;-}-label {@apply block text-sm font-semibold text-left;}@@ -328,10 +324,6 @@ label {mask-composite: exclude;}-.custom-bg {- background: linear-gradient(180deg, #4785ff 0%, #85adff 100%);-}-.muted-custom-bg {background: radial-gradient(50.01% 50.01% at 53.53% 49.99%,@@ -514,9 +506,6 @@ label {@apply mx-auto max-w-2xl text-base fade-in-down animate-delay-1 sm:text-xl;}-ul {- @apply pl-5 list-disc;-}/*.embossed {@apply bg-white-a12 border-2 border-filler-3 relative w-[320px] max-w-full min-h-[60px] rounded-xl z-10;@@ -562,7 +551,6 @@ slot:not(.dashboard-layout slot) {/* Custom scrollbar */.custom-scroll {overflow-y: scroll;- padding-right: 3px;}.custom-scroll::-webkit-scrollbar {@@ -677,10 +665,30 @@ footer a {@apply mt-6 text-2xl font-semibold;}+/* Logo Marquee Animation */+@keyframes marquee {+ 0% {+ transform: translateX(0);+ }+ 100% {+ transform: translateX(-50%);+ }+}++.read-more-transition {+ transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),+ opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);+}++.animate-marquee {+ animation: marquee 30s linear infinite;+ min-width: max-content;+}+.prose p,.prose li,.prose a {- @apply tracking-tight font-normal text-[1.125rem] leading-[1.75rem] !important;+ @apply tracking-normal font-normal text-[1.125rem] leading-[1.75rem] !important;}.prose p,diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsxindex 528ea6fa6..b9417b6af 100644--- a/apps/web/app/layout.tsx+++ b/apps/web/app/layout.tsx@@ -5,6 +5,7 @@ import { buildEnv } from "@cap/env";import { S3_BUCKET_URL } from "@cap/utils";import * as TooltipPrimitive from "@radix-ui/react-tooltip";import type { Metadata } from "next";+import localFont from "next/font/local";import { PropsWithChildren } from "react";import { getBootstrapData } from "@/utils/getBootstrapData";@@ -18,9 +19,43 @@ import {import { script } from "./themeScript";import { getCurrentUser } from "@cap/database/auth/session";import { AuthContextProvider } from "./Layout/AuthContext";-import { Intercom } from "./Layout/Intercom";import { PosthogIdentify } from "./Layout/PosthogIdentify";+const defaultFont = localFont({+ src: [+ {+ path: "../public/fonts/NeueMontreal-Bold.otf",+ weight: "700",+ style: "normal",+ },+ {+ path: "../public/fonts/NeueMontreal-Regular.otf",+ weight: "400",+ style: "normal",+ },+ {+ path: "../public/fonts/NeueMontreal-Medium.otf",+ weight: "500",+ style: "normal",+ },+ {+ path: "../public/fonts/NeueMontreal-MediumItalic.otf",+ weight: "500",+ style: "italic",+ },+ {+ path: "../public/fonts/NeueMontreal-Italic.otf",+ weight: "400",+ style: "italic",+ },+ {+ path: "../public/fonts/NeueMontreal-BoldItalic.otf",+ weight: "700",+ style: "italic",+ },+ ],+});+export const metadata: Metadata = {title: "Cap — Beautiful screen recordings, owned by you.",description:@@ -42,7 +77,7 @@ export default async function RootLayout({ children }: PropsWithChildren) {const userPromise = getCurrentUser();return (- <html lang="en">+ <html className={defaultFont.className} lang="en"><head><linkrel="apple-touch-icon"@@ -84,7 +119,7 @@ export default async function RootLayout({ children }: PropsWithChildren) {><ReactQueryProvider><SonnerToaster />- <main className="overflow-x-hidden w-full">{children}</main>+ <main className="w-full">{children}</main><PosthogIdentify /></ReactQueryProvider></PublicEnvContext>diff --git a/apps/web/app/providers.tsx b/apps/web/app/providers.tsxdeleted file mode 100644index c327ea515..000000000--- a/apps/web/app/providers.tsx+++ /dev/null@@ -1,139 +0,0 @@-"use client";--import { PropsWithChildren, useEffect } from "react";-import { identifyUser, initAnonymousUser, trackEvent } from "./utils/analytics";-import posthog from "posthog-js";-import { PostHogProvider as PHProvider } from "posthog-js/react";-import { buildEnv } from "@cap/env";-import PostHogPageView from "./PosthogPageView";-import Intercom from "@intercom/messenger-js-sdk";-import { usePathname } from "next/navigation";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";--export function PostHogProvider({- children,- bootstrapData,-}: PropsWithChildren<{- bootstrapData?: {- distinctID: string;- featureFlags: Record<string, string | boolean>;- };-}>) {- useEffect(() => {- const key = buildEnv.NEXT_PUBLIC_POSTHOG_KEY;- const host = buildEnv.NEXT_PUBLIC_POSTHOG_HOST;-- if (key && host) {- try {- posthog.init(key, {- api_host: host,- capture_pageview: false,- bootstrap: bootstrapData,- loaded: (posthogInstance) => {- console.log("PostHog loaded and ready to capture events");- },- });- } catch (error) {- console.error("Failed to initialize PostHog:", error);- }- } else {- console.error(- "Missing PostHog environment variables. Events will not be tracked."- );- }- }, [bootstrapData]);-- return (- <PHProvider client={posthog}>- <PostHogPageView />- {children}- </PHProvider>- );-}--export function AnalyticsProvider({- children,- userId,- intercomHash,- name,- email,-}: {- children: React.ReactNode;- userId?: string;- intercomHash?: string;- name?: string;- email?: string;-}) {- const pathname = usePathname();- const isSharePage =- pathname?.startsWith("/s/") || pathname?.startsWith("/embed/");-- useEffect(() => {- if (!isSharePage) {- if (intercomHash === "") {- Intercom({- app_id: "efxq71cv",- utm_source: "web",- });- } else {- Intercom({- app_id: "efxq71cv",- user_id: userId ?? "",- user_hash: intercomHash ?? "",- name: name,- email: email,- utm_source: "web",- });- }- }- }, [intercomHash, userId, name, email, isSharePage]);-- useEffect(() => {- if (!userId) {- initAnonymousUser();- } else {- // Track if this is the first time a user is being identified- const isNewUser = !localStorage.getItem("user_identified");-- identifyUser(userId);-- if (isNewUser) {- localStorage.setItem("user_identified", "true");- trackEvent("user_signed_up");- }-- trackEvent("user_signed_in");- }- }, [userId]);-- return <>{children}</>;-}--const queryClient = new QueryClient();--export function Providers({- children,- userId,- intercomHash,- name,- email,-}: {- children: React.ReactNode;- userId?: string;- intercomHash?: string;- name?: string;- email?: string;-}) {- return (- <QueryClientProvider client={queryClient}>- <AnalyticsProvider- userId={userId}- intercomHash={intercomHash}- name={name}- email={email}- >- {children}- </AnalyticsProvider>- </QueryClientProvider>- );-}diff --git a/apps/web/app/s/[videoId]/Share.tsx b/apps/web/app/s/[videoId]/Share.tsxindex 2d5ded55f..7032a7d76 100644--- a/apps/web/app/s/[videoId]/Share.tsx+++ b/apps/web/app/s/[videoId]/Share.tsx@@ -45,7 +45,6 @@ interface ShareProps {processing?: boolean;} | null;aiGenerationEnabled: boolean;- aiUiEnabled: boolean;}const useVideoStatus = (@@ -142,7 +141,6 @@ export const Share = ({views,initialAiData,aiGenerationEnabled,- aiUiEnabled,}: ShareProps) => {const effectiveDate: Date = data.metadata?.customCreatedAt? new Date(data.metadata.customCreatedAt)@@ -257,7 +255,6 @@ export const Share = ({videoId={data.id}aiData={aiData}aiGenerationEnabled={aiGenerationEnabled}- aiUiEnabled={aiUiEnabled}/></div></div>diff --git a/apps/web/app/s/[videoId]/_components/Sidebar.tsx b/apps/web/app/s/[videoId]/_components/Sidebar.tsxindex 3e6cc55b8..210ce41d1 100644--- a/apps/web/app/s/[videoId]/_components/Sidebar.tsx+++ b/apps/web/app/s/[videoId]/_components/Sidebar.tsx@@ -35,7 +35,6 @@ interface SidebarProps {processing?: boolean;} | null;aiGenerationEnabled?: boolean;- aiUiEnabled?: boolean;}const TabContent = motion.div;@@ -71,7 +70,6 @@ export const Sidebar: React.FC<SidebarProps> = ({videoId,aiData,aiGenerationEnabled = false,- aiUiEnabled = false,}) => {const isOwnerOrMember: boolean = Boolean(user?.id === data.ownerId ||@@ -87,9 +85,7 @@ export const Sidebar: React.FC<SidebarProps> = ({const tabs = [{ id: "activity", label: "Comments" },- ...(aiUiEnabled || hasExistingAiData- ? [{ id: "summary", label: "Summary" }]- : []),+ { id: "summary", label: "Summary" },{ id: "transcript", label: "Transcript" },];@@ -131,7 +127,6 @@ export const Sidebar: React.FC<SidebarProps> = ({onSeek={onSeek}initialAiData={aiData || undefined}aiGenerationEnabled={aiGenerationEnabled}- aiUiEnabled={aiUiEnabled}user={user}/>);diff --git a/apps/web/app/s/[videoId]/_components/tabs/Summary.tsx b/apps/web/app/s/[videoId]/_components/tabs/Summary.tsxindex f8bae5787..cb03a2352 100644--- a/apps/web/app/s/[videoId]/_components/tabs/Summary.tsx+++ b/apps/web/app/s/[videoId]/_components/tabs/Summary.tsx@@ -20,7 +20,6 @@ interface SummaryProps {processing?: boolean;};aiGenerationEnabled?: boolean;- aiUiEnabled?: boolean;user: typeof userSelectProps | null;}@@ -65,7 +64,6 @@ export const Summary: React.FC<SummaryProps> = ({onSeek,initialAiData,aiGenerationEnabled = false,- aiUiEnabled = false,user,}) => {const [aiData, setAiData] = useState<{@@ -102,7 +100,7 @@ export const Summary: React.FC<SummaryProps> = ({const hasExistingAiData =aiData?.summary || (aiData?.chapters && aiData.chapters.length > 0);- if (aiUiEnabled && !hasProAccess && !hasExistingAiData) {+ if (!hasProAccess && !hasExistingAiData) {return (<div className="flex flex-col justify-center items-center p-8 h-full text-center"><div className="space-y-4 max-w-sm">diff --git a/apps/web/app/s/[videoId]/page.tsx b/apps/web/app/s/[videoId]/page.tsxindex 15ec46fec..a8a0f55b1 100644--- a/apps/web/app/s/[videoId]/page.tsx+++ b/apps/web/app/s/[videoId]/page.tsx@@ -18,7 +18,7 @@ import { getVideoAnalytics } from "@/actions/videos/get-analytics";import { transcribeVideo } from "@/actions/videos/transcribe";import { headers } from "next/headers";import { generateAiMetadata } from "@/actions/videos/generate-ai-metadata";-import { isAiGenerationEnabled, isAiUiEnabled } from "@/utils/flags";+import { isAiGenerationEnabled } from "@/utils/flags";import { Share } from "./Share";import { PasswordOverlay } from "./_components/PasswordOverlay";@@ -67,11 +67,9 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {return notFound();}- // Get the headers from the middlewareconst headersList = headers();const referrer = headersList.get("x-referrer") || "";- // Check if referrer is from allowed platformsconst allowedReferrers = ["x.com","twitter.com",@@ -86,7 +84,6 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {referrer.includes(domain));- // Set robots metadata based on referrer and video publicityconst robotsDirective = isAllowedReferrer? "index, follow": "noindex, nofollow";@@ -511,22 +508,6 @@ async function AuthorizedContent({): Promise.resolve([]);- const aiUIEnabledPromise = (async () => {- let aiUiEnabled = false;-- if (user?.email) {- aiUiEnabled = await isAiUiEnabled({- email: user.email,- stripeSubscriptionStatus: user.stripeSubscriptionStatus,- });- console.log(- `[ShareVideoPage] AI UI feature flag check for viewer ${user.id}: ${aiUiEnabled} (email: ${user.email})`- );- }-- return aiUiEnabled;- })();-const commentsPromise = db().select({id: comments.id,@@ -549,13 +530,11 @@ async function AuthorizedContent({const [membersList,- aiUiEnabled,userOrganizations,sharedOrganizations,{ customDomain, domainVerified },] = await Promise.all([membersListPromise,- aiUIEnabledPromise,userOrganizationsPromise,sharedOrganizationsPromise,customDomainPromise,@@ -599,7 +578,6 @@ async function AuthorizedContent({userOrganizations={userOrganizations}initialAiData={initialAiData}aiGenerationEnabled={aiGenerationEnabled}- aiUiEnabled={aiUiEnabled}/></div><div className="py-4 mt-auto">diff --git a/apps/web/app/sitemap.ts b/apps/web/app/sitemap.tsindex 175978054..057c8cac1 100644--- a/apps/web/app/sitemap.ts+++ b/apps/web/app/sitemap.ts@@ -45,7 +45,8 @@ export default async function sitemap() {// Add blog post routesconst blogPosts = getBlogPosts();const blogRoutes = blogPosts.map((post) => {- const publishDate = new Date(post.metadata.publishedAt);+ const publishedAt = 'publishedAt' in post.metadata ? post.metadata.publishedAt : new Date().toISOString();+ const publishDate = new Date(publishedAt);publishDate.setHours(9, 0, 0, 0); // Set time to 9:00 AMreturn {path: `/blog/${post.slug}`,diff --git a/apps/web/components/FileInput.tsx b/apps/web/components/FileInput.tsxindex d3d93d2a3..df07a15fa 100644--- a/apps/web/components/FileInput.tsx+++ b/apps/web/components/FileInput.tsx@@ -176,11 +176,11 @@ export const FileInput: React.FC<FileInputProps> = ({return (<div className={`relative ${className}`}>- <div className="h-[44px]">+ <div className="h-[46.5px]">{" "}{/* Fixed height container to prevent resizing */}{selectedFile || previewUrl ? (- <div className="flex gap-2 items-center p-1.5 rounded-xl border bg-gray-1 border-gray-3 h-full">+ <div className="flex gap-2 items-center p-1.5 rounded-xl border bg-gray-1 border-gray-4 h-full"><div className="flex flex-1 gap-1.5 items-center"><div className="flex flex-1 gap-1 items-center">{selectedFile ? (@@ -214,7 +214,6 @@ export const FileInput: React.FC<FileInputProps> = ({<Buttonvariant="destructive"size="xs"- spinner={isLoading}disabled={isLoading || disabled}onClick={handleRemove}style={diff --git a/apps/web/components/ReadyToGetStarted.tsx b/apps/web/components/ReadyToGetStarted.tsxindex 5a99c867e..ce6b4d823 100644--- a/apps/web/components/ReadyToGetStarted.tsx+++ b/apps/web/components/ReadyToGetStarted.tsx@@ -1,60 +1,40 @@"use client";import { Button } from "@cap/ui";+import { homepageCopy } from "../data/homepage-copy";export function ReadyToGetStarted() {return (<div- className="custom-bg max-w-[1000px] mx-auto rounded-[20px] overflow-hidden relative flex flex-col justify-center p-8"- style={{ minHeight: "264px" }}+ className="max-w-[1000px] md:bg-center w-[calc(100%-20px)] bg-white min-h-[300px] mx-auto border border-gray-5 my-[150px] md:my-[200px] lg:my-[250px] rounded-[20px] overflow-hidden relative flex flex-col justify-center p-8"+ style={{+ backgroundImage: "url('/illustrations/ctabg.svg')",+ backgroundSize: "cover",+ backgroundRepeat: "no-repeat",+ }}>- <div- id="cloud-4"- className="absolute top-0 -right-20 z-0 opacity-50 pointer-events-none"- >- <img- className="max-w-[40vw] h-auto"- src="/illustrations/cloud-1.png"- alt="Footer Cloud One"- />- </div>- <div- id="cloud-5"- className="absolute bottom-0 left-0 z-0 opacity-50 pointer-events-none"- >- <img- className="max-w-[40vw] h-auto"- src="/illustrations/cloud-2.png"- alt="Footer Cloud Two"- />- </div><div className="flex relative z-10 flex-col justify-center items-center mx-auto h-full wrapper"><div className="text-center max-w-[800px] mx-auto mb-8">- <h2 className="mb-3 text-xl text-white sm:text-3xl">- Beautiful screen recordings, owned by you.+ <h2 className="mb-3 text-3xl md:text-4xl text-gray-12">+ {homepageCopy.readyToGetStarted.title}</h2>- <p className="text-[1rem] sm:text-lg text-white">- Cap is the open source alternative to Loom. Lightweight, powerful,- and cross-platform. Record and share securely in seconds with custom- S3 bucket support.- </p></div>- <div className="flex flex-col justify-center items-center space-y-2 sm:flex-row sm:space-y-0 sm:space-x-2">+ <div className="flex flex-col justify-center items-center space-y-4 sm:flex-row sm:space-y-0 sm:space-x-2"><Button- variant="white"+ variant="gray"href="/pricing"size="lg"- className="w-full sm:w-auto"+ className="w-full font-medium sm:w-auto">- Get Started+ {homepageCopy.readyToGetStarted.buttons.secondary}</Button><Buttonvariant="primary"href="/download"size="lg"- className="w-full sm:w-auto"+ className="w-full font-medium sm:w-auto">- Download App+ {homepageCopy.readyToGetStarted.buttons.primary}</Button></div></div>diff --git a/apps/web/components/UpgradeModal.tsx b/apps/web/components/UpgradeModal.tsxindex 8a5f7ce69..4df1fc8fb 100644--- a/apps/web/components/UpgradeModal.tsx+++ b/apps/web/components/UpgradeModal.tsx@@ -257,7 +257,7 @@ export const UpgradeModal = ({ open, onOpenChange }: UpgradeModalProps) => {</div><Button- variant="primary"+ variant="blue"onClick={planCheckout}className="mt-5 w-full max-w-sm h-14 text-lg"disabled={proLoading}diff --git a/apps/web/components/UsageButton.tsx b/apps/web/components/UsageButton.tsxindex 7ebef2b28..b92521824 100644--- a/apps/web/components/UsageButton.tsx+++ b/apps/web/components/UsageButton.tsx@@ -29,14 +29,14 @@ export const UsageButton = memo(className={clsx("overflow-hidden truncate",sidebarCollapsed- ? "p-0 w-10 h-10 rounded-full min-w-10"+ ? "p-0 w-10 h-10 rounded-full min-w-[unset] max-w-10": "w-full")}- variant="primary"+ variant="blue"><FontAwesomeIconclassName={clsx(- "text-white",+ "text-white size-4",sidebarCollapsed ? "mr-0" : "mr-1")}icon={faCheck}@@ -77,7 +77,9 @@ const ProRiveButton = memo(});return (- <div+ <Button+ variant="blue"+ size="lg"onMouseEnter={() => {if (rive) {rive.stop();@@ -92,8 +94,8 @@ const ProRiveButton = memo(}}className={clsx("flex overflow-visible relative gap-3 justify-evenly items-center cursor-pointer",- "mx-auto bg-blue-600 rounded-full transition-colors hover:bg-blue-700",- sidebarCollapsed ? "py-0 h-[45px] min-w-[unset]" : "py-3 w-full h-fit"+ "mx-auto",+ sidebarCollapsed ? "py-0 h-10 min-w-[unset]" : "py-3 w-full h-fit")}onClick={() => {setUpgradeModalOpen(true);@@ -103,7 +105,7 @@ const ProRiveButton = memo(<ProRiveclassName={clsx(sidebarCollapsed- ? "bottom-[4px] absolute h-[45px] w-[68px]"+ ? "bottom-[4px] h-10 absolute w-[68px]": "absolute w-[90px] h-[66px] bottom-[-3px] left-[-20px]","scale-[0.8]")}@@ -113,7 +115,7 @@ const ProRiveButton = memo(Upgrade to Pro</p>) : null}- </div>+ </Button>);});diff --git a/apps/web/components/blog/BlogTemplate.tsx b/apps/web/components/blog/BlogTemplate.tsxindex 020ec9b77..fc425d738 100644--- a/apps/web/components/blog/BlogTemplate.tsx+++ b/apps/web/components/blog/BlogTemplate.tsx@@ -162,7 +162,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {<Buttonhref={content.cta.buttonLink}size="lg"- variant="radialblue"+ variant="blue"className="px-6 py-3 shadow-lg hover:shadow-xl transform hover:-translate-y-1 transition-all duration-300">{content.cta.buttonText}diff --git a/apps/web/components/pages/DownloadPage.tsx b/apps/web/components/pages/DownloadPage.tsxindex 6abb54af5..dccbf0c1f 100644--- a/apps/web/components/pages/DownloadPage.tsx+++ b/apps/web/components/pages/DownloadPage.tsx@@ -33,29 +33,26 @@ export const DownloadPage = () => {<div className="mb-2 text-xs text-gray-300">Platform Simulator</div><div className="space-y-2"><button- className={`text-xs px-2 py-1 rounded w-full text-left ${- platform === "windows"+ className={`text-xs px-2 py-1 rounded w-full text-left ${platform === "windows"? "bg-blue-600": "bg-gray-700 hover:bg-gray-600"- }`}+ }`}>Windows (Beta)</button><button- className={`text-xs px-2 py-1 rounded w-full text-left ${- platform === "macos" && isIntel+ className={`text-xs px-2 py-1 rounded w-full text-left ${platform === "macos" && isIntel? "bg-blue-600": "bg-gray-700 hover:bg-gray-600"- }`}+ }`}>macOS (Intel)</button><button- className={`text-xs px-2 py-1 rounded w-full text-left ${- platform === "macos" && !isIntel+ className={`text-xs px-2 py-1 rounded w-full text-left ${platform === "macos" && !isIntel? "bg-blue-600": "bg-gray-700 hover:bg-gray-600"- }`}+ }`}>macOS (Apple Silicon)</button>@@ -78,7 +75,7 @@ export const DownloadPage = () => {<div className="flex flex-col justify-center items-center space-y-4 fade-in-up animate-delay-2"><div className="flex flex-col items-center space-y-4"><Button- variant="radialblue"+ variant="blue"size="lg"href={getDownloadUrl(platform, isIntel)}className="flex justify-center items-center py-6 font-medium text-white"@@ -113,7 +110,9 @@ export const DownloadPage = () => {</div></div>- <PlatformIcons />+ <div className="flex justify-center items-center fade-in-up animate-delay-2">+ <PlatformIcons />+ </div><div className="pb-4 mt-6 fade-in-up animate-delay-2"><h3 className="mb-2 text-sm font-medium text-gray-8">diff --git a/apps/web/components/pages/HomePage/Faq.tsx b/apps/web/components/pages/HomePage/Faq.tsxindex 3889758c0..21da92388 100644--- a/apps/web/components/pages/HomePage/Faq.tsx+++ b/apps/web/components/pages/HomePage/Faq.tsx@@ -1,97 +1,80 @@-import { faMinus, faPlus } from '@fortawesome/free-solid-svg-icons';-import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';-import clsx from 'clsx';-import { AnimatePresence, motion } from 'framer-motion';-import { useState } from 'react';+import { faMinus, faPlus } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import clsx from "clsx";+import { AnimatePresence, motion } from "framer-motion";+import { useState } from "react";+import { homepageCopy } from "../../../data/homepage-copy";interface FaqItem {question: string;answer: string;}-const faqItems: FaqItem[] = [- {- question: 'Who is Cap for?',- answer: 'Cap is designed for individuals, teams, and businesses who need an easy-to-use screen recording and sharing tool.'- },- {- question: 'Which platforms does Cap support?',- answer: 'Cap supports Windows, macOS, and Linux. Our web application works on all major browsers including Chrome, Firefox, Safari, and Edge.'- },- {- question: 'How much does it cost?',- answer: 'Cap offers a free version for personal use. You can upgrade to Cap Pro for just $9/month to unlock unlimited cloud storage, unlimited recording length, custom domain support, advanced team features, password-protected videos, analytics, and priority support. We also offer commercial licenses and self-hosted options for businesses.'- },- {- question: 'What makes Cap different from Loom?',- answer: 'Cap focuses on simplicity, performance, and privacy. Unlike Loom, we offer a self-hosted option and more affordable pricing for teams while maintaining all the essential features you need.'- },- {- question: 'Can I self-host Cap?',- answer: 'Yes! Cap offers self-hosted options for businesses that require complete control over their data and infrastructure.'- },- {- question: 'Is there a commercial license available?',- answer: 'Yes, we offer commercial licenses for businesses with custom pricing based on team size and needs. Contact our sales team for more information.'- },- {- question: 'What happens after the beta period ends?',- answer: 'After the beta period, all beta users will be offered a special discount to continue using Cap Pro. Your existing recordings and data will remain accessible.'- }-];-const Faq = () => {- const [openIndex, setOpenIndex] = useState<number | null>(null); // Default to the 'How much does it cost?' question+ const [openIndex, setOpenIndex] = useState<number | null>(null);const toggleFaq = (index: number) => {setOpenIndex(openIndex === index ? null : index);};return (- <div className="mx-auto max-w-[1000px] px-5 my-[150px] md:my-[200px] lg:my-[250px]">- <h2 className="mb-10 text-4xl text-gray-12">FAQ</h2>- <div className="space-y-4">- {faqItems.map((item, index) => (- <div- key={index}- className={clsx("rounded-xl overflow-hidde border border-gray-5",- openIndex === index- ? 'bg-blue-500 text-white'- : 'bg-gray-1 hover:bg-gray-3 text-gray-12',- "transition-colors duration-200")}+ <div className="mx-auto max-w-[1000px] px-5">+ <h2 className="mb-10 text-4xl text-gray-12">{homepageCopy.faq.title}</h2>+ <div className="space-y-4">+ {homepageCopy.faq.items.map((item, index) => (+ <div+ key={index}+ className={clsx(+ "rounded-xl overflow-hidde border border-gray-5",+ openIndex === index+ ? "bg-blue-500 text-white"+ : "bg-gray-1 hover:bg-gray-3 text-gray-12",+ "transition-colors duration-200"+ )}+ >+ <button+ className="flex justify-between items-center px-6 py-4 w-full text-left"+ onClick={() => toggleFaq(index)}>- <button- className="flex justify-between items-center px-6 py-4 w-full text-left"- onClick={() => toggleFaq(index)}- >- <p className={clsx("text-lg font-medium", openIndex === index ? "text-gray-1" : "text-gray-12")}>{item.question}</p>- {openIndex === index ? (- <FontAwesomeIcon icon={faMinus} className="flex-shrink-0 w-5 h-5 text-gray-1" />- ) : (- <FontAwesomeIcon icon={faPlus} className="flex-shrink-0 w-5 h-5" />- )}- </button>-- <AnimatePresence>- {openIndex === index && (- <motion.div- initial={{ height: 0, opacity: 0 }}- animate={{ height: 'auto', opacity: 1 }}- exit={{ height: 0, opacity: 0 }}- transition={{ duration: 0.3 }}- className="overflow-hidden"- >- <p className="px-6 pb-4 text-gray-3">- {item.answer}- </p>- </motion.div>+ <p+ className={clsx(+ "text-lg font-medium",+ openIndex === index ? "text-gray-1" : "text-gray-12")}- </AnimatePresence>- </div>- ))}- </div>+ >+ {item.question}+ </p>+ {openIndex === index ? (+ <FontAwesomeIcon+ icon={faMinus}+ className="flex-shrink-0 w-5 h-5 text-gray-1"+ />+ ) : (+ <FontAwesomeIcon+ icon={faPlus}+ className="flex-shrink-0 w-5 h-5"+ />+ )}+ </button>++ <AnimatePresence>+ {openIndex === index && (+ <motion.div+ initial={{ height: 0, opacity: 0 }}+ animate={{ height: "auto", opacity: 1 }}+ exit={{ height: 0, opacity: 0 }}+ transition={{ duration: 0.3 }}+ className="overflow-hidden"+ >+ <p className="px-6 pb-4 text-gray-3">{item.answer}</p>+ </motion.div>+ )}+ </AnimatePresence>+ </div>+ ))}</div>+ </div>);};-export default Faq;\ No newline at end of file+export default Faq;diff --git a/apps/web/components/pages/HomePage/Features.tsx b/apps/web/components/pages/HomePage/Features.tsxindex 2aa306b26..c80b138a3 100644--- a/apps/web/components/pages/HomePage/Features.tsx+++ b/apps/web/components/pages/HomePage/Features.tsx@@ -1,6 +1,8 @@import { Fit, Layout, useRive } from "@rive-app/react-canvas";+import clsx from "clsx";import { memo } from "react";-+import { homepageCopy } from "../../../data/homepage-copy";+import { Button } from "@cap/ui";type Feature = {title: string;@@ -11,202 +13,248 @@ type Feature = {bottom?: number;left?: number;right?: number;- }+ };};-const VideoCaptureArt = memo(() => {- const {RiveComponent: VideoCaptureRive} = useRive({+ const { RiveComponent: VideoCaptureRive } = useRive({src: "/rive/bento.riv",artboard: "videocapture",animations: ["in"],autoplay: true,layout: new Layout({- fit: Fit.Contain+ fit: Fit.Contain,}),});return (<VideoCaptureRive className="w-full max-w-[420px] mx-auto h-[244px]" />- )-})+ );+});const StorageOptionsArt = memo(() => {- const {RiveComponent: StorageOptionsRive} = useRive({+ const { RiveComponent: StorageOptionsRive } = useRive({src: "/rive/bento.riv",artboard: "storageoptions",animations: ["in"],autoplay: true,layout: new Layout({- fit: Fit.Contain+ fit: Fit.Contain,}),});return (<StorageOptionsRive className="w-full max-w-[350px] mx-auto h-[275px]" />- )-})+ );+});const CollabArt = memo(() => {- const {RiveComponent: CollabRive} = useRive({+ const { RiveComponent: CollabRive } = useRive({src: "/rive/bento.riv",artboard: "collab",animations: ["in"],autoplay: true,layout: new Layout({- fit: Fit.Contain+ fit: Fit.Contain,}),});- return (- <CollabRive className="w-full max-w-[500px] mx-auto h-[280px]" />- )-})+ return <CollabRive className="w-full max-w-[500px] mx-auto h-[280px]" />;+});const PrivacyFirstArt = memo(() => {- const {RiveComponent: PrivacyFirstRive} = useRive({+ const { RiveComponent: PrivacyFirstRive } = useRive({src: "/rive/bento.riv",artboard: "privacyfirst",animations: ["in"],autoplay: true,layout: new Layout({- fit: Fit.Contain+ fit: Fit.Contain,}),});return (<PrivacyFirstRive className="w-full max-w-[560px] mx-auto h-[250px]" />- )-})+ );+});const PlatformSupportArt = memo(() => {- const {RiveComponent: PlatformSupportRive} = useRive({+ const { RiveComponent: PlatformSupportRive } = useRive({src: "/rive/bento.riv",artboard: "platformsupport",animations: ["in"],autoplay: true,layout: new Layout({- fit: Fit.Contain+ fit: Fit.Contain,}),});return (- <PlatformSupportRive className="w-full max-w-[600px] mx-auto h-[280px]" />- )-})+ <PlatformSupportRive className="w-full max-w-[500px] mx-auto h-[280px]" />+ );+});const EveryoneArt = memo(() => {- const {RiveComponent: EveryoneRive} = useRive({+ const { RiveComponent: EveryoneRive } = useRive({src: "/rive/bento.riv",artboard: "everyone",animations: ["in"],autoplay: true,layout: new Layout({- fit: Fit.Contain+ fit: Fit.Contain,}),});- return (- <EveryoneRive className="w-full max-w-[500px] mx-auto h-[250px]" />- )-})--const features: Feature[] = [- {- title: "Flexible Storage Options",- rive: <StorageOptionsArt />,- relative: {- top: 25,- },- description:- "Choose how and where you store your recordings. Cap offers both local and cloud storage options to suit your needs. Save space on your device or keep your entire content library accessible from anywhere – ideal for freelancers and growing teams.",- },- {- title: "Privacy-first",- rive: <PrivacyFirstArt />,- description:- "Own your content with Cap’s privacy-focused approach. Keep your sensitive information secure and maintain complete control over who can access your recordings – perfect for confidential client communications and internal team sharing.",- },- {- title: "Seamless Team Collaboration",- rive: <CollabArt />,- description:- "Share knowledge effortlessly with your team or clients. Cap’s intuitive sharing features make it easy to organize content, provide access to specific people, and track engagement. Perfect for small businesses and growing teams who need simple yet powerful collaboration tools.",- },- {- title: "Multi-Platform Support",- rive: <PlatformSupportArt />,- description:- "Cap works seamlessly across macOS and Windows, giving you the flexibility to create content on any device. Capture, share, and collaborate regardless of which platform you or your team prefers, ensuring smooth workflows and consistent experience everywhere.",- },- {- title: "High-Quality Video Capture",- rive: <VideoCaptureArt />,- description:- "Deliver crystal-clear recordings that showcase your professionalism. Cap ensures exceptional quality for client presentations, tutorials, and team communications – making your content stand out whether you’re a solo creator or a small business owner.",- },- {- title: "Built for everyone",- rive: <EveryoneArt />,- description:- "For creators, teams, and educators alike, this screen recorder is designed to adapt to different needs and workflows—whether you’re capturing lessons, product demos, or quick updates. It’s a simple, customizable tool that makes screen recording accessible to everyone.",- },-];+ return <EveryoneRive className="w-full max-w-[600px] mx-auto h-[300px]" />;+});++const CapAIArt = memo(() => {+ const { RiveComponent: CapAIArt } = useRive({+ src: "/rive/bento.riv",+ artboard: "capai",+ animations: ["in"],+ autoplay: true,+ layout: new Layout({+ fit: Fit.Contain,+ }),+ });+ return <CapAIArt className="w-full max-w-[550px] mx-auto h-[300px]" />;+});++const features: Feature[] = homepageCopy.features.features.map(+ (feature, index) => {+ const riveComponents: JSX.Element[] = [+ <StorageOptionsArt key="storage" />,+ <PrivacyFirstArt key="privacy" />,+ <CollabArt key="collab" />,+ <PlatformSupportArt key="platform" />,+ <VideoCaptureArt key="video" />,+ <EveryoneArt key="everyone" />,+ <CapAIArt key="capai" />,+ ];++ const relatives = [+ { top: 25 },+ undefined,+ undefined,+ undefined,+ undefined,+ undefined,+ undefined,+ ];++ return {+ title: feature.title,+ description: feature.description,+ rive: riveComponents[index] || <div key={`placeholder-${index}`} />,+ relative: relatives[index],+ };+ }+);const Features = () => {return (- <div className="text-center max-w-[1440px] mx-auto mb-8 px-5">- <h2 className="mb-3">Crafted for simplicity</h2>+ <div className="text-center max-w-[1440px] mx-auto px-5">+ <h2 className="mb-3">{homepageCopy.features.title}</h2><p className="text-lg leading-[1.75rem] w-full max-w-[800px] mx-auto">- We believe great tools should make your life easier, not more- complicated. Cap is crafted to streamline your workflow, so you can- record, edit, and share without jumping through hoops.+ {homepageCopy.features.subtitle}</p>- <div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3 mt-[52px]">- {features.map((feature) => (- <FeatureCard- key={feature.title}- title={feature.title}- description={feature.description}- rive={feature.rive}- imageAlt={feature.title}- relative={feature.relative}- />- ))}+ <div className="flex flex-col gap-4 mt-[52px]">+ {/* Second row - 2 features */}+ <div className="grid grid-cols-1 gap-4 mx-auto w-full md:grid-cols-2">+ {features.slice(3, 5).map((feature) => (+ <FeatureCard+ key={feature.title}+ title={feature.title}+ className="flex-1 min-w-full"+ description={feature.description}+ rive={feature.rive}+ imageAlt={feature.title}+ relative={feature.relative}+ />+ ))}+ </div>++ {/* First row - 3 features */}+ <div className="grid grid-cols-1 gap-4 md:grid-cols-3">+ {features.slice(0, 3).map((feature) => (+ <FeatureCard+ key={feature.title}+ title={feature.title}+ description={feature.description}+ rive={feature.rive}+ imageAlt={feature.title}+ relative={feature.relative}+ />+ ))}+ </div>++ {/* Third row - 2 features */}+ <div className="grid grid-cols-1 gap-4 mx-auto w-full md:grid-cols-2">+ {features.slice(5, 7).map((feature) => (+ <FeatureCard+ key={feature.title}+ title={feature.title}+ description={feature.description}+ rive={feature.rive}+ imageAlt={feature.title}+ relative={feature.relative}+ />+ ))}+ </div>+ </div>++ <div className="mt-10">+ {/* View all features button */}+ <Button+ href="/features"+ variant="primary"+ size="lg"+ className="inline-flex"+ >+ View all features+ </Button></div></div>);};-const FeatureCard = ({title,description,rive,relative,+ className,}: {- title: string;- description: string;- rive?: JSX.Element;- img?: string;- imageAlt: string;- imageClass?: string;- relative?: {- top?: number;- bottom?: number;- left?: number;- right?: number;- }+ title: string;+ description: string;+ rive?: JSX.Element;+ img?: string;+ className?: string;+ imageAlt: string;+ imageClass?: string;+ relative?: {+ top?: number;+ bottom?: number;+ left?: number;+ right?: number;+ };}) => {return (- <div className="flex flex-col gap-10 justify-evenly p-6 text-left rounded-xl border md:p-8 bg-gray-1 border-gray-5">- <div- style={{- top: relative?.top,- bottom: relative?.bottom,- left: relative?.left,- right: relative?.right,- }}- className="relative flex-1 flex-grow justify-center content-center">- {rive}+ <div+ className={clsx(+ "flex flex-col gap-10 justify-evenly p-6 text-left rounded-xl border md:p-8 bg-gray-1 border-gray-5",+ className+ )}+ >+ <div+ style={{+ top: relative?.top,+ bottom: relative?.bottom,+ left: relative?.left,+ right: relative?.right,+ }}+ className="relative flex-1 flex-grow justify-center content-center"+ >+ {rive}</div><div className="flex flex-col gap-2 justify-end h-fit">- <h3 className="text-lg font-medium">{title}</h3>- <p className="text-base text-gray-10">{description}</p>+ <h3 className="text-lg font-medium">{title}</h3>+ <p className="text-base text-gray-10">{description}</p></div></div>);diff --git a/apps/web/components/pages/HomePage/Header.tsx b/apps/web/components/pages/HomePage/Header.tsxindex 2c5b76efc..ffd574442 100644--- a/apps/web/components/pages/HomePage/Header.tsx+++ b/apps/web/components/pages/HomePage/Header.tsx@@ -16,70 +16,80 @@ import { useDetectPlatform } from "hooks/useDetectPlatform";import Image from "next/image";import Link from "next/link";import { useState } from "react";+import { homepageCopy } from "../../../data/homepage-copy";import VideoModal from "./VideoModal";interface HeaderProps {- serverHomepageCopyVariant?: string;+ serverHomepageCopyVariant?: string;}-- // Animation variants- const fadeIn = {- hidden: { opacity: 0, y: 20 },- visible: (custom: number) => ({- opacity: 1,- y: 0,- transition: {- delay: custom * 0.1,- duration: 0.5,- ease: "easeOut"- }- })- };-- const fadeInFromRight = {- hidden: { opacity: 0, x: 50 },- visible: {- opacity: 1,- x: 0,- transition: {- delay: 0.5,- duration: 0.6,- ease: "easeOut"- }- }- };+// Animation variants+const fadeIn = {+ hidden: { opacity: 0, y: 20 },+ visible: (custom: number) => ({+ opacity: 1,+ y: 0,+ transition: {+ delay: custom * 0.1,+ duration: 0.5,+ ease: "easeOut",+ },+ }),+};++const fadeInFromRight = {+ hidden: { opacity: 0, x: 50 },+ visible: {+ opacity: 1,+ x: 0,+ transition: {+ delay: 0.5,+ duration: 0.6,+ ease: "easeOut",+ },+ },+};const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {- const [videoToggled, setVideoToggled] = useState(false);- const { platform, isIntel } = useDetectPlatform();- const loading = platform === null;-+ const [videoToggled, setVideoToggled] = useState(false);+ const { platform, isIntel } = useDetectPlatform();+ const loading = platform === null;++ const getHeaderContent = () => {+ const variant =+ serverHomepageCopyVariant as keyof typeof homepageCopy.header.variants;return (- <div className="mt-[60px] min-h-screen w-full max-w-[1920px] overflow-x-hidden md:overflow-visible mx-auto md:mt-[15vh]">- <div className="flex flex-col justify-center lg:justify-start xl:flex-row relative z-10 px-5 w-full mb-[200px]">- <div className="w-full max-w-[500px] 2xl:mt-12 mx-auto xl:ml-[100px] 2xl:ml-[150px]">- <motion.div- initial="hidden"- animate="visible"- custom={0}- variants={fadeIn}- >- <Link- href="https://x.com/richiemcilroy/status/1895526857807733018"- target="_blank"- className="flex gap-2 items-center px-3 py-2 mb-8 bg-white rounded-full border group border-gray-4 w-fit"- >- <p className="font-mono text-xs text-gray-12">- Auto zoom has been released- </p>- <FontAwesomeIcon- fontWeight="light"- className="w-1.5 text-gray-12 group-hover:translate-x-0.5 transition-transform"- icon={faAngleRight}- />- </Link>- </motion.div>+ homepageCopy.header.variants[variant] ||+ homepageCopy.header.variants.default+ );+ };++ const headerContent = getHeaderContent();++ return (+ <div className="mt-[60px] mb-10 sm:mb-[150px] min-h-screen w-full max-w-[1920px] overflow-x-hidden md:overflow-visible mx-auto md:mt-[15vh]">+ <div className="flex flex-col justify-center lg:justify-start xl:flex-row relative z-10 px-5 w-full mb-[200px]">+ <div className="w-full max-w-[500px] 2xl:mt-12 mx-auto xl:ml-[100px] 2xl:ml-[150px]">+ <motion.div+ initial="hidden"+ animate="visible"+ custom={0}+ variants={fadeIn}+ >+ <Link+ href={homepageCopy.header.announcement.href}+ className="flex gap-2 items-center px-3 py-2 mb-8 bg-white rounded-full border group border-gray-4 w-fit"+ >+ <p className="font-mono text-xs text-gray-12">+ {homepageCopy.header.announcement.text}+ </p>+ <FontAwesomeIcon+ fontWeight="light"+ className="w-1.5 text-gray-12 group-hover:translate-x-0.5 transition-transform"+ icon={faAngleRight}+ />+ </Link>+ </motion.div><div className="flex flex-col text-left w-full max-w-[650px]"><motion.h1@@ -89,15 +99,7 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {custom={1}variants={fadeIn}>- {serverHomepageCopyVariant === "1" ? (- <>Beautiful screen recordings, owned by you.</>- ) : serverHomepageCopyVariant === "2" ? (- <>The open source Loom alternative.</>- ) : serverHomepageCopyVariant === "3" ? (- <>The open source screen recording suite.</>- ) : (- <>Beautiful screen recordings, owned by you.</>- )}+ {headerContent.title}</motion.h1><motion.p@@ -107,31 +109,7 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {custom={2}variants={fadeIn}>- {serverHomepageCopyVariant === "1" ? (- <>- Cap is the open source alternative to Loom. Lightweight,- powerful, and cross-platform. Record and share securely in- seconds with custom S3 bucket support.- </>- ) : serverHomepageCopyVariant === "2" ? (- <>- Cap is the open source alternative to Loom. Lightweight,- powerful, and cross-platform. Record and share securely in- seconds. Connect your own storage, domain & more.- </>- ) : serverHomepageCopyVariant === "3" ? (- <>- Cap is open source, lightweight, powerful & cross-platform.- With Instant Mode for shareable links and Studio Mode for- high-quality recordings with local editing.- </>- ) : (- <>- Cap is the open source alternative to Loom. Lightweight,- powerful, and cross-platform. Record and share securely in- seconds with custom S3 bucket support.- </>- )}+ {headerContent.description}</motion.p></div>@@ -156,12 +134,12 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {{getDownloadButtonText(platform, loading, isIntel)}</Button><Button- variant="primary"+ variant="blue"href="/pricing"size="lg"className="relative z-[20] w-full font-medium sm:w-auto">- Buy Now+ {homepageCopy.header.cta.primaryButton}</Button></motion.div>@@ -172,7 +150,7 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {custom={4}variants={fadeIn}>- Free version available. No credit card required.+ {homepageCopy.header.cta.freeVersionText}</motion.p><motion.div@@ -182,19 +160,16 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {custom={5}variants={fadeIn}>- {/* Platform icons */}<PlatformIcons />- {/* See other options button */}<Linkhref="/download"className="mt-2 text-sm underline text-gray-10 hover:text-gray-12">- See other options+ {homepageCopy.header.cta.seeOtherOptionsText}</Link></motion.div>- {/* Logo Marquee */}<motion.divclassName="mt-14"initial="hidden"@@ -202,6 +177,9 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {custom={6}variants={fadeIn}>+ <p className="mb-2 text-sm italic text-gray-10">+ Trusted by <strong>10,000+</strong> teams, builders and creators+ </p><LogoMarquee /></motion.div></div>@@ -220,7 +198,10 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {className="size-[70px] md:size-[100px] inset-x-0 mx-auto top-[35vw] xs:top-[180px] sm:top-[35vw] xl:top-[350px] 2xl:top-[400px] xl:left-[-50px] relative cursor-pointer z-10shadow-[0px_60px_40px_3px_rgba(0,0,0,0.4)] flex items-center justify-center rounded-full bg-blue-500">- <FontAwesomeIcon icon={faPlay} className="text-white size-4 md:size-6" />+ <FontAwesomeIcon+ icon={faPlay}+ className="text-white size-4 md:size-6"+ /></motion.div><Imagesrc="/illustrations/app.webp"@@ -235,8 +216,8 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {<AnimatePresence>{videoToggled && <VideoModal setVideoToggled={setVideoToggled} />}</AnimatePresence>- </div>- );+ </div>+ );};export default Header;diff --git a/apps/web/components/pages/HomePage/Pricing/CommercialCard.tsx b/apps/web/components/pages/HomePage/Pricing/CommercialCard.tsxindex 8799efe0d..79c445751 100644--- a/apps/web/components/pages/HomePage/Pricing/CommercialCard.tsx+++ b/apps/web/components/pages/HomePage/Pricing/CommercialCard.tsx@@ -1,14 +1,11 @@import { Button, Switch } from "@cap/ui";-import {- faCheck,- faMinus,- faPlus,-} from "@fortawesome/free-solid-svg-icons";+import { faCheck, faMinus, faPlus } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import NumberFlow from "@number-flow/react";import clsx from "clsx";import { useRef, useState } from "react";import { toast } from "sonner";+import { homepageCopy } from "../../../../data/homepage-copy";import { CommercialArt, CommercialArtRef } from "./CommercialArt";export const CommercialCard = () => {@@ -17,8 +14,10 @@ export const CommercialCard = () => {const [commercialLoading, setCommercialLoading] = useState(false);const commercialArtRef = useRef<CommercialArtRef>(null);- const COMMERCIAL_LICENSE_YEARLY_PRICE = 29;- const COMMERCIAL_LICENSE_LIFETIME_PRICE = 58;+ const COMMERCIAL_LICENSE_YEARLY_PRICE =+ homepageCopy.pricing.commercial.pricing.yearly;+ const COMMERCIAL_LICENSE_LIFETIME_PRICE =+ homepageCopy.pricing.commercial.pricing.lifetime;const currentPrice = isYearly? licenses * COMMERCIAL_LICENSE_YEARLY_PRICE@@ -66,13 +65,13 @@ export const CommercialCard = () => {><div><div className="md:h-[300px]">- <CommercialArt ref={commercialArtRef} />- <h3 className="mb-2 text-2xl text-center text-gray-12">- App + Commercial License- </h3>- <p className="mb-6 text-base text-center text-gray-10 w-full max-w-[285px] mx-auto">- For professional use of the desktop app, without cloud features.- </p>+ <CommercialArt ref={commercialArtRef} />+ <h3 className="mb-2 text-2xl text-center text-gray-12">+ {homepageCopy.pricing.commercial.title}+ </h3>+ <p className="mb-6 text-base text-center text-gray-10 w-full max-w-[285px] mx-auto">+ {homepageCopy.pricing.commercial.description}+ </p></div><div className="mb-6 text-center">@@ -86,103 +85,106 @@ export const CommercialCard = () => {{isYearly ? (<p className="text-lg tabular-nums text-gray-10">or, $- <NumberFlow value={licenses * COMMERCIAL_LICENSE_LIFETIME_PRICE} />{" "}+ <NumberFlow+ value={licenses * COMMERCIAL_LICENSE_LIFETIME_PRICE}+ />{" "}one-time payment</p>) : (<p className="text-lg tabular-nums text-gray-10">or, $- <NumberFlow value={licenses * COMMERCIAL_LICENSE_YEARLY_PRICE} />{" "}+ <NumberFlow+ value={licenses * COMMERCIAL_LICENSE_YEARLY_PRICE}+ />{" "}/ year</p>)}</div><div className="flex flex-wrap gap-5 justify-center items-center p-5 my-8 w-full rounded-xl border xs:gap-3 xs:p-3 xs:rounded-full xs:justify-between bg-gray-3 border-gray-4">-- <div className="flex gap-3 justify-center items-center">- <p className="text-base text-gray-12">Licenses:</p>- <div className="flex items-center">- <Button- onClick={decrementLicenses}- className="px-1.5 py-1.5 bg-gray-12 hover:bg-gray-11 min-w-fit h-fit"- aria-label="Decrease license count"- >- <FontAwesomeIcon icon={faMinus} className="text-gray-1 size-3" />- </Button>- <span className="w-8 font-medium tabular-nums text-center text-gray-12">- <NumberFlow value={licenses} />- </span>- <Button- onClick={incrementLicenses}- className="px-1.5 py-1.5 bg-gray-12 hover:bg-gray-11 min-w-fit h-fit"- aria-label="Increase license count"- >- <FontAwesomeIcon icon={faPlus} className="text-gray-1 size-3" />- </Button>+ <div className="flex gap-3 justify-center items-center">+ <p className="text-base text-gray-12">+ {homepageCopy.pricing.commercial.labels.licenses}+ </p>+ <div className="flex items-center">+ <Button+ onClick={decrementLicenses}+ className="px-1.5 py-1.5 bg-gray-12 hover:bg-gray-11 min-w-fit h-fit"+ aria-label="Decrease license count"+ >+ <FontAwesomeIcon+ icon={faMinus}+ className="text-gray-1 size-3"+ />+ </Button>+ <span className="w-8 font-medium tabular-nums text-center text-gray-12">+ <NumberFlow value={licenses} />+ </span>+ <Button+ onClick={incrementLicenses}+ className="px-1.5 py-1.5 bg-gray-12 hover:bg-gray-11 min-w-fit h-fit"+ aria-label="Increase license count"+ >+ <FontAwesomeIcon icon={faPlus} className="text-gray-1 size-3" />+ </Button>+ </div></div>- </div>- <div className="flex justify-center items-center">- <div className="flex gap-2 items-center">- <span- className={clsx(- "text-md",- isYearly ? "font-medium text-gray-12" : "text-gray-10"- )}- >- Yearly- </span>- <Switch- checked={!isYearly}- onCheckedChange={(checked) => setIsYearly(!checked)}- aria-label="Billing Cycle For Commercial"- id="billing-cycle-commercial"- />- <span- className={clsx(- "text-md",- !isYearly ? "font-medium text-gray-12" : "text-gray-10"- )}- >- Lifetime- </span>+ <div className="flex justify-center items-center">+ <div className="flex gap-2 items-center">+ <span+ className={clsx(+ "text-md",+ isYearly ? "font-medium text-gray-12" : "text-gray-10"+ )}+ >+ {homepageCopy.pricing.commercial.labels.yearly}+ </span>+ <Switch+ checked={!isYearly}+ onCheckedChange={(checked) => setIsYearly(!checked)}+ aria-label="Billing Cycle For Commercial"+ id="billing-cycle-commercial"+ />+ <span+ className={clsx(+ "text-md",+ !isYearly ? "font-medium text-gray-12" : "text-gray-10"+ )}+ >+ {homepageCopy.pricing.commercial.labels.lifetime}+ </span>+ </div></div></div>-- </div>-- <ul className="mb-8 space-y-3 text-base">- <li className="flex items-center text-gray-12">- <FontAwesomeIcon icon={faCheck} className="mr-2 text-gray-12" />- Commercial use of Cap Recorder + Editor- </li>- <li className="flex items-center text-gray-12">- <FontAwesomeIcon icon={faCheck} className="mr-2 text-gray-12" />- Community Support- </li>- <li className="flex items-center text-gray-12">- <FontAwesomeIcon icon={faCheck} className="mr-2 text-gray-12" />- Local-only features- </li>- <li className="flex items-center text-gray-12">- <FontAwesomeIcon icon={faCheck} className="mr-2 text-gray-12" />- Perpetual license option- </li>+ <ul className="mb-8 space-y-4">+ {homepageCopy.pricing.commercial.features.map((feature) => (+ <li+ key={feature}+ className="flex items-start text-base text-gray-12"+ >+ <FontAwesomeIcon+ icon={faCheck}+ className="mr-3 mt-0.5 text-gray-12 flex-shrink-0"+ style={{ fontSize: "18px", minWidth: "18px" }}+ />+ <span className="leading-6">{feature}</span>+ </li>+ ))}</ul></div><Button- disabled={commercialLoading}- onClick={openCommercialCheckout}- variant="primary"- size="lg"- className="w-full font-medium"- aria-label="Purchase Commercial License"- >- {commercialLoading ? "Loading..." : "Purchase License"}- </Button>+ disabled={commercialLoading}+ onClick={openCommercialCheckout}+ variant="primary"+ size="lg"+ className="w-full font-medium"+ aria-label="Purchase Commercial License"+ >+ {commercialLoading ? "Loading..." : homepageCopy.pricing.commercial.cta}+ </Button></div>);};diff --git a/apps/web/components/pages/HomePage/Pricing/ProCard.tsx b/apps/web/components/pages/HomePage/Pricing/ProCard.tsxindex 8f024e9ea..a2d09d013 100644--- a/apps/web/components/pages/HomePage/Pricing/ProCard.tsx+++ b/apps/web/components/pages/HomePage/Pricing/ProCard.tsx@@ -1,16 +1,13 @@import { Button, Switch } from "@cap/ui";import { getProPlanId } from "@cap/utils";-import {- faCheck,- faMinus,- faPlus,-} from "@fortawesome/free-solid-svg-icons";+import { faCheck, faMinus, faPlus } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import NumberFlow from "@number-flow/react";import clsx from "clsx";import { useRouter } from "next/navigation";import { useRef, useState } from "react";import { toast } from "sonner";+import { homepageCopy } from "../../../../data/homepage-copy";import { ProArt, ProArtRef } from "./ProArt";export const ProCard = () => {@@ -20,15 +17,18 @@ export const ProCard = () => {const proArtRef = useRef<ProArtRef>(null);const { push } = useRouter();- const CAP_PRO_ANNUAL_PRICE_PER_USER = 6;- const CAP_PRO_MONTHLY_PRICE_PER_USER = 9;+ const CAP_PRO_ANNUAL_PRICE_PER_USER = homepageCopy.pricing.pro.pricing.annual;+ const CAP_PRO_MONTHLY_PRICE_PER_USER =+ homepageCopy.pricing.pro.pricing.monthly;const currentTotalPricePro =users *(isAnnually? CAP_PRO_ANNUAL_PRICE_PER_USER: CAP_PRO_MONTHLY_PRICE_PER_USER);- const billingCycleTextPro = isAnnually ? "per user, billed annually" : "per user, billed monthly";+ const billingCycleTextPro = isAnnually+ ? "per user, billed annually"+ : "per user, billed monthly";const incrementUsers = () => setUsers((prev) => prev + 1);const decrementUsers = () => setUsers((prev) => (prev > 1 ? prev - 1 : 1));@@ -80,20 +80,17 @@ export const ProCard = () => {<div><div className="absolute top-0 left-1/2 transform -translate-x-1/2 -translate-y-1/2"><span className="rounded-full font-mono bg-blue-500 px-4 py-1.5 text-xs uppercase text-gray-1">- Most Popular+ {homepageCopy.pricing.pro.badge}</span></div><div className="md:h-[300px]">- <ProArt ref={proArtRef} />- <h3 className="mb-2 text-2xl text-center">- App + Commercial License +{" "}- <span className="text-blue-9">Cap Pro</span>- </h3>- <p className="mb-6 text-base text-center text-gray-8">- For professional use + cloud features like shareable links,- transcriptions, comments, & more. Perfect for teams or sharing with- clients.- </p>+ <ProArt ref={proArtRef} />+ <h3 className="mb-2 text-2xl text-center">+ {homepageCopy.pricing.pro.title}+ </h3>+ <p className="mb-6 text-base text-center text-gray-8">+ {homepageCopy.pricing.pro.description}+ </p></div><div className="mb-6 text-center">@@ -156,70 +153,67 @@ export const ProCard = () => {</div><div className="flex flex-wrap gap-5 justify-center items-center p-5 my-8 w-full rounded-xl border xs:gap-3 xs:p-3 xs:rounded-full xs:justify-between bg-zinc-700/50 border-zinc-700">-- <div className="flex gap-3 justify-center items-center">- <p className="text-base text-gray-1">Users:</p>- <div className="flex items-center">- <Button- onClick={decrementUsers}- className="px-1.5 py-1.5 bg-gray-1 hover:bg-gray-3 min-w-fit h-fit"- aria-label="Decrease user count"- >- <FontAwesomeIcon icon={faMinus} className="text-gray-12 size-3" />- </Button>- <span className="w-8 font-medium tabular-nums text-center text-white">- <NumberFlow value={users} />- </span>- <Button- onClick={incrementUsers}- className="px-1.5 py-1.5 bg-gray-1 hover:bg-gray-3 min-w-fit h-fit"- aria-label="Increase user count"- >- <FontAwesomeIcon icon={faPlus} className="text-gray-12 size-3" />- </Button>+ <div className="flex gap-3 justify-center items-center">+ <p className="text-base text-gray-1">+ {homepageCopy.pricing.pro.labels.users}+ </p>+ <div className="flex items-center">+ <Button+ onClick={decrementUsers}+ className="px-1.5 py-1.5 bg-gray-1 hover:bg-gray-3 min-w-fit h-fit"+ aria-label="Decrease user count"+ >+ <FontAwesomeIcon+ icon={faMinus}+ className="text-gray-12 size-3"+ />+ </Button>+ <span className="w-8 font-medium tabular-nums text-center text-white">+ <NumberFlow value={users} />+ </span>+ <Button+ onClick={incrementUsers}+ className="px-1.5 py-1.5 bg-gray-1 hover:bg-gray-3 min-w-fit h-fit"+ aria-label="Increase user count"+ >+ <FontAwesomeIcon+ icon={faPlus}+ className="text-gray-12 size-3"+ />+ </Button>+ </div></div>- </div>- <div className="flex justify-center items-center">- <div className="flex gap-2 items-center">- <span- className={clsx(- "text-md",- !isAnnually ? "text-white" : "text-gray-8"- )}- >- Monthly- </span>- <Switch- checked={isAnnually}- onCheckedChange={setIsAnnually}- aria-label="Billing Cycle For Pro"- id="billing-cycle-cap-pro"- />- <span- className={clsx(- "text-md",- isAnnually ? "text-white" : "text-gray-8"- )}- >- Annually- </span>+ <div className="flex justify-center items-center">+ <div className="flex gap-2 items-center">+ <span+ className={clsx(+ "text-md",+ !isAnnually ? "text-white" : "text-gray-8"+ )}+ >+ {homepageCopy.pricing.pro.labels.monthly}+ </span>+ <Switch+ checked={isAnnually}+ onCheckedChange={setIsAnnually}+ aria-label="Billing Cycle For Pro"+ id="billing-cycle-cap-pro"+ />+ <span+ className={clsx(+ "text-md",+ isAnnually ? "text-white" : "text-gray-8"+ )}+ >+ {homepageCopy.pricing.pro.labels.annually}+ </span>+ </div></div></div>- </div>-<ul className="mb-8 space-y-3 text-base">- {[- "Commercial License included",- "Unlimited cloud storage & Shareable links",- "Connect custom S3 storage bucket",- "Advanced teams features",- "Unlimited views",- "Password protected videos",- "Advanced analytics",- "Priority support",- ].map((feature) => (+ {homepageCopy.pricing.pro.features.map((feature) => (<li key={feature} className="flex items-center text-gray-1"><FontAwesomeIcon icon={faCheck} className="mr-2 text-gray-1" />{feature}@@ -229,15 +223,15 @@ export const ProCard = () => {</div><Button- variant="white"- size="lg"- onClick={() => planCheckout()}- disabled={proLoading}- className="w-full font-medium"- aria-label="Purchase Cap Pro License"- >- {proLoading ? "Loading..." : "Purchase License"}- </Button>+ variant="white"+ size="lg"+ onClick={() => planCheckout()}+ disabled={proLoading}+ className="w-full font-medium"+ aria-label="Purchase Cap Pro License"+ >+ {proLoading ? "Loading..." : homepageCopy.pricing.pro.cta}+ </Button></div>);};diff --git a/apps/web/components/pages/HomePage/Pricing/index.tsx b/apps/web/components/pages/HomePage/Pricing/index.tsxindex 3b9f15a3c..cf0feb7be 100644--- a/apps/web/components/pages/HomePage/Pricing/index.tsx+++ b/apps/web/components/pages/HomePage/Pricing/index.tsx@@ -1,5 +1,6 @@import { faHeart } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { homepageCopy } from "../../../../data/homepage-copy";import { CommercialCard } from "./CommercialCard";import { ProCard } from "./ProCard";@@ -8,17 +9,17 @@ export { ProCard } from "./ProCard";const Pricing = () => {return (- <div className="w-full max-w-[1000px] mx-auto my-[150px] md:my-[200px] lg:my-[250px] px-5">+ <div className="w-full max-w-[1100px] mx-auto px-5"><div className="px-5 mb-16 text-center">- <h2 className="mb-3 w-full">Pricing</h2>+ <h2 className="mb-3 w-full">{homepageCopy.pricing.title}</h2><p className="text-lg max-w-[800px] mx-auto leading-[1.75rem] w-full">- 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.+ {homepageCopy.pricing.subtitle}</p><div className="flex justify-center items-center px-5 py-2.5 gap-2 mx-auto mt-6 rounded-full border bg-gray-1 border-gray-5 w-fit"><FontAwesomeIcon className="text-red-500 size-3.5" icon={faHeart} />- <p className="font-medium text-gray-12">Loved by 10k+ users</p>+ <p className="font-medium text-gray-12">+ {homepageCopy.pricing.lovedBy}+ </p></div></div><div className="flex flex-col gap-8 justify-center items-stretch lg:flex-row">diff --git a/apps/web/components/pages/HomePage/RecordingModes.tsx b/apps/web/components/pages/HomePage/RecordingModes.tsxindex 2d36f46b5..67bb7f375 100644--- a/apps/web/components/pages/HomePage/RecordingModes.tsx+++ b/apps/web/components/pages/HomePage/RecordingModes.tsx@@ -1,96 +1,178 @@-import { getDownloadButtonText, getDownloadUrl, getPlatformIcon } from "@/utils/platform";+import {+ getDownloadButtonText,+ getDownloadUrl,+ getPlatformIcon,+} from "@/utils/platform";import { Button } from "@cap/ui";import clsx from "clsx";import { motion } from "framer-motion";import { useDetectPlatform } from "hooks/useDetectPlatform";import { Clapperboard, Zap } from "lucide-react";import { useState } from "react";+import { homepageCopy } from "../../../data/homepage-copy";interface Mode {- name: "Instant" | "Studio";- icon: JSX.Element;- description: string;+ name: "Instant Mode" | "Studio Mode";+ icon: JSX.Element;+ description: string;}-const modes: Mode[] = [+const RecordingModes = () => {+ const modes: Mode[] = [{- name: "Instant",- icon: <Zap fill="yellow" className="size-5 md:size-6" strokeWidth={1.5} />,- description: "Share your screen instantly with a magic link — no waiting for rendering, just capture and share in seconds."+ name: "Instant Mode",+ icon: (+ <Zap fill="yellow" className="size-5 md:size-6" strokeWidth={1.5} />+ ),+ description:+ homepageCopy.recordingModes.modes.find((m) => m.name === "Instant Mode")+ ?.description || "",},{- name: "Studio",- icon: <Clapperboard fill="var(--blue-9)" className="size-5 md:size-6" strokeWidth={1.5} />,- description: "Experience the power of Cap Studio Mode for high-quality recordings with local editing."- }-];+ name: "Studio Mode",+ icon: (+ <Clapperboard+ fill="var(--blue-9)"+ className="size-5 md:size-6"+ strokeWidth={1.5}+ />+ ),+ description:+ homepageCopy.recordingModes.modes.find((m) => m.name === "Studio Mode")+ ?.description || "",+ },+ ];-const RecordingModes = () => {- const [activeMode, setActiveMode] = useState<Mode | undefined>(modes[0]);- const { platform, isIntel } = useDetectPlatform();- const loading = platform === null;-- return (- <div className="w-full max-w-[1200px] mx-auto px-5">- <div className="flex flex-col gap-2 justify-center items-center text-center">- <h1 className="text-4xl font-medium text-12">Instant & Studio modes</h1>- <p className="text-lg text-gray-10">Upload your videos instantly or experience our editor before sharing</p>+ const [activeMode, setActiveMode] = useState<Mode | undefined>(modes[0]);+ const { platform, isIntel } = useDetectPlatform();+ const loading = platform === null;++ const handleModeSwitch = (mode: Mode) => {+ setActiveMode(mode);+ };++ return (+ <div className="w-full max-w-[1000px] mx-auto px-5">+ <div className="flex flex-col gap-2 justify-center items-center text-center">+ <h1 className="text-4xl font-medium text-12">+ {homepageCopy.recordingModes.title}+ </h1>+ <p className="text-lg text-gray-10">+ {homepageCopy.recordingModes.subtitle}+ </p>+ </div>+ {/*Toggles*/}+ <div className="flex flex-col sm:flex-row gap-2 sm:gap-5 mt-[52px]">+ {modes.map((mode) => (+ <div+ onClick={() => handleModeSwitch(mode)}+ key={mode.name}+ className={clsx(+ "flex overflow-hidden relative",+ "flex-1 gap-3 justify-center items-center px-6 py-4 text-lg md:text-2xl font-medium rounded-2xl border transition-colors duration-200",+ "cursor-pointer",+ activeMode?.name === mode.name+ ? "bg-blue-2 border-blue-6 text-blue-12"+ : "text-gray-12 bg-gray-1 border-gray-5 hover:bg-gray-3"+ )}+ >+ <div className="flex gap-1.5 z-[2] items-center">+ {mode.icon}+ {mode.name}+ </div></div>- {/*Toggles*/}- <div className="flex flex-1 gap-5 mt-[52px]">- {modes.map((mode) => (- <div onClick={() => setActiveMode(mode)} key={mode.name} className={clsx("flex overflow-hidden relative",- "flex-1 gap-3 justify-center items-center px-6 py-4 text-lg md:text-2xl font-medium rounded-2xl border transition-colors duration-200" ,- "cursor-pointer text-gray-12 bg-gray-1 border-gray-5", activeMode !== mode ? "hover:bg-gray-3" : "pointer-events-none")}>- <div className="flex gap-1.5 z-[2] items-center">- {mode.icon}- {mode.name}- </div>- {activeMode?.name === mode.name && (- <motion.div- initial={{ width: "0%", borderRadius: 0 }}- animate={{- width: "100%",- }}- exit={{ width: "0%" }}- onAnimationComplete={() => setActiveMode(prev => prev === modes[0] ? modes[1] : modes[0])}- transition={{- duration: 10,- ease: "linear"- }}- className={clsx("absolute z-[1] inset-0 h-full", activeMode.name === modes[0]?.name ? "bg-yellow-100" : "bg-blue-100")} />- )}- </div>- ))}+ ))}+ </div>+ {/* Video*/}+ <div className="mt-5 w-full rounded-2xl border shadow-xl h-fit bg-gray-1 border-gray-5 shadow-black/5">+ {/*Video Content*/}+ <div className="relative h-full">+ {activeMode?.name === "Instant Mode" ? (+ <div+ key="instant-mode"+ className="overflow-hidden w-full rounded-t-xl"+ style={{+ position: "relative",+ paddingBottom: "56.25%",+ height: 0,+ }}+ >+ <iframe+ src="https://cap.so/embed/8cq21vmz12tm1zf"+ frameBorder="0"+ allowFullScreen+ style={{+ position: "absolute",+ top: 0,+ left: 0,+ width: "100%",+ height: "100%",+ borderTopLeftRadius: "0.75rem",+ borderTopRightRadius: "0.75rem",+ }}+ /></div>- {/* Video*/}- <div className="mt-5 w-full rounded-2xl border shadow-xl h-fit bg-gray-1 border-gray-5 shadow-black/5">- {/*Video Content*/}- <div className="relative h-full">- <img src="/illustrations/videopreview.jpg" alt="App" className="object-cover w-full min-h-[90%] rounded-t-xl" />- {/*Video Description*/}- <div className="absolute right-0 bottom-0 left-0 p-4 border-t backdrop-blur-md bg-black/70 border-gray-12">- <p className="mx-auto w-full text-sm text-center md:text-xl text-gray-1">{activeMode?.description}</p>- </div>- </div>- <div className="p-6">- <Button- variant="primary"- href={- platform === "windows"- ? "/download"- : getDownloadUrl(platform, isIntel)- }- size="lg"- className="flex justify-center items-center mx-auto font-medium w-fit"- >- {!loading && getPlatformIcon(platform)}- {getDownloadButtonText(platform, loading, isIntel)}- </Button>- </div>+ ) : (+ <div+ key="studio-mode"+ className="overflow-hidden w-full rounded-t-xl"+ style={{+ position: "relative",+ paddingBottom: "56.25%",+ height: 0,+ }}+ >+ <iframe+ src="https://cap.so/embed/qk8gt56e1q1r735"+ frameBorder="0"+ allowFullScreen+ style={{+ position: "absolute",+ top: 0,+ left: 0,+ width: "100%",+ height: "100%",+ borderTopLeftRadius: "0.75rem",+ borderTopRightRadius: "0.75rem",+ }}+ /></div>+ )}</div>- )-}+ {/*Video Description*/}+ <div className="p-4 border-t border-b bg-gray-2 border-gray-5">+ <p className="mx-auto w-full text-sm text-center md:text-xl text-gray-12">+ {activeMode?.description}+ </p>+ </div>+ <div className="p-6">+ <div className="flex flex-col items-center space-y-2 sm:flex-row sm:space-y-0 sm:space-x-4 sm:justify-center">+ <Button+ variant="gray"+ href={+ platform === "windows"+ ? "/download"+ : getDownloadUrl(platform, isIntel)+ }+ size="lg"+ className="flex justify-center items-center w-full font-medium sm:w-auto"+ >+ {!loading && getPlatformIcon(platform)}+ {getDownloadButtonText(platform, loading, isIntel)}+ </Button>+ <Button+ variant="blue"+ href="/pricing"+ size="lg"+ className="w-full font-medium sm:w-auto"+ >+ {homepageCopy.header.cta.primaryButton}+ </Button>+ </div>+ </div>+ </div>+ </div>+ );+};-export default RecordingModes;\ No newline at end of file+export default RecordingModes;diff --git a/apps/web/components/pages/HomePage/Testimonials.tsx b/apps/web/components/pages/HomePage/Testimonials.tsxindex 3b1200360..201dafdc4 100644--- a/apps/web/components/pages/HomePage/Testimonials.tsx+++ b/apps/web/components/pages/HomePage/Testimonials.tsx@@ -3,6 +3,7 @@ import { motion } from "framer-motion";import Image from "next/image";import { useState } from "react";import { testimonials } from "../../../data/testimonials";+import { homepageCopy } from "../../../data/homepage-copy";// Combined type for testimonial data and its position/style configurationinterface TestimonialItem {@@ -25,7 +26,8 @@ interface TestimonialCardProps {const TestimonialCard: React.FC<TestimonialCardProps> = ({ item }) => {const [isHovered, setIsHovered] = useState(false);// Destructure all properties from item, including position, rotation and zIndex- const { name, handle, image, content, url, position, rotation, zIndex } = item;+ const { name, handle, image, content, url, position, rotation, zIndex } =+ item;return (<motion.a@@ -36,7 +38,9 @@ const TestimonialCard: React.FC<TestimonialCardProps> = ({ item }) => {style={{...position,transformOrigin: "center center",- boxShadow: isHovered ? "0 20px 25px rgba(0, 0, 0, 0.1)" : "0 4px 10px rgba(0, 0, 0, 0.05)",+ boxShadow: isHovered+ ? "0 20px 25px rgba(0, 0, 0, 0.1)"+ : "0 4px 10px rgba(0, 0, 0, 0.05)",}}initial={{rotate: rotation,@@ -75,54 +79,53 @@ const TestimonialCard: React.FC<TestimonialCardProps> = ({ item }) => {// Combined testimonial data with position and style configurationsconst testimonialItems: TestimonialItem[] = [{- ...testimonials[2],- position: { right: '5%', top: '5%' },- rotation: 8,- zIndex: 4+ ...testimonials[2],+ position: { right: "5%", top: "5%" },+ rotation: 8,+ zIndex: 4,},{- ...testimonials[25],- position: { right: '25%', top: '15%' },- rotation: -5,- zIndex: 3+ ...testimonials[25],+ position: { right: "25%", top: "15%" },+ rotation: -5,+ zIndex: 3,},{- ...testimonials[9],- position: { left: '5%', top: '10%' },- rotation: -8,- zIndex: 2+ ...testimonials[9],+ position: { left: "5%", top: "10%" },+ rotation: -8,+ zIndex: 2,},{- ...testimonials[22],- position: { left: '25%', top: '5%' },- rotation: 5,- zIndex: 1+ ...testimonials[22],+ position: { left: "25%", top: "5%" },+ rotation: 5,+ zIndex: 1,},{- ...testimonials[12],- position: { right: '18%', top: '40%' },- rotation: 8,- zIndex: 3+ ...testimonials[12],+ position: { right: "18%", top: "40%" },+ rotation: 8,+ zIndex: 3,},{- ...testimonials[10],- position: { left: '20%', top: '40%' },- rotation: -4,- zIndex: 0+ ...testimonials[10],+ position: { left: "20%", top: "40%" },+ rotation: -4,+ zIndex: 0,},];// Main Testimonials componentconst Testimonials = () => {return (- <div className="w-full max-w-[1200px] mx-auto my-[250px] md:px-5">+ <div className="w-full max-w-[1200px] mx-auto md:px-5"><div className="px-5 mb-16 text-center md:text-left"><h2 className="mb-3 w-full max-w-[440px]">- What our users say about Cap after hitting record+ {homepageCopy.testimonials.title}</h2><p className="text-lg leading-[1.75rem] w-full max-w-[500px]">- Don't just take our word for it. Here's what our users are saying- about their experience with Cap.+ {homepageCopy.testimonials.subtitle}</p></div>@@ -134,13 +137,16 @@ const Testimonials = () => {))}</div></div>- <Button- href="/testimonials"- className="mx-auto mt-10 md:mt-0 w-fit" variant="primary" size="lg">- View more+ <Button+ href="/testimonials"+ className="mx-auto mt-10 md:mt-0 w-fit"+ variant="primary"+ size="lg"+ >+ {homepageCopy.testimonials.cta}</Button></div>);};-export default Testimonials;\ No newline at end of file+export default Testimonials;diff --git a/apps/web/components/pages/HomePage/index.tsx b/apps/web/components/pages/HomePage/index.tsxindex 45bcd855f..b69928978 100644--- a/apps/web/components/pages/HomePage/index.tsx+++ b/apps/web/components/pages/HomePage/index.tsx@@ -1,29 +1,15 @@-// million-ignore-"use client";import { ReadyToGetStarted } from "@/components/ReadyToGetStarted";-import { Testimonials } from "@/components/ui/Testimonials";-import {- getDownloadButtonText,- getDownloadUrl,- getPlatformIcon,- PlatformIcons,-} from "@/utils/platform";-import { Button } from "@cap/ui";-import { faAngleRight, faPlay } from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import MuxPlayer from "@mux/mux-player-react";-import { useClickAway } from "@uidotdev/usehooks";-import { AnimatePresence, motion } from "framer-motion";-import { useDetectPlatform } from "hooks/useDetectPlatform";-import Link from "next/link";-import React, { useState } from "react";-import { Parallax, ParallaxProvider } from "react-scroll-parallax";-import { LogoSection } from "../_components/LogoSection";-import LeftBlueHue from "./LeftBlueHue";-import PowerfulFeaturesSVG from "./PowerfulFeaturesSVG";-import { FeatureCard } from "../_components/FeatureCard";+import { TextReveal } from "@/components/ui/TextReveal";+import React from "react";+import { homepageCopy } from "../../../data/homepage-copy";+import Faq from "./Faq";+import Features from "./Features";+import Header from "./Header";+import Pricing from "./Pricing";+import RecordingModes from "./RecordingModes";+import Testimonials from "./Testimonials";interface HomePageProps {serverHomepageCopyVariant?: string;@@ -32,499 +18,20 @@ interface HomePageProps {export const HomePage: React.FC<HomePageProps> = ({serverHomepageCopyVariant = "",}) => {- const [videoToggled, setVideoToggled] = useState(false);- const { platform, isIntel } = useDetectPlatform();- const loading = platform === null;-return (- <ParallaxProvider>- <div className="mt-[120px]">- <div className="relative z-10 px-5 w-full">- <div className="mx-auto text-center wrapper wrapper-sm">- <Link- href="https://x.com/richiemcilroy/status/1895526857807733018"- target="_blank"- className="flex gap-3 transition-colors duration-300 shadow-sm- mb-[52px] items-center relative z-[20] px-3.5 py-1- mx-auto bg-gray-1 rounded-full border w-fit border-gray-5 hover:bg-gray-3"- >- <p className="text-[13px] text-gray-12">- Launch Week Day 5:{" "}- <span className="text-[13px] font-bold text-blue-9">- Self-host Cap- </span>- </p>- <FontAwesomeIcon- fontWeight="light"- className="w-2 text-gray-12"- icon={faAngleRight}- />- </Link>- <h3 className="relative z-10 text-base text-black fade-in-down">- Record. Edit. Share.- </h3>- <h1 className="fade-in-down text-[2rem] font-bold leading-[2.5rem] md:text-[3.75rem] md:leading-[4rem] relative z-10 text-black mb-4">- {serverHomepageCopyVariant === "1" ? (- <>- Beautiful screen recordings,- <br />- owned by you.- </>- ) : serverHomepageCopyVariant === "2" ? (- <>The open source Loom alternative.</>- ) : serverHomepageCopyVariant === "3" ? (- <>The open source screen recording suite.</>- ) : (- <>- Beautiful screen recordings,- <br />- owned by you.- </>- )}- </h1>- <p className="mx-auto mb-8 max-w-3xl text-md sm:text-xl text-zinc-500 fade-in-down animate-delay-1">- {serverHomepageCopyVariant === "1" ? (- <>- Cap is the open source alternative to Loom. Lightweight,- powerful, and cross-platform. Record and share securely in- seconds with custom S3 bucket support.- </>- ) : serverHomepageCopyVariant === "2" ? (- <>- Cap is the open source alternative to Loom. Lightweight,- powerful, and cross-platform. Record and share securely in- seconds. Connect your own storage, domain & more.- </>- ) : serverHomepageCopyVariant === "3" ? (- <>- Cap is open source, lightweight, powerful & cross-platform.- With Instant Mode for shareable links and Studio Mode for- high-quality recordings with local editing.- </>- ) : (- <>- Cap is the open source alternative to Loom. Lightweight,- powerful, and cross-platform. Record and share securely in- seconds with custom S3 bucket support.- </>- )}- </p>- </div>- <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">- <Button- variant="white"- href={- platform === "windows"- ? "/download"- : getDownloadUrl(platform, isIntel)- }- size="lg"- className="flex justify-center items-center w-full font-medium text-md sm:w-auto"- >- {!loading && getPlatformIcon(platform)}- {getDownloadButtonText(platform, loading, isIntel)}- </Button>- <Button- variant="radialblue"- href="/pricing"- size="lg"- className="relative z-[20] w-full font-medium text-md sm:w-auto"- >- Buy Now- </Button>- </div>- <p className="text-sm text-center text-zinc-400 animate-delay-2 fade-in-up">- Free version available. No credit card required.- </p>-- {/* Platform icons */}- <PlatformIcons />-- {/* See other options button */}- <div className="flex justify-center mt-2">- <Link- href="/download"- className="text-sm text-center underline text-zinc-400 animate-delay-2 fade-in-up hover:text-zinc-500"- >- See other options- </Link>- </div>- </div>- <AnimatePresence>- {videoToggled && <VideoModal setVideoToggled={setVideoToggled} />}- </AnimatePresence>- <Parallax- className="relative flex items-center justify-center w-full max-w-[540px] mx-auto mt-[100px] mb-[190px] sm:mt-[160px] sm:mb-[200px]"- scale={[1, 1.6]}- >- <motion.div- whileTap={{ scale: 0.95 }}- whileHover={{ scale: 1.05 }}- onClick={() => setVideoToggled(true)}- className="absolute cursor-pointer size-[100px] flex items-center justify-center group"- >- <div- style={{- background:- "linear-gradient(180deg, rgba(255, 255, 255, 0.10) 30%, #3B7BFA 100%)",- boxShadow: "0px 0px 40px 16px rgba(25, 39, 67, 0.25)",- }}- className="size-[100px] relative backdrop-blur-[6px] rounded-full flex items-center justify-center play-button-outer-border"- >- <div- className="size-[80px] flex items-center justify-center relative inner-play-button-border-two group-hover:brightness-110 transition-all duration-300 backdrop-blur-[6px] rounded-[80px]"- style={{- background:- "linear-gradient(180deg, #90BDFF 0%, #3588FF 100%)",- boxShadow:- "0px 2px 0px 0px #C5DDFF inset, 0px 12px 6.3px -2px #A5CAFF inset, 0px -7px 9.2px 0px #305098 inset, 0px 14px 20px -8px #0E275E, 0px -19px 24px 0px #2363BF inset",- }}- >- <FontAwesomeIcon- className="text-white size-5 drop-shadow-[0px_0px_5px_rgba(255,255,255)]"- icon={faPlay}- />- </div>- </div>- </motion.div>- <img- src="/illustrations/app.webp"- className="mx-auto w-full max-w-[540px] pointer-events-none h-auto rounded-xl"- alt="Landing Page Screenshot Banner"- />- </Parallax>- {/** Header BG */}- <div className="w-full mx-auto overflow-hidden h-[830px] absolute top-0 left-0">- <motion.div- animate={{- x: [0, "30vw"],- top: 340,- opacity: [0.7, 0.5],- }}- transition={{- duration: 6,- repeat: Infinity,- repeatType: "reverse",- ease: "linear",- }}- className="absolute opacity-70 top-[340px] -left-[200px] z-[9]- w-full max-w-[1800px] h-[100px] bg-gradient-to-l from-transparent via-white/90 to-white"- style={{- borderRadius: "100%",- mixBlendMode: "plus-lighter",- filter: "blur(50px)",- }}- />- <motion.div- initial={{- right: -200,- top: 150,- opacity: 0.25,- }}- animate={{- right: [-200, 400],- opacity: [0.25, 0.1, 0.25],- }}- transition={{- duration: 6,- repeat: Infinity,- repeatType: "reverse",- ease: "linear",- }}- className="absolute mix-blend-plus-lighter z-[9] w-full max-w-[800px] h-[200px]- blur-[60px] rounded-full bg-gradient-to-r from-transparent via-white to-white"- />- <LeftBlueHue />- {/** Clouds */}- <motion.img- style={{- mixBlendMode: "plus-lighter",- }}- initial={{- right: 100,- top: 50,- rotate: 180,- }}- animate={{- x: "-100vw",- }}- transition={{- duration: 500,- repeat: Infinity,- repeatType: "reverse",- ease: "linear",- }}- className="absolute w-full max-w-[500px] z-[5] select-none"- src="./illustrations/bottomcloud.webp"- alt="bottomcloudthree"- />- <motion.img- style={{- mixBlendMode: "plus-lighter",- }}- animate={{- x: [0, "100vw"],- }}- transition={{- duration: 300,- repeat: Infinity,- repeatType: "reverse",- }}- className="absolute- top-[180px] w-full max-w-[280px] z-[4] right-[60px] md:right-[600px] select-none"- src="./illustrations/smallcloudthree.webp"- alt="smallcloudfour"- />- <motion.img- style={{- mixBlendMode: "screen",- }}- animate={{- x: [0, "100vw"],- }}- transition={{- duration: 100,- repeat: Infinity,- repeatType: "reverse",- ease: "linear",- }}- className="absolute top-[20px] left-[-60px] md:left-[-400px] select-none z-[5] pointer-events-none"- src="./illustrations/bottomcloud.webp"- alt="bottomcloudthree"- />- <img- className="absolute- top-[180px] w-full max-w-[400px] z-0 select-none right-[60px] opacity-30 pointer-events-none"- src="./illustrations/smallcloudthree.webp"- alt="smallcloudthree"- />- <motion.img- style={{- mixBlendMode: "screen",- }}- animate={{- x: [0, "-100vw"],- }}- transition={{- duration: 120,- repeat: Infinity,- repeatType: "reverse",- ease: "linear",- }}- className="absolute- 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"- />- <img- style={{- mixBlendMode: "screen",- }}- className="absolute- w-full max-w-[500px] top-[210px] right-[300px] z-[2] select-none brightness-125 pointer-events-none"- src="./illustrations/chipcloud.webp"- alt="chipcloudtwo"- />- <motion.img- style={{- mixBlendMode: "screen",- }}- initial={{- x: -200,- rotate: 180,- }}- animate={{- x: [-200, "100vw"],- }}- transition={{- duration: 200,- repeat: Infinity,- repeatType: "reverse",- ease: "linear",- }}- className="absolute- 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"- />- <img- className="absolute- 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] pointer-events-none"- src="./illustrations/bottomcloud.webp"- alt="bottomcloud"- />- <img- className="absolute bottom-[-90px] right-[-400px] select-none z-[5] pointer-events-none"- src="./illustrations/bottomcloud.webp"- alt="bottomcloudtwo"- />- </div>- {/** Right Blue Hue */}- <div- className="w-[868px] h-[502px] bg-gradient-to-l rounded-full blur-[100px]- absolute top-20 z-[0] right-0 from-[#A6D7FF] to-transparent"- />- </div>- <LogoSection />- <div className="pb-32 wrapper md:pb-40">- <div className="mb-4">- <PowerfulFeaturesSVG />- </div>- <div className="text-center max-w-[800px] mx-auto mb-8">- <h2 className="mb-3">Crafted for simplicity</h2>- <p className="text-[1.125rem] leading-[1.75rem]">- We believe great tools should make your life easier, not more- complicated. Cap is crafted to streamline your workflow, so you can- record, edit, and share without jumping through hoops.- </p>- </div>- <div className="grid grid-cols-2 gap-4 md:grid-cols-4">- <div className="overflow-hidden rounded-[20px]">- <img- className="w-full h-auto max-h-[290px] object-cover"- src="/features/ease-of-use.png"- alt="Ease of use Illustration"- />- </div>- <div className="overflow-hidden rounded-[20px]">- <img- className="w-full h-auto max-h-[290px] object-cover"- src="/features/privacy-first.png"- alt="Privacy first Illustration"- />- </div>- <div className="overflow-hidden rounded-[20px]">- <img- className="w-full h-auto max-h-[290px] object-cover"- src="/features/lightweight.png"- alt="Lightweight Illustration"- />- </div>- <div className="overflow-hidden rounded-[20px]">- <img- className="w-full h-auto max-h-[290px] object-cover"- src="/features/open-source.png"- alt="Open source Illustration"- />- </div>- </div>- </div>- <div className="pb-32 wrapper" id="features">- <div className="space-y-3">- {/* Section 1: 35% / 65% split */}- <div className="grid grid-cols-1 gap-3 md:grid-cols-12">- <div className="md:col-span-5">- <FeatureCard- title="Privacy-first"- description="Own your content with Cap's privacy-focused approach. Keep your sensitive information secure and maintain complete control over who can access your recordings - perfect for confidential client communications and internal team sharing."- imagePath="/illustrations/privacy.webp"- imageAlt="Complete Control"- imageHeight="h-[280px]"- />- </div>- <div className="md:col-span-7">- <FeatureCard- title="Multi-Platform Support"- description="Cap works seamlessly across macOS and Windows, giving you the flexibility to create content on any device. Capture, share, and collaborate regardless of which platform you or your team prefers, ensuring smooth workflows and consistent experience everywhere."- imagePath="/illustrations/multiplatmain.png"- bg="/illustrations/multiplatbg.webp"- imageAlt="Enterprise-Ready"- className="bg-[center_top_-90px] bg-no-repeat bg-cover lg:bg-[center_top_-60px]"- imageHeight="h-[280px]"- />- </div>- </div>-- {/* Section 2: 65% / 35% split */}- <div className="grid grid-cols-1 gap-3 md:grid-cols-12">- <div className="md:col-span-8">- <FeatureCard- title="Flexible Storage Options"- bg="/illustrations/multiplatbg.webp"- description="Choose how and where you store your recordings. Cap offers both local and cloud storage options to suit your needs. Save space on your device or keep your entire content library accessible from anywhere - ideal for freelancers and growing teams with varied content creation needs."- imagePath="/illustrations/cloud-feature.webp"- imageAlt="White Labeling"- imageHeight="h-[215px]"- className="lg:bg-[center_top_-150px] bg-[center_top_-120px] bg-no-repeat bg-cover"- />- </div>- <div className="md:col-span-4">- <FeatureCard- title="High-Quality Video Capture"- description="Deliver crystal-clear recordings that showcase your professionalism. Cap ensures exceptional quality for client presentations, tutorials, and team communications - making your content stand out whether you're a solo creator or a small business owner."- imagePath="/illustrations/video-capture.webp"- imageAlt="Data Sovereignty"- imageHeight="h-[224px]"- />- </div>- </div>-- {/* Section 3: Full width */}- <div className="grid grid-cols-1">- <FeatureCard- title="Seamless Team Collaboration"- description="Share knowledge effortlessly with your team or clients. Cap's intuitive sharing features make it easy to organize content, provide access to specific people, and track engagement. Perfect for small businesses and growing teams who need simple yet powerful collaboration tools."- imagePath="/illustrations/collaboration.webp"- imageAlt="Dedicated Support"- imageHeight="h-[285px]"- />- </div>- </div>+ <>+ <Header serverHomepageCopyVariant={serverHomepageCopyVariant} />+ <div className="space-y-[150px] lg:space-y-[200px]">+ <RecordingModes />+ <Features />+ <Testimonials />+ <Pricing />+ <Faq /></div>- <div className="mb-32 wrapper">- <Testimonials- amount={10}- title="What our users say about Cap after hitting record"- subtitle="Don't just take our word for it. Here's what our users are saying about their experience with Cap."- />- </div>- <div className="px-5 mb-32">- <ReadyToGetStarted />- </div>- </ParallaxProvider>- );-};--interface Props {- setVideoToggled: React.Dispatch<React.SetStateAction<boolean>>;-}--const VideoModal = ({ setVideoToggled }: Props) => {- const ref = useClickAway<HTMLDivElement>(() => setVideoToggled(false));- return (- <motion.div- initial={{ opacity: 0 }}- animate={{ opacity: 1 }}- exit={{ opacity: 0 }}- className="flex fixed inset-0 justify-center items-center w-screen z-[500] h-screen backdrop-blur-md bg-black/20"- >- <motion.div- initial={{ filter: "blur(20px)", y: 50 }}- animate={{ filter: "blur(0px)", y: 0 }}- exit={{ filter: "blur(20px)", y: 50 }}- transition={{- type: "spring",- bounce: 0.3,- stiffness: 250,- damping: 20,- }}- ref={ref}- className="w-[calc(100%-20px)] max-w-[1000px] bg-gray-1 rounded-[16px] md:h-[700px] h-[300px]"- >- <MuxPlayer- playbackId="A6oZoUWVZjOIVZB6XnBMLagYnXE6xhDhp8Hcyky018hk"- metadataVideoTitle="Placeholder (optional)"- metadata-viewer-user-id="Placeholder (optional)"- accentColor="#5C9FFF"- className="h-full rounded-[16px] overflow-hidden select-none"- autoPlay- />- </motion.div>- </motion.div>+ <TextReveal className="max-w-[600px] mx-auto leading-[1.2] text-center">+ {homepageCopy.textReveal}+ </TextReveal>+ <ReadyToGetStarted />+ </>);};diff --git a/apps/web/components/pages/PricingPage.tsx b/apps/web/components/pages/PricingPage.tsxindex 55f2e7ae4..b29eda476 100644--- a/apps/web/components/pages/PricingPage.tsx+++ b/apps/web/components/pages/PricingPage.tsx@@ -1,86 +1,50 @@"use client";-import {- Button,- Card,- CardDescription,- CardFooter,- CardHeader,- CardTitle,- Switch,-} from "@cap/ui";-import { getProPlanId } from "@cap/utils";-import NumberFlow from "@number-flow/react";-import clsx from "clsx";-import { Check } from "lucide-react";-import { useRouter, useSearchParams } from "next/navigation";-import { useEffect, useState } from "react";-import { toast } from "sonner";-import { SimplePlans } from "../text/SimplePlans";+import { faHeart } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { motion } from "framer-motion";import { Testimonials } from "../ui/Testimonials";--const QuantityButton = ({- onClick,- children,-}: {- onClick: () => void;- children: React.ReactNode;-}) => {- return (- <button- onClick={onClick}- className="flex justify-center items-center px-2 py-0 w-6 h-6 bg-gray-200 rounded-md hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-gray-400"- >- {children}- </button>- );+import { CommercialCard, ProCard } from "./HomePage/Pricing";++// Animation variants+const fadeIn = {+ hidden: { opacity: 0, y: 20 },+ visible: (custom: number = 0) => ({+ opacity: 1,+ y: 0,+ transition: {+ delay: custom * 0.1,+ duration: 0.5,+ ease: "easeOut",+ },+ }),};-export const PricingPage = () => {- const [proLoading, setProLoading] = useState(false);- const [commercialLoading, setCommercialLoading] = useState(false);- const [isAnnual, setIsAnnual] = useState(true);- 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();-- useEffect(() => {- const init = async () => {- setInitialRender(false);- const planFromUrl = searchParams.get("plan");- const pendingPriceId = localStorage.getItem("pendingPriceId");- const pendingProQuantity = localStorage.getItem("pendingQuantity");-- if (pendingPriceId && pendingProQuantity) {- localStorage.removeItem("pendingPriceId");- localStorage.removeItem("pendingQuantity");-- const response = await fetch(`/api/settings/billing/subscribe`, {- method: "POST",- headers: {- "Content-Type": "application/json",- },- body: JSON.stringify({- priceId: pendingPriceId,- quantity: parseInt(pendingProQuantity),- }),- });- const data = await response.json();-- if (data.url) {- window.location.href = data.url;- }- } else if (planFromUrl) {- planCheckout(planFromUrl);- }- };+const fadeInFromBottom = {+ hidden: { opacity: 0, y: 50 },+ visible: (custom: number = 0) => ({+ opacity: 1,+ y: 0,+ transition: {+ delay: 0.3 + custom * 0.1,+ duration: 0.6,+ ease: "easeOut",+ },+ }),+};- init();- }, []);+const staggerContainer = {+ hidden: { opacity: 0 },+ visible: {+ opacity: 1,+ transition: {+ staggerChildren: 0.1,+ delayChildren: 0.2,+ },+ },+};+export const PricingPage = () => {const scrollToTestimonials = (e: React.MouseEvent) => {e.preventDefault();const testimonials = document.getElementById("testimonials");@@ -95,490 +59,82 @@ export const PricingPage = () => {}};- const planCheckout = async (planId?: string) => {- setProLoading(true);-- if (!planId) {- planId = getProPlanId(isAnnual ? "yearly" : "monthly");- }-- const response = await fetch(`/api/settings/billing/subscribe`, {- method: "POST",- headers: {- "Content-Type": "application/json",- },- body: JSON.stringify({ priceId: planId, quantity: proQuantity }),- });- const data = await response.json();-- if (data.auth === false) {- localStorage.setItem("pendingPriceId", planId);- localStorage.setItem("pendingQuantity", proQuantity.toString());- push(`/login?next=/pricing`);- return;- }-- if (data.subscription === true) {- toast.success("You are already on the Cap Pro plan");- }-- if (data.url) {- window.location.href = data.url;- }-- 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,- },- {- text: "Connect custom S3 storage bucket",- available: true,- },- {- text: "Desktop app commercial license included",- available: true,- },- {- text: "Advanced teams features",- available: true,- },- {- text: "Unlimited views",- available: true,- },- {- text: "Password protected videos",- available: true,- },- {- text: "Advanced analytics",- available: true,- },- {- text: "Priority support",- available: true,- },- ];-- const commercialList = [- {- text: "Commercial Use of Cap Recorder + Editor",- available: true,- },- {- text: "Community Support",- available: true,- },- {- text: "Local-only features",- available: true,- },- {- text: "Perpetual license option",- available: true,- },- ];-return (- <div>+ <motion.div initial="hidden" animate="visible" variants={staggerContainer}><div className="py-12 mt-16 space-y-24 wrapper"><div>- <div className="mb-8 text-center">- <div- className={clsx("mb-4", {- "fade-in-down animate-delay-1": initialRender,- })}- >- <SimplePlans />- </div>- <h1- className={clsx("text-4xl md:text-5xl", {- "fade-in-down animate-delay-1 text-gray-12": initialRender,- })}+ <motion.div className="mb-8 text-center" variants={fadeIn} custom={0}>+ <motion.h1+ className="text-4xl md:text-5xl"+ variants={fadeIn}+ custom={1}>Early Adopter Pricing- </h1>- <p- className={clsx("mx-auto mt-3 max-w-[800px]", {- "mt-4 fade-in-down animate-delay-1 text-gray-10": initialRender,- })}+ </motion.h1>+ <motion.p+ className="mx-auto mt-3 max-w-[800px]"+ variants={fadeIn}+ custom={2}>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>- <a- className="inline-flex mt-3 text-sm font-bold text-gray-10 hover:underline fade-in-down animate-delay-1"- href="#testimonials"+ </motion.p>+ <motion.divonClick={scrollToTestimonials}+ className="flex justify-center cursor-pointer items-center px-5 py-2.5 gap-2 mx-auto mt-6 rounded-full border bg-gray-1 border-gray-5 w-fit hover:bg-gray-2 transition-colors"+ variants={fadeIn}+ custom={3}+ whileHover={{ scale: 1.03 }}+ whileTap={{ scale: 0.98 }}>- Loved by 10k+ users- </a>- </div>-- <div className="grid grid-cols-1 gap-3 items-stretch md:grid-cols-2">- <Card- className={clsx("flex-grow rounded-xl bg-gray-1 min-h-[600px]", {- "fade-in-down animate-delay-2": initialRender,- })}- >- <div className="space-y-4">- <CardHeader>- <CardTitle className="text-2xl">- App + Commercial License- </CardTitle>- <CardDescription className="text-lg">- For professional use of the desktop app, without cloud- features.- </CardDescription>- <div>- <div className="flex items-center space-x-3">- <NumberFlow- value={- isCommercialAnnual- ? `${29 * licenseQuantity}`- : `${58 * licenseQuantity}`- }- className="text-4xl tabular-nums"- format={{- notation: "compact",- style: "currency",- currency: "USD",- }}- />- <div>- <p className="text-sm font-medium">- {isCommercialAnnual ? (- licenseQuantity === 1 ? (- "billed annually"- ) : (- <>- for{" "}- <NumberFlow- value={licenseQuantity}- className="text-sm font-medium tabular-nums"- />{" "}- licenses, billed annually- </>- )- ) : licenseQuantity === 1 ? (- "one-time payment"- ) : (- <>- for{" "}- <NumberFlow- value={licenseQuantity}- className="text-sm font-medium tabular-nums"- />{" "}- licenses, one-time payment- </>- )}- </p>- {isCommercialAnnual && (- <p className="text-sm">- or,{" "}- <NumberFlow- value={58 * licenseQuantity}- className="text-sm tabular-nums"- format={{- notation: "compact",- style: "currency",- currency: "USD",- }}- />{" "}- one-time payment- </p>- )}- </div>- </div>- <div className="flex justify-between items-center 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">- <QuantityButton- onClick={() =>- licenseQuantity > 1 &&- setLicenseQuantity(licenseQuantity - 1)- }- >- -- </QuantityButton>- <NumberFlow- value={licenseQuantity}- className="text-sm tabular-nums"- />- <QuantityButton- onClick={() =>- setLicenseQuantity(licenseQuantity + 1)- }- >- +- </QuantityButton>- </div>- </div>- </div>- </div>- </CardHeader>- <Card className="bg-transparent border-0">- <Button- onClick={openCommercialCheckout}- className="w-full"- size="lg"- disabled={commercialLoading}- >- {commercialLoading- ? "Loading..."- : licenseQuantity > 1- ? "Purchase Licenses"- : "Purchase License"}- </Button>- </Card>- <CardFooter>- <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-12">- {item.text}- </span>- </li>- ))}- </ul>- </div>- </div>- </CardFooter>- </div>- </Card>-- <Card- className={`bg-gray-1 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-2xl font-medium">- App + Commercial License +{" "}- <span className="text-2xl font-bold text-blue-500">- 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 className="flex items-center space-x-3">- <NumberFlow- value={- isAnnual ? `${6 * proQuantity}` : `${9 * proQuantity}`- }- className="text-4xl tabular-nums"- format={{- notation: "compact",- style: "currency",- currency: "USD",- }}- suffix="/mo"- />- <div>- <p className="text-sm font-medium">- {isAnnual ? (- proQuantity === 1 ? (- "per user, billed annually."- ) : (- <>- for{" "}- <NumberFlow- value={proQuantity}- className="text-sm font-medium tabular-nums"- />{" "}- users, billed annually.- </>- )- ) : proQuantity === 1 ? (- "per user, billed monthly."- ) : (- <>- for{" "}- <NumberFlow- value={proQuantity}- className="text-sm font-medium tabular-nums"- />{" "}- users, billed monthly.- </>- )}- </p>- {isAnnual && (- <p className="text-sm">- or,{" "}- <NumberFlow- value={9 * proQuantity}- className="text-sm tabular-nums"- format={{- notation: "compact",- style: "currency",- currency: "USD",- }}- suffix="/mo"- />{" "}- {proQuantity === 1 ? (- "per user, "- ) : (- <>- for{" "}- <NumberFlow- value={proQuantity}- className="text-sm tabular-nums"- />{" "}- users,{" "}- </>- )}- billed monthly.- </p>- )}- </div>- </div>- <div className="flex justify-between items-center pt-4 mt-2 border-t border-gray-200">- <div className="flex items-center">- <span className="mr-2 text-xs">- Switch to {isAnnual ? "monthly" : "annually"}- </span>- <Switch- checked={!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">- <QuantityButton- onClick={() =>- proQuantity > 1 && setProQuantity(proQuantity - 1)- }- >- -- </QuantityButton>- <NumberFlow- value={proQuantity}- className="text-sm tabular-nums"- />- <QuantityButton- onClick={() => setProQuantity(proQuantity + 1)}- >- +- </QuantityButton>- </div>- </div>- </div>- </div>- </CardHeader>- <Card className="bg-transparent border-0">- <Button- variant="primary"- onClick={() => planCheckout()}- className="w-full"- size="lg"- disabled={proLoading}- >- {proLoading ? "Loading..." : "Upgrade to Cap Pro"}- </Button>- </Card>- <CardFooter>- <div className="space-y-8">- <div>- <ul className="p-0 space-y-3 list-none">- {proList.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-12">- {item.text}- </span>- </li>- ))}- </ul>- </div>- </div>- </CardFooter>- </div>- </Card>- </div>+ <FontAwesomeIcon+ className="text-red-500 size-3.5"+ icon={faHeart}+ />+ <p className="font-medium text-gray-12">Loved by 10k+ users</p>+ </motion.div>+ </motion.div>++ <motion.div+ className="w-full max-w-[1100px] mx-auto"+ variants={fadeInFromBottom}+ custom={0}+ >+ <div className="flex flex-col gap-8 justify-center items-stretch lg:flex-row">+ <CommercialCard />+ <ProCard />+ </div>+ </motion.div></div>- <div className="mb-32 wrapper" id="testimonials">++ <motion.div+ className="mb-32 wrapper"+ id="testimonials"+ variants={fadeIn}+ custom={4}+ ><Testimonialsamount={24}title="What our users say about Cap after hitting record"subtitle="Don't just take our word for it. Here's what our users are saying about their experience with Cap."/>- </div>- <div>+ </motion.div>++ <motion.div+ variants={fadeIn}+ custom={5}+ initial="hidden"+ whileInView="visible"+ viewport={{ once: true, margin: "-100px" }}+ ><img- className="mx-auto w-full h-auto"+ className="mx-auto w-full h-auto rounded-xl shadow-lg"src="/illustrations/comparison.png"alt="Cap vs Competitors Table"/>- </div>+ </motion.div></div>- </div>+ </motion.div>);};diff --git a/apps/web/components/seo/SeoPageTemplate.tsx b/apps/web/components/seo/SeoPageTemplate.tsxindex 020702156..038635e64 100644--- a/apps/web/components/seo/SeoPageTemplate.tsx+++ b/apps/web/components/seo/SeoPageTemplate.tsx@@ -134,7 +134,7 @@ export const SeoPageTemplate = ({</div><div className="flex flex-col justify-center items-center space-y-2 fade-in-up animate-delay-2 sm:flex-row sm:space-y-0 sm:space-x-4"><Button- variant="radialblue"+ variant="blue"href="/download"size="lg"className="relative z-[20] w-full font-medium text-md sm:w-auto"diff --git a/apps/web/data/homepage-copy.ts b/apps/web/data/homepage-copy.tsnew file mode 100644index 000000000..cb72598e1--- /dev/null+++ b/apps/web/data/homepage-copy.ts@@ -0,0 +1,299 @@+export interface HeaderCopyVariants {+ 1: {+ title: string;+ description: string;+ };+ 2: {+ title: string;+ description: string;+ };+ 3: {+ title: string;+ description: string;+ };+ default: {+ title: string;+ description: string;+ };+}++export interface HeaderCopy {+ announcement: {+ text: string;+ href: string;+ };+ variants: HeaderCopyVariants;+ cta: {+ primaryButton: string;+ secondaryButton: string;+ freeVersionText: string;+ seeOtherOptionsText: string;+ };+}++export interface RecordingModesCopy {+ title: string;+ subtitle: string;+ modes: {+ name: string;+ description: string;+ }[];+}++export interface FeaturesCopy {+ title: string;+ subtitle: string;+ features: {+ title: string;+ description: string;+ }[];+}++export interface TestimonialsCopy {+ title: string;+ subtitle: string;+ cta: string;+}++export interface PricingCopy {+ title: string;+ subtitle: string;+ lovedBy: string;+ commercial: {+ title: string;+ description: string;+ features: string[];+ cta: string;+ pricing: {+ yearly: number;+ lifetime: number;+ };+ labels: {+ licenses: string;+ yearly: string;+ lifetime: string;+ };+ };+ pro: {+ badge: string;+ title: string;+ description: string;+ features: string[];+ cta: string;+ pricing: {+ annual: number;+ monthly: number;+ };+ labels: {+ users: string;+ monthly: string;+ annually: string;+ };+ };+}++export interface FaqCopy {+ title: string;+ items: {+ question: string;+ answer: string;+ }[];+}++export interface ReadyToGetStartedCopy {+ title: string;+ buttons: {+ primary: string;+ secondary: string;+ };+}++export interface HomePageCopy {+ header: HeaderCopy;+ textReveal: string;+ recordingModes: RecordingModesCopy;+ features: FeaturesCopy;+ testimonials: TestimonialsCopy;+ pricing: PricingCopy;+ faq: FaqCopy;+ readyToGetStarted: ReadyToGetStartedCopy;+}++export const homepageCopy: HomePageCopy = {+ header: {+ announcement: {+ text: "🚨 Early adopter pricing ending soon",+ href: "/pricing",+ },+ variants: {+ 1: {+ title: "Beautiful, shareable screen recordings",+ description: "Cap is the open source alternative to Loom. Lightweight, powerful, and cross-platform. Record and share securely in seconds with custom S3 bucket support. Connect your own domain.",+ },+ 2: {+ title: "The screen recorder that respects your workflow",+ description: "Record, edit, and share in seconds — not minutes. Cap gives you studio-quality recordings without the studio complexity. Own your content, control your data.",+ },+ 3: {+ title: "Screen recording with superpowers",+ description: "Beautiful recordings in one click. Professional editing when you need it. Share instantly or polish to perfection — Cap adapts to how you work, not the other way around.",+ },+ default: {+ title: "Beautiful, shareable screen recordings",+ description: "Cap is the open source alternative to Loom. Lightweight, powerful, and cross-platform. Record and share securely in seconds with custom S3 bucket support. Connect your own domain.",+ },+ },+ cta: {+ primaryButton: "Upgrade to Cap Pro",+ secondaryButton: "Download",+ freeVersionText: "No credit card required. Get started for free.",+ seeOtherOptionsText: "See pricing",+ },+ },+ textReveal: "Record. Edit. Share.",+ recordingModes: {+ title: "Share instantly, or record and edit locally",+ subtitle: "Instant Mode bypasses rendering with real-time uploading whilst you are recording. Studio Mode prioritizes quality with local recording and full editing capabilities.",+ modes: [+ {+ name: "Instant Mode",+ description: "Hit record, stop, share link. Your video is live in seconds with automatically generated captions, a title, summary, chapters, and more. Perfect for quick feedback, bug reports, or when you just need to show something fast.",+ },+ {+ name: "Studio Mode",+ description: "Professional recordings with local editing, custom backgrounds, and export options. When you need pixel-perfect demos, tutorials, or presentations that represent your brand.",+ },+ ],+ },+ features: {+ title: "Built for how you actually work",+ subtitle: "We obsessed over the details so you don't have to. Every feature is designed to save you time and make you look good.",+ features: [+ {+ title: "Your storage, your rules",+ description: "Connect your own S3 bucket, use our cloud, or keep everything local. Unlike other tools, you're never locked into our infrastructure. Perfect for teams with compliance requirements or those who value data sovereignty.",+ },+ {+ title: "Privacy by default, sharing by choice",+ description: "Instant sharing when you need it, local recording when you want it. Share publicly or privately. Password protect sensitive recordings or keep them local only.",+ },+ {+ title: "Async collaboration that actually works",+ description: "Comments, reactions, and transcripts keep conversations moving without another meeting. See who watched, get notified on feedback, and turn recordings into actionable next steps. Replace those \"quick sync\" calls for good.",+ },+ {+ title: "Cross-platform for your entire team",+ description: "Native apps for macOS and Windows that feel at home on each platform. No janky Electron apps or browser extensions. Just fast, reliable recording that works with your existing tools and workflow.",+ },+ {+ title: "Quality that makes you look professional",+ description: "4K recording, 60fps capture, and intelligent compression that keeps file sizes reasonable.",+ },+ {+ title: "Truly open source",+ description: "See exactly how Cap works, contribute features you need, or self-host for complete control. Join a community of builders who believe great tools should be transparent, extensible, and respect their users.",+ },+ {+ title: "Speed up your workflow with Cap AI",+ description: "Auto-generated titles, summaries, clickable chapters, and transcriptions for every recording. AI features that actually save time instead of creating more work.",+ },+ ],+ },+ testimonials: {+ title: "Loved by builders, trusted by teams",+ subtitle: "Join thousands who've made Cap their daily driver for visual communication.",+ cta: "Read more testimonials",+ },+ pricing: {+ title: "Simple, honest pricing",+ subtitle: "Start free, upgrade when you need more. Early adopter pricing locked in forever.",+ lovedBy: "Trusted by 10,000+ users",+ commercial: {+ title: "Desktop License",+ description: "For professionals who want unlimited local recording and editing.",+ features: [+ "Commercial usage",+ "Unlimited local recordings",+ "Studio Mode with full editor",+ "Export to any format",+ "Community support",+ ],+ cta: "Get Desktop License",+ pricing: {+ yearly: 29,+ lifetime: 58,+ },+ labels: {+ licenses: "License type",+ yearly: "Annual",+ lifetime: "One-time",+ },+ },+ pro: {+ badge: "Best value",+ title: "Cap Pro",+ description: "Everything in Desktop plus cloud features for seamless sharing and collaboration.",+ features: [+ "Everything in Desktop License",+ "Unlimited cloud storage & bandwidth",+ "Auto-generated titles, summaries, clickable chapters, and transcriptions for every recording",+ "Custom domain (cap.yourdomain.com)",+ "Password protected shares",+ "Viewer analytics & engagement",+ "Team workspaces",+ "Custom S3 bucket support",+ "Priority support & early features",+ ],+ cta: "Get started",+ pricing: {+ annual: 6,+ monthly: 9,+ },+ labels: {+ users: "Per user",+ monthly: "Monthly",+ annually: "Annual (save 33%)",+ },+ },+ },+ faq: {+ title: "Questions? We've got answers.",+ items: [+ {+ question: "How is Cap different from Loom?",+ answer: "Cap gives you the best of both worlds: the simplicity of Loom with the power of professional tools. We're open source, support custom storage, offer better pricing, and our desktop app works offline. Plus, you actually own your content.",+ },+ {+ question: "What happens to my recordings if I cancel?",+ answer: "Your recordings are yours forever. If you cancel Pro, existing shares remain active and you can always export everything. Downgrade to our free plan to keep recording locally, or self-host to maintain all features.",+ },+ {+ question: "Do you offer team plans?",+ answer: "Yes! Cap Pro includes team workspaces where you can organize recordings, manage permissions, and collaborate. Volume discounts available for teams over 10 users. Contact us for custom enterprise features.",+ },+ {+ question: "Which platforms do you support?",+ answer: "Native desktop apps for macOS (Apple Silicon & Intel) and Windows. View your shareable linkes from anywhere.",+ },+ {+ question: "Can I use Cap for commercial purposes?",+ answer: "Absolutely! Any paid plan (Desktop License or Cap Pro) includes full commercial usage rights. Use Cap for client work, sell courses, or embed recordings anywhere. The free version is for personal use only.",+ },+ {+ question: "Is my data secure?",+ answer: "Security is core to Cap. As an open source project, our code is fully auditable and transparent - you can see exactly how your data is handled. End-to-end encryption for cloud storage, option to use your own infrastructure, and community-driven security reviews keep your content safe.",+ },+ {+ question: "What about GDPR/HIPAA compliance?",+ answer: "Cap Pro supports custom S3 buckets in any region for GDPR compliance. For HIPAA and other regulations, our self-hosted option gives you complete control. We also offer signed BAAs for enterprise customers.",+ },+ ],+ },+ readyToGetStarted: {+ title: "Ready to upgrade how you communicate?",+ buttons: {+ primary: "Download Cap",+ secondary: "Started",+ },+ },+};\ No newline at end of filediff --git a/apps/web/public/illustrations/app.webp b/apps/web/public/illustrations/app.webpindex 28d9ac9e5..a2392dd01 100644Binary files a/apps/web/public/illustrations/app.webp and b/apps/web/public/illustrations/app.webp differdiff --git a/apps/web/public/rive/bento.riv b/apps/web/public/rive/bento.rivindex 3c0a0d894..fc9b7b4bd 100644Binary files a/apps/web/public/rive/bento.riv and b/apps/web/public/rive/bento.riv differdiff --git a/apps/web/utils/flags.ts b/apps/web/utils/flags.tsindex ba42830ed..58079d14c 100644--- a/apps/web/utils/flags.ts+++ b/apps/web/utils/flags.ts@@ -1,32 +1,12 @@import { isUserOnProPlan } from "@cap/utils";-import { getBootstrapData } from "./getBootstrapData";export interface FeatureFlagUser {email: string;stripeSubscriptionStatus?: string | null;}-export async function isAiUiEnabled(user: FeatureFlagUser): Promise<boolean> {- if (!user.email) {- return false;- }-- const bootstrap = await getBootstrapData();-- return bootstrap.allowedEmails.includes(user.email);-}-export async function isAiGenerationEnabled(user: FeatureFlagUser): Promise<boolean> {- if (!user.email) {- return false;- }-- const bootstrap = await getBootstrapData();- const hasAllowedEmail = bootstrap.allowedEmails.includes(user.email);-- const isProUser = isUserOnProPlan({+ return isUserOnProPlan({subscriptionStatus: user.stripeSubscriptionStatus || null,});-- return hasAllowedEmail && isProUser;}\ No newline at end of filediff --git a/apps/web/utils/getBootstrapData.ts b/apps/web/utils/getBootstrapData.tsindex adf3f9962..6e3bbb08b 100644--- a/apps/web/utils/getBootstrapData.ts+++ b/apps/web/utils/getBootstrapData.ts@@ -13,7 +13,6 @@ export const generateId = cache(() => {export interface BootstrapData {distinctID: string;featureFlags: Record<string, string | boolean>;- allowedEmails: string[];}export const getBootstrapData = cache(async (): Promise<BootstrapData> => {@@ -21,7 +20,6 @@ export const getBootstrapData = cache(async (): Promise<BootstrapData> => {return {distinctID: "",featureFlags: {},- allowedEmails: [],};let distinct_id = "";@@ -50,48 +48,9 @@ export const getBootstrapData = cache(async (): Promise<BootstrapData> => {const flags = await client.getAllFlags(distinct_id);- let allowedEmails: string[] = [];- try {- const remoteConfigPayload = await client.getRemoteConfigPayload(- "cap-ai-testers"- );-- if (remoteConfigPayload) {- let parsedPayload = remoteConfigPayload;- if (typeof remoteConfigPayload === "string") {- try {- parsedPayload = JSON.parse(remoteConfigPayload);- } catch (parseError) {- console.error(- "Error parsing remote config payload as JSON:",- parseError- );- }- }-- if (- parsedPayload &&- typeof parsedPayload === "object" &&- !Array.isArray(parsedPayload) &&- "emails" in parsedPayload- ) {- const emails = (parsedPayload as { emails: unknown }).emails;-- if (Array.isArray(emails)) {- allowedEmails = emails.filter(- (email): email is string => typeof email === "string"- );- }- }- }- } catch (e) {- console.error("Error fetching PostHog remote config:", e);- }-const bootstrap: BootstrapData = {distinctID: distinct_id,featureFlags: flags,- allowedEmails,};return bootstrap;diff --git a/apps/web/utils/platform.tsx b/apps/web/utils/platform.tsxindex 525485225..83b27dd3a 100644--- a/apps/web/utils/platform.tsx+++ b/apps/web/utils/platform.tsx@@ -22,9 +22,9 @@ export const getDownloadButtonText = (if (loading) {return "Download Cap";} else if (platform === "windows") {- return "Download for Windows (Beta)";+ return "Download for free";} else if (platform === "macos") {- return isIntel ? "Download for Apple Intel" : "Download for Apple Silicon";+ return isIntel ? "Download for free" : "Download for free";} else {return "Download Cap";}@@ -60,21 +60,21 @@ export const getVersionText = (platform: string | null): React.ReactNode => {export const PlatformIcons: React.FC = () => {return (- <div className="flex relative z-10 gap-3 justify-center mt-5 animate-delay-2 fade-in-up">+ <div className="flex relative z-10 gap-3 mt-5"><div><buttononClick={() => {window.location.href = "/download/apple-silicon";}}className="focus:outline-none"- aria-label="Download for Apple Silicon"+ aria-label="Download for free"><svgxmlns="http://www.w3.org/2000/svg"width="1em"height="1em"fill="currentColor"- className="size-[24px] text-gray-1 opacity-90"+ className="size-[24px] text-gray-12 opacity-90"viewBox="0 0 384 512"><path d="M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9m-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3" />@@ -93,7 +93,7 @@ export const PlatformIcons: React.FC = () => {height="1em"fill="currentColor"style={{ marginTop: "1.5px" }}- className="size-[24px] text-gray-1 opacity-90"+ className="size-[24px] text-gray-12 opacity-90"viewBox="0 0 256 256"><path d="M112 144v51.64a8 8 0 0 1-8 8 8.5 8.5 0 0 1-1.43-.13l-64-11.64A8 8 0 0 1 32 184v-40a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8m-2.87-89.78a8 8 0 0 0-6.56-1.73l-64 11.64A8 8 0 0 0 32 72v40a8 8 0 0 0 8 8h64a8 8 0 0 0 8-8V60.36a8 8 0 0 0-2.87-6.14M216 136h-80a8 8 0 0 0-8 8v57.45a8 8 0 0 0 6.57 7.88l80 14.54a7.6 7.6 0 0 0 1.43.13 8 8 0 0 0 8-8v-72a8 8 0 0 0-8-8m5.13-102.14a8 8 0 0 0-6.56-1.73l-80 14.55a8 8 0 0 0-6.57 7.87V112a8 8 0 0 0 8 8h80a8 8 0 0 0 8-8V40a8 8 0 0 0-2.87-6.14" />diff --git a/packages/ui/src/components/Button.tsx b/packages/ui/src/components/Button.tsxindex cdd935702..7d4ae3110 100644--- a/packages/ui/src/components/Button.tsx+++ b/packages/ui/src/components/Button.tsx@@ -1,11 +1,10 @@import { classNames } from "@cap/utils";import { Slot } from "@radix-ui/react-slot";import { cva, type VariantProps } from "class-variance-authority";-import clsx from "clsx";import * as React from "react";const buttonVariants = cva(- "flex items-center justify-center not-disabled:cursor-pointer ring-offset-transparent transition-colors duration-200 relative min-w-[100px] gap-1 rounded-xl",+ "flex items-center justify-center rounded-full cursor-pointer font-medium px-[1.25rem] ring-offset-transparent relative gap-1",{defaultVariants: {variant: "primary",@@ -13,27 +12,23 @@ const buttonVariants = cva(},variants: {variant: {- primary:- "bg-gradient-to-t disabled:bg-gradient-to-t button-gradient-border from-blue-10 to-[#75A3FF] shadow-[0_0_0_1px] not-disabled:hover:brightness-110 shadow-blue-11 text-gray-50 hover:bg-blue-9 disabled:from-blue-8 disabled:to-blue-6",- red: "bg-gradient-to-t button-gradient-border from-[#772828] to-[#9F3C3C] shadow-[0_0_0_1px] hover:brightness-110 shadow-red-900 text-gray-50 hover:bg-red-400 disabled:bg-red-200",- secondary:- "bg-blue-400 text-gray-50 hover:bg-blue-500 disabled:bg-blue-200 disabled:text-gray-8 border-blue-300",+ primary: "bg-gray-12 text-gray-1 hover:bg-gray-11",+ blue: "bg-blue-600 text-white hover:bg-blue-700 disabled:bg-blue-200 disabled:text-gray-8",destructive:- "bg-gradient-to-t disabled:opacity-50 disabled:from-red-800 disabled:to-red-600 disabled:cursor-not-allowed shadow-[0_0_0_1px] shadow-red-900 hover:brightness-110 from-red-600 to-red-400 text-gray-50 button-gradient-border hover:bg-red-400 border-red-300",- white:- "bg-gray-2 text-gray-12 hover:border-gray-4 hover:bg-gray-3 border disabled:bg-gray-1 border-gray-3",- gray: "bg-gray-4 text-gray-12 hover:bg-gray-6 hover:border-gray-7 disabled:bg-gray-1 border-gray-5 border",- dark: "bg-gray-12 text-gray-1 disabled:cursor-not-allowed hover:bg-gray-11 disabled:text-gray-10 border disabled:bg-gray-7 disabled:border-gray-8 border-gray-12",+ "bg-red-500 text-white hover:bg-red-600 disabled:bg-red-200",+ white: "bg-gray-1 text-gray-12 hover:bg-gray-2 disabled:bg-gray-8",+ gray: "bg-gray-4 text-gray-12 hover:bg-gray-5 disabled:bg-gray-1",+ dark: "bg-gray-12 text-gray-1 disabled:cursor-not-allowed hover:bg-gray-11 disabled:text-gray-10 disabled:bg-gray-7 disabled:border-gray-8",darkgradient:"bg-gradient-to-t button-gradient-border from-[#0f0f0f] to-[#404040] shadow-[0_0_0_1px] hover:brightness-110 shadow-[#383838] text-gray-50 hover:bg-[#383838] disabled:bg-[#383838] border-transparent",radialblue:"text-gray-50 border button-gradient-border shadow-[0_0_0_1px] shadow-blue-400 disabled:bg-gray-1 border-0 [background:radial-gradient(90%_100%_at_15%_12%,#9BC4FF_0%,#3588FF_100%)] border-transparent hover:opacity-80",},size: {- xs: "text-xs [var(--gradient-border-radius: 20px)] rounded-lg h-[32px] px-[0.5rem] ",- sm: "text-sm h-[40px] px-[0.75rem]",- md: "text-sm px-[1rem] h-[48px]",- lg: "text-md h-[48px] px-[1.25em]",+ xs: "text-xs h-[32px]",+ sm: "text-sm h-[40px]",+ md: "text-sm h-[44px]",+ lg: "text-md h-[48px]",},},}@@ -41,12 +36,11 @@ const buttonVariants = cva(export interface ButtonPropsextends React.ButtonHTMLAttributes<HTMLButtonElement>,- VariantProps<typeof buttonVariants> {+ VariantProps<typeof buttonVariants> {asChild?: boolean;spinner?: boolean;href?: string;icon?: React.ReactNode;- spinnerClass?: string;}const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(@@ -57,7 +51,6 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(size,asChild = false,spinner = false,- spinnerClass,href,icon,...props@@ -82,15 +75,12 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>({"@keyframes spinner_AtaB{to{transform:rotate(360deg)}}"}</style><path- className="transition-colors duration-200 ease-in-out dark:fill-gray-12 light:fill-gray-1"+ className="dark:fill-gray-12 light:fill-gray-1"d="M12 1a11 11 0 1 0 11 11A11 11 0 0 0 12 1Zm0 19a8 8 0 1 1 8-8 8 8 0 0 1-8 8Z"opacity={0.25}/><path- className={clsx(- "transition-colors duration-200 ease-in-out dark:fill-gray-12 light:fill-gray-1",- spinnerClass- )}+ className="dark:fill-gray-12 light:fill-gray-1"d="M10.14 1.16a11 11 0 0 0-9 8.92A1.59 1.59 0 0 0 2.46 12a1.52 1.52 0 0 0 1.65-1.3 8 8 0 0 1 6.66-6.61A1.42 1.42 0 0 0 12 2.69a1.57 1.57 0 0 0-1.86-1.53Z"style={{transformOrigin: "center",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex bd4986d8b..253f32410 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -590,7 +590,7 @@ importers:version: 2.30.1motion:specifier: ^12.18.1next:specifier: 14.2.3version: 14.2.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])@@ -8478,8 +8478,8 @@ packages:react-dom:optional: true- resolution: {integrity: sha512-6o4EDuRPLk4LSZ1kRnnEOurbQ86MklVk+Y1rFBUKiF+d2pCdvMjWVu0ZkyMVCTwl5UyTH2n/zJEJx+jvTYuxow==}+ resolution: {integrity: sha512-qXcIBXVrohQeANVoMyfikjwl1V4qDyVyJ2rQU+PjUinghKBeW9bsqdabJ25XlDyh2xswSej8IY1RDOx7j+n6fw==}peerDependencies:'@emotion/is-prop-valid': '*'react: ^18.0.0 || ^19.0.0@@ -10152,17 +10152,17 @@ packages:resolution: {integrity: sha512-g76KvA001z+atjfxczdRtw/RXOM3OMSdd1f4DL77qCTF/+avrRJiawSG4yDibEQ215sr9kpinSlX2pCTJ9zbhw==}- resolution: {integrity: sha512-dR/4EYT23Snd+eUSLrde63Ws3oXQtJNw/krgautvTfwrN/2cHfCZMdu6CeTxVfRRWREW3Fy1f5vobRDiBb/q+w==}+ resolution: {integrity: sha512-JvmYEBBvB81C2YoJSeK0rlVkqyMnrXMbrO4kESE4GeQiFHyuW1ekwbIzxH/pZyOKHZW33EcsEM0lhB9ka7LU9g==}resolution: {integrity: sha512-49Kt+HKjtbJKLtgO/LKj9Ld+6vw9BjH5d9sc40R/kVyH8GLAXgT42M2NnuPcJNuA3s9ZfZBUcwIgpmZWGEE+hA==}- resolution: {integrity: sha512-az26YDU4WoDP0ueAkUtABLk2BIxe28d8NH1qWT8jPGhPyf44XTdDUh8pDk9OPphaSrR9McgpcJlgwSOIw/sfkA==}+ resolution: {integrity: sha512-BuFTHINYmV07pdWs6lj6aI63vr2N4dg0vR+td0rtrdpWOhBzIkEklZyLcvKBoEtwSqx8Jg06vUB5RS0xDiUybw==}- resolution: {integrity: sha512-w1ns2hWQ4COhOvnZf4rg4mW0Pl36mzcShpgt0fSfI6qJxKUbi3kHho/HSKeJFRoY0TO1m5/7C8lG1+Li0uC9Fw==}+ resolution: {integrity: sha512-KIV+YePEvJc1OflTMp71l90nvU8JGXsana3K+eZKYrRhK/Ijv+LDN5G4VfHqwW94Z+6zH9LBoASwk8n0wxJNFA==}peerDependencies:'@emotion/is-prop-valid': '*'react: ^18.0.0 || ^19.0.0@@ -21308,7 +21308,7 @@ snapshots:eslint: 8.57.1eslint-import-resolver-node: 0.3.9- eslint-plugin-import: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-plugin-import: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])eslint-plugin-jsx-a11y: 6.10.2([email protected])eslint-plugin-react: 7.37.5([email protected])eslint-plugin-react-hooks: 4.6.2([email protected])@@ -21347,7 +21347,7 @@ snapshots:tinyglobby: 0.2.13unrs-resolver: 1.7.2optionalDependencies:- eslint-plugin-import: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-plugin-import: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])transitivePeerDependencies:- supports-color@@ -21366,6 +21366,17 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected]):+ dependencies:+ debug: 3.2.7+ optionalDependencies:+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])+ eslint: 8.57.1+ eslint-import-resolver-node: 0.3.9+ eslint-import-resolver-typescript: 3.10.1([email protected]([email protected]))([email protected])+ transitivePeerDependencies:+ - supports-color+[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]):dependencies:debug: 3.2.7@@ -21388,6 +21399,35 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected]):+ dependencies:+ '@rtsao/scc': 1.1.0+ array-includes: 3.1.8+ array.prototype.findlastindex: 1.2.6+ array.prototype.flat: 1.3.3+ array.prototype.flatmap: 1.3.3+ debug: 3.2.7+ doctrine: 2.1.0+ eslint: 8.57.1+ eslint-import-resolver-node: 0.3.9+ eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])+ hasown: 2.0.2+ is-core-module: 2.16.1+ is-glob: 4.0.3+ minimatch: 3.1.2+ object.fromentries: 2.0.8+ object.groupby: 1.0.3+ object.values: 1.2.1+ semver: 6.3.1+ string.prototype.trimend: 1.0.9+ tsconfig-paths: 3.15.0+ optionalDependencies:+ '@typescript-eslint/parser': 5.62.0([email protected])([email protected])+ transitivePeerDependencies:+ - eslint-import-resolver-typescript+ - eslint-import-resolver-webpack+ - supports-color+[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):dependencies:'@rtsao/scc': 1.1.0@@ -22051,10 +22091,10 @@ snapshots:react: 19.1.0react-dom: 19.1.0([email protected])dependencies:- motion-dom: 12.18.1- motion-utils: 12.18.1+ motion-dom: 12.20.5+ motion-utils: 12.19.0tslib: 2.8.1optionalDependencies:react: 19.1.0@@ -24177,17 +24217,17 @@ snapshots:dependencies:motion-utils: 11.18.1dependencies:- motion-utils: 12.18.1+ motion-utils: 12.19.0- [email protected]: {}+ [email protected]: {}dependencies:tslib: 2.8.1optionalDependencies:react: 19.1.0