Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(web): redesign EnterpriseCard pricing layout
Richie McIlroy7f812b1bb372
diff --git a/apps/web/components/pages/HomePage/Pricing/EnterpriseCard.tsx b/apps/web/components/pages/HomePage/Pricing/EnterpriseCard.tsxindex 09fa01f17..148882606 100644--- a/apps/web/components/pages/HomePage/Pricing/EnterpriseCard.tsx+++ b/apps/web/components/pages/HomePage/Pricing/EnterpriseCard.tsx@@ -1,109 +1,75 @@+"use client";+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";+import { PlanFeature } from "./PlanFeature";++const enterpriseFeatures = [+ "SLAs & priority support",+ "SAML SSO & SCIM provisioning",+ "Managed self-hosting",+ "Volume discounts",+ "Advanced security controls",+ "Dedicated onboarding",+];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 artRef = useRef<EnterpriseArtRef>(null);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"+ <article+ onMouseEnter={() => artRef.current?.playHoverAnimation()}+ onMouseLeave={() => artRef.current?.playDefaultAnimation()}+ className="flex flex-col p-8 rounded-2xl border 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-base 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="mb-4 size-14 -ml-3">+ <EnterpriseArt ref={artRef} />+ </div>+ <h3 className="text-lg font-semibold text-gray-12">Enterprise</h3>+ <p className="mt-1.5 text-sm leading-relaxed text-gray-10 min-h-[40px]">+ For organizations that need security, control, and dedicated support at+ scale.+ </p>- <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 className="flex gap-1.5 items-baseline mt-6">+ <span className="text-4xl font-semibold tracking-tight text-gray-12">+ Custom+ </span>+ </div>+ <p className="mt-1 text-sm text-gray-10">tailored to your team</p>++ <div className="mt-6 min-h-[120px]">+ <div className="p-4 text-sm leading-relaxed rounded-lg border bg-gray-2 border-gray-4 text-gray-10">+ Custom annual billing with volume discounts, onboarding, and a+ dedicated success manager.</div>+ </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="outline"+ size="lg"+ onClick={handleBookCall}+ className="mt-6 w-full font-medium"+ aria-label="Talk to sales about Enterprise"+ >+ Talk to sales+ </Button>- <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 className="pt-8 mt-8 border-t border-gray-4">+ <p className="mb-4 text-sm font-medium text-gray-12">+ Everything in Cap Pro, plus:+ </p>+ <ul className="space-y-3">+ {enterpriseFeatures.map((feature) => (+ <PlanFeature key={feature}>{feature}</PlanFeature>+ ))}+ </ul></div>- </div>+ </article>);};