Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
improvement: enterprise card (#1046)
Ameer Al Ashhabb917fe10ea39
diff --git a/apps/web/components/pages/HomePage/Pricing/CommercialArt.tsx b/apps/web/components/pages/HomePage/Pricing/CommercialArt.tsxindex 5a1f427a1..2e762a35a 100644--- a/apps/web/components/pages/HomePage/Pricing/CommercialArt.tsx+++ b/apps/web/components/pages/HomePage/Pricing/CommercialArt.tsx@@ -41,7 +41,7 @@ export const CommercialArt = memo(return (<CommercialRiveclassName={clsx(- "w-full max-w-[100px] mx-auto h-[80px]",+ "w-full max-w-[100px] mx-auto h-[90px]",props.className,)}/>diff --git a/apps/web/components/pages/HomePage/Pricing/CommercialCard.tsx b/apps/web/components/pages/HomePage/Pricing/CommercialCard.tsxindex f0e5b4ac6..56919057c 100644--- a/apps/web/components/pages/HomePage/Pricing/CommercialCard.tsx+++ b/apps/web/components/pages/HomePage/Pricing/CommercialCard.tsx@@ -2,6 +2,7 @@ import { Button, Switch } from "@cap/ui";import {faBriefcase,faDownload,+ faEdit,faMinus,faPlus,faVideo,@@ -115,30 +116,30 @@ export const CommercialCard = () => {</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">+ <div className="flex gap-2 justify-center items-center">+ <p className="text-sm text-gray-12">{homepageCopy.pricing.commercial.labels.licenses}</p><div className="flex items-center"><ButtononClick={decrementLicenses}- className="px-1.5 py-1.5 bg-gray-12 hover:bg-gray-11 min-w-fit h-fit"+ className="p-1 bg-gray-12 hover:bg-gray-11 min-w-fit h-fit"aria-label="Decrease license count"><FontAwesomeIconicon={faMinus}- className="text-gray-1 size-3"+ className="text-gray-1 size-2"/></Button>- <span className="w-8 font-medium tabular-nums text-center text-gray-12">+ <span className="w-5 font-medium tabular-nums text-center text-gray-12"><NumberFlow value={licenses} /></span><ButtononClick={incrementLicenses}- className="px-1.5 py-1.5 bg-gray-12 hover:bg-gray-11 min-w-fit h-fit"+ className="p-1 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" />+ <FontAwesomeIcon icon={faPlus} className="text-gray-1 size-2" /></Button></div></div>@@ -147,7 +148,7 @@ export const CommercialCard = () => {<div className="flex gap-2 items-center"><spanclassName={clsx(- "text-md",+ "text-sm",isYearly ? "font-medium text-gray-12" : "text-gray-10",)}>@@ -161,7 +162,7 @@ export const CommercialCard = () => {/><spanclassName={clsx(- "text-md",+ "text-sm",!isYearly ? "font-medium text-gray-12" : "text-gray-10",)}>@@ -172,8 +173,16 @@ export const CommercialCard = () => {</div></div>- <div className="mb-6">+ <div className="space-y-6"><ul className="space-y-3">+ <li className="flex items-center text-sm text-gray-12">+ <FontAwesomeIcon+ icon={faEdit}+ className="flex-shrink-0 mr-3 text-gray-12"+ style={{ fontSize: "14px", minWidth: "14px" }}+ />+ <span>Studio Mode with full editor</span>+ </li><li className="flex items-center text-sm text-gray-12"><FontAwesomeIconicon={faBriefcase}@@ -197,7 +206,9 @@ export const CommercialCard = () => {className="flex-shrink-0 mr-3 text-gray-12"style={{ fontSize: "14px", minWidth: "14px" }}/>- <span>Unlimited local recordings</span>+ <span>+ Unlimited local recordings, shareable links up to 5 minutes+ </span></li><li className="flex items-center text-sm text-gray-12"><FontAwesomeIcon@@ -208,18 +219,20 @@ export const CommercialCard = () => {<span>Export to MP4 or GIF</span></li></ul>- </div>- <Button- disabled={commercialLoading}- onClick={openCommercialCheckout}- variant="dark"- size="lg"- className="w-full font-medium"- aria-label="Purchase Commercial License"- >- {commercialLoading ? "Loading..." : homepageCopy.pricing.commercial.cta}- </Button>+ <Button+ disabled={commercialLoading}+ onClick={openCommercialCheckout}+ variant="dark"+ size="lg"+ className="w-full font-medium"+ aria-label="Purchase Commercial License"+ >+ {commercialLoading+ ? "Loading..."+ : homepageCopy.pricing.commercial.cta}+ </Button>+ </div></div>);};diff --git a/apps/web/components/pages/HomePage/Pricing/EnterpriseArt.tsx b/apps/web/components/pages/HomePage/Pricing/EnterpriseArt.tsxnew file mode 100644index 000000000..0ae729f9a--- /dev/null+++ b/apps/web/components/pages/HomePage/Pricing/EnterpriseArt.tsx@@ -0,0 +1,45 @@+import { Fit, Layout, useRive } from "@rive-app/react-canvas";+import clsx from "clsx";+import { forwardRef, memo, useImperativeHandle } from "react";++export interface EnterpriseArtRef {+ playHoverAnimation: () => void;+ playDefaultAnimation: () => void;+}++interface EnterpriseArtProps {+ className?: string;+}++export const EnterpriseArt = memo(+ forwardRef<EnterpriseArtRef, EnterpriseArtProps>(({ className }, ref) => {+ const { rive, RiveComponent: EnterpriseRive } = useRive({+ src: "/rive/pricing.riv",+ artboard: "enterprise",+ animations: "idle",+ autoplay: false,+ layout: new Layout({+ fit: Fit.Contain,+ }),+ });++ useImperativeHandle(ref, () => ({+ playHoverAnimation: () => {+ if (rive) {+ rive.play("out");+ }+ },+ playDefaultAnimation: () => {+ if (rive) {+ rive.play("idle");+ }+ },+ }));++ return (+ <EnterpriseRive+ className={clsx(className, "mx-auto w-full max-w-[200px] h-[120px]")}+ />+ );+ }),+);diff --git a/apps/web/components/pages/HomePage/Pricing/EnterpriseCard.tsx b/apps/web/components/pages/HomePage/Pricing/EnterpriseCard.tsxnew file mode 100644index 000000000..0d0162660--- /dev/null+++ b/apps/web/components/pages/HomePage/Pricing/EnterpriseCard.tsx@@ -0,0 +1,109 @@+import { Button } from "@cap/ui";+import {+ faDownload,+ faHandshake,+ faServer,+ faShield,+ faUsers,+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { useRef } from "react";+import { EnterpriseArt, type EnterpriseArtRef } from "./EnterpriseArt";++export const EnterpriseCard = () => {+ const enterpriseArtRef = useRef<EnterpriseArtRef>(null);+ // Enterprise features data+ const enterpriseFeatures = [+ {+ icon: faShield,+ label: "SLAs & Priority Support",+ },+ {+ icon: faDownload,+ label: "Loom Video Importer",+ },+ {+ icon: faHandshake,+ label: "Bulk Discounts",+ },+ {+ icon: faServer,+ label: "Managed self-hosting",+ },+ {+ icon: faUsers,+ label: "SAML SSO Login",+ },+ {+ icon: faShield,+ label: "Advanced Security Controls",+ },+ ];++ const handleBookCall = () => {+ window.open("https://cal.com/cap.so/15min", "_blank");+ };++ return (+ <div+ onMouseEnter={() => {+ enterpriseArtRef.current?.playHoverAnimation();+ }}+ onMouseLeave={() => {+ enterpriseArtRef.current?.playDefaultAnimation();+ }}+ className="flex overflow-hidden relative flex-col flex-1 justify-between p-8 text-black rounded-2xl border shadow-lg bg-gray-1 border-gray-5"+ >+ <div className="flex relative z-10 flex-col flex-1 justify-between space-y-8 h-full">+ <div>+ <div className="space-y-5 min-h-fit">+ <EnterpriseArt ref={enterpriseArtRef} />+ <div>+ <h3 className="mb-2 text-xl font-semibold text-center text-gray-12">+ Cap for Enterprise+ </h3>+ <p className="mb-4 text-sm font-medium text-center text-gray-11">+ Deploy Cap across your organization with enterprise-grade+ features, dedicated support, and custom integrations.+ </p>+ </div>+ </div>+ </div>++ <div className="flex flex-wrap items-center p-3 w-full rounded-full border bg-gray-3 border-gray-4">+ <p className="w-full text-lg font-medium text-center text-black">+ Contact us for a quote+ </p>+ </div>++ <div className="space-y-6">+ <ul className="space-y-3">+ {enterpriseFeatures.map((feature) => (+ <li+ key={feature.label}+ className="flex items-center text-sm text-gray-12"+ >+ <FontAwesomeIcon+ icon={feature.icon}+ className="flex-shrink-0 mr-3 text-gray-10"+ style={{ fontSize: "14px", minWidth: "14px" }}+ />+ <span className="text-gray-11">{feature.label}</span>+ </li>+ ))}+ </ul>++ <Button+ variant="gray"+ size="lg"+ onClick={handleBookCall}+ className="w-full font-medium"+ aria-label="Book a Call for Enterprise"+ >+ Book a Call+ </Button>+ </div>+ </div>+ </div>+ );+};diff --git a/apps/web/components/pages/HomePage/Pricing/ProCard.tsx b/apps/web/components/pages/HomePage/Pricing/ProCard.tsxindex 41a1a869f..a014eaab3 100644--- a/apps/web/components/pages/HomePage/Pricing/ProCard.tsx+++ b/apps/web/components/pages/HomePage/Pricing/ProCard.tsx@@ -2,6 +2,7 @@ import { Button, Switch } from "@cap/ui";import { getProPlanId } from "@cap/utils";import {faCloud,+ faCreditCard,faLink,faMagic,faMinus,@@ -106,7 +107,7 @@ export const ProCard = () => {onMouseLeave={() => {proArtRef.current?.playDefaultAnimation();}}- className="flex relative flex-col flex-1 justify-between p-8 text-white rounded-2xl shadow-2xl bg-gray-12"+ className="flex relative flex-col flex-1 justify-between p-8 text-white rounded-2xl shadow-lg bg-gray-12"><div><div className="absolute top-0 left-1/2 transform -translate-x-1/2 -translate-y-1/2">@@ -119,7 +120,7 @@ export const ProCard = () => {<h3 className="mb-2 text-xl font-semibold text-center">{homepageCopy.pricing.pro.title}</h3>- <p className="mb-4 text-sm font-medium text-center text-gray-9">+ <p className="mb-4 text-sm font-medium text-center text-gray-6">{homepageCopy.pricing.pro.description}</p></div>@@ -184,42 +185,42 @@ 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">+ <div className="flex gap-2 justify-center items-center">+ <p className="text-sm text-gray-1">{homepageCopy.pricing.pro.labels.users}</p><div className="flex items-center"><ButtononClick={decrementUsers}- className="px-1.5 py-1.5 bg-gray-1 hover:bg-gray-3 min-w-fit h-fit"+ className="p-1 bg-gray-1 hover:bg-gray-3 min-w-fit h-fit"aria-label="Decrease user count"><FontAwesomeIconicon={faMinus}- className="text-gray-12 size-3"+ className="text-gray-12 size-2"/></Button>- <span className="w-8 font-medium tabular-nums text-center text-white">+ <span className="w-5 font-medium tabular-nums text-center text-white"><NumberFlow value={users} /></span><ButtononClick={incrementUsers}- className="px-1.5 py-1.5 bg-gray-1 hover:bg-gray-3 min-w-fit h-fit"+ className="p-1 bg-gray-1 hover:bg-gray-3 min-w-fit h-fit"aria-label="Increase user count"><FontAwesomeIconicon={faPlus}- className="text-gray-12 size-3"+ className="text-gray-12 size-2"/></Button></div></div><div className="flex justify-center items-center">- <div className="flex gap-2 items-center">+ <div className="flex gap-0 items-center"><spanclassName={clsx(- "text-md",+ "text-sm",!isAnnually ? "text-white" : "text-gray-8",)}>@@ -229,11 +230,12 @@ export const ProCard = () => {checked={isAnnually}onCheckedChange={setIsAnnually}aria-label="Billing Cycle For Pro"+ className="scale-75"id="billing-cycle-cap-pro"/><spanclassName={clsx(- "text-md",+ "text-sm",isAnnually ? "text-white" : "text-gray-8",)}>@@ -246,6 +248,14 @@ export const ProCard = () => {<div className="mb-6"><ul className="space-y-3">+ <li className="flex items-center text-sm text-gray-1">+ <FontAwesomeIcon+ icon={faCreditCard}+ className="flex-shrink-0 mr-3 text-gray-4"+ style={{ fontSize: "14px", minWidth: "14px" }}+ />+ <span className="text-gray-4">Everything from Desktop License</span>+ </li><li className="flex items-center text-sm text-gray-1"><FontAwesomeIconicon={faCloud}@@ -253,7 +263,7 @@ export const ProCard = () => {style={{ fontSize: "14px", minWidth: "14px" }}/><span className="text-gray-4">- Unlimited cloud storage & shareable links+ Unlimited cloud storage & unlimited shareable links</span></li><li className="flex items-center text-sm text-gray-1">@@ -263,7 +273,7 @@ export const ProCard = () => {style={{ fontSize: "14px", minWidth: "14px" }}/><span className="text-gray-4">- Automatic AI title, transcription, summary, and chapter generation+ Automatic AI title, transcription, summary, and chapters</span></li><li className="flex items-center text-sm">diff --git a/apps/web/components/pages/PricingPage.tsx b/apps/web/components/pages/PricingPage.tsxindex 88b2347c7..f15d2090f 100644--- a/apps/web/components/pages/PricingPage.tsx+++ b/apps/web/components/pages/PricingPage.tsx@@ -1,20 +1,13 @@"use client";-import { Button } from "@cap/ui";-import {- faDownload,- faHandshake,- faHeart,- faServer,- faShield,- faUsers,-} from "@fortawesome/free-solid-svg-icons";+import { faHeart } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { motion } from "framer-motion";import { Testimonials } from "../ui/Testimonials";import ComparePlans from "./_components/ComparePlans";import Faq from "./HomePage/Faq";import { CommercialCard, ProCard } from "./HomePage/Pricing";+import { EnterpriseCard } from "./HomePage/Pricing/EnterpriseCard";// Animation variantsconst fadeIn = {@@ -73,7 +66,11 @@ export const PricingPage = () => {<motion.div initial="hidden" animate="visible" variants={staggerContainer}><div className="py-32 space-y-[100px] md:py-40 wrapper"><div>- <motion.div className="mb-8 text-center" variants={fadeIn} custom={0}>+ <motion.div+ className="mb-16 text-center"+ variants={fadeIn}+ custom={0}+ ><motion.h1className="text-4xl md:text-5xl"variants={fadeIn}@@ -107,13 +104,14 @@ export const PricingPage = () => {</motion.div><motion.div- className="w-full max-w-[1100px] mx-auto"+ className="w-full max-w-[1400px] mx-auto"variants={fadeInFromBottom}custom={0}><div className="flex flex-col gap-8 justify-center items-stretch lg:flex-row"><CommercialCard /><ProCard />+ <EnterpriseCard /></div></motion.div></div>@@ -123,94 +121,6 @@ export const PricingPage = () => {<ComparePlans /></div>- {/* Enterprise Card */}- <motion.div- className="mx-auto w-full wrapper"- variants={fadeInFromBottom}- custom={1}- >- <div className="relative p-8 text-white rounded-2xl shadow-2xl md:p-12 bg-gray-12">- <div className="w-full">- <div className="md:flex md:justify-between">- <div>- <h2 className="mb-4 text-3xl font-semibold md:text-4xl">- Cap for Enterprise- </h2>- <p className="mb-8 max-w-xl text-lg text-gray-4">- Deploy Cap across your organization with enterprise-grade- features, dedicated support, and custom integrations.- </p>- </div>- <div>- <Button- variant="gray"- size="lg"- className="px-8 font-medium"- onClick={() =>- window.open("https://cal.com/cap.so/15min", "_blank")- }- >- Book a Call- </Button>- </div>- </div>-- <div className="grid grid-cols-1 gap-6 mb-10 max-w-3xl md:grid-cols-2 lg:grid-cols-3">- <div className="flex gap-3 items-center">- <FontAwesomeIcon- icon={faShield}- className="flex-shrink-0 text-blue-400"- style={{ fontSize: "20px" }}- />- <span className="text-gray-3">SLAs & Priority Support</span>- </div>- <div className="flex gap-3 items-center">- <FontAwesomeIcon- icon={faDownload}- className="flex-shrink-0 text-blue-400"- style={{ fontSize: "20px" }}- />- <span className="text-gray-3">Loom Video Importer</span>- </div>- <div className="flex gap-3 items-center">- <FontAwesomeIcon- icon={faHandshake}- className="flex-shrink-0 text-blue-400"- style={{ fontSize: "20px" }}- />- <span className="text-gray-3">Bulk Discounts</span>- </div>- <div className="flex gap-3 items-center">- <FontAwesomeIcon- icon={faServer}- className="flex-shrink-0 text-blue-400"- style={{ fontSize: "20px" }}- />- <span className="text-gray-3">Self-hosting Support</span>- </div>- <div className="flex gap-3 items-center">- <FontAwesomeIcon- icon={faUsers}- className="flex-shrink-0 text-blue-400"- style={{ fontSize: "20px" }}- />- <span className="text-gray-3">SAML SSO Login</span>- </div>- <div className="flex gap-3 items-center">- <FontAwesomeIcon- icon={faShield}- className="flex-shrink-0 text-blue-400"- style={{ fontSize: "20px" }}- />- <span className="text-gray-3">- Advanced Security Controls- </span>- </div>- </div>- </div>- </div>- </motion.div>-<div><Faq /></div>diff --git a/apps/web/data/homepage-copy.ts b/apps/web/data/homepage-copy.tsindex b896d8e4e..05b314b63 100644--- a/apps/web/data/homepage-copy.ts+++ b/apps/web/data/homepage-copy.ts@@ -224,7 +224,7 @@ export const homepageCopy: HomePageCopy = {badge: "Best value",title: "Cap Pro",description:- "Everything in Desktop plus cloud features for seamless sharing and collaboration.",+ "Everything in Desktop plus unlimited cloud features for seamless sharing and collaboration.",features: ["Everything in Desktop License","Unlimited cloud storage & bandwidth",diff --git a/apps/web/public/rive/pricing.riv b/apps/web/public/rive/pricing.rivindex 2fce1a0cb..4f62bf356 100644Binary files a/apps/web/public/rive/pricing.riv and b/apps/web/public/rive/pricing.riv differ