@@ -7,8 +7,11 @@ import {
77 faUsers ,
88} from "@fortawesome/free-solid-svg-icons" ;
99import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" ;
10+ import { useRef } from "react" ;
11+ import { EnterpriseArt , EnterpriseArtRef } from "./EnterpriseArt" ;
1012
1113export const EnterpriseCard = ( ) => {
14+ const enterpriseArtRef = useRef < EnterpriseArtRef > ( null ) ;
1215 // Enterprise features data
1316 const enterpriseFeatures = [
1417 {
@@ -42,47 +45,64 @@ export const EnterpriseCard = () => {
4245 } ;
4346
4447 return (
45- < div 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" >
46- < div className = "flex relative z-10 flex-col justify-between h-full" >
48+ < div
49+ onMouseEnter = { ( ) => {
50+ enterpriseArtRef . current ?. playHoverAnimation ( ) ;
51+ } }
52+ onMouseLeave = { ( ) => {
53+ enterpriseArtRef . current ?. playDefaultAnimation ( ) ;
54+ } }
55+ 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"
56+ >
57+ < div className = "flex relative z-10 flex-col flex-1 justify-between space-y-8 h-full" >
4758 < div >
48- < div className = "md:h-[180px]" >
49- < h3 className = "mb-2 text-xl font-semibold text-center text-gray-12" >
50- Cap for Enterprise
51- </ h3 >
52- < p className = "mb-4 text-sm font-medium text-center text-gray-11" >
53- Deploy Cap across your organization with enterprise-grade
54- features, dedicated support, and custom integrations.
55- </ p >
59+ < div className = "space-y-5 min-h-fit" >
60+ < EnterpriseArt ref = { enterpriseArtRef } />
61+ < div >
62+ < h3 className = "mb-2 text-xl font-semibold text-center text-gray-12" >
63+ Cap for Enterprise
64+ </ h3 >
65+ < p className = "mb-4 text-sm font-medium text-center text-gray-11" >
66+ Deploy Cap across your organization with enterprise-grade
67+ features, dedicated support, and custom integrations.
68+ </ p >
69+ </ div >
5670 </ div >
71+ </ div >
5772
58- < div className = "mb-6" >
59- < ul className = "space-y-3" >
60- { enterpriseFeatures . slice ( 0 , 4 ) . map ( ( feature ) => (
61- < li
62- key = { feature . label }
63- className = "flex items-center text-sm text-gray-12"
64- >
65- < FontAwesomeIcon
66- icon = { feature . icon }
67- className = "flex-shrink-0 mr-3 text-gray-10"
68- style = { { fontSize : "14px" , minWidth : "14px" } }
69- />
70- < span className = "text-gray-11" > { feature . label } </ span >
71- </ li >
72- ) ) }
73- </ ul >
74- </ div >
73+ < div className = "flex flex-wrap items-center p-3 w-full rounded-full border bg-gray-3 border-gray-4" >
74+ < p className = "w-full text-lg font-medium text-center text-black" >
75+ Contact us for a quote
76+ </ p >
7577 </ div >
7678
77- < Button
78- variant = "gray"
79- size = "lg"
80- onClick = { handleBookCall }
81- className = "w-full font-medium"
82- aria-label = "Book a Call for Enterprise"
83- >
84- Book a Call
85- </ Button >
79+ < div className = "space-y-6" >
80+ < ul className = "space-y-3" >
81+ { enterpriseFeatures . slice ( 0 , 4 ) . map ( ( feature ) => (
82+ < li
83+ key = { feature . label }
84+ className = "flex items-center text-sm text-gray-12"
85+ >
86+ < FontAwesomeIcon
87+ icon = { feature . icon }
88+ className = "flex-shrink-0 mr-3 text-gray-10"
89+ style = { { fontSize : "14px" , minWidth : "14px" } }
90+ />
91+ < span className = "text-gray-11" > { feature . label } </ span >
92+ </ li >
93+ ) ) }
94+ </ ul >
95+
96+ < Button
97+ variant = "gray"
98+ size = "lg"
99+ onClick = { handleBookCall }
100+ className = "w-full font-medium"
101+ aria-label = "Book a Call for Enterprise"
102+ >
103+ Book a Call
104+ </ Button >
105+ </ div >
86106 </ div >
87107 </ div >
88108 ) ;
0 commit comments