{"version":3,"file":"GateCard.BwySWPqB.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/jAAssvN9tKC55jBZKZIX/mUkGmvXof7KjSE9TCgRJ/GateCard.js"],"sourcesContent":["// Create a component section with 2 window gates with buttons and text. The background of the gate should be an image with a heading 'traject'. The whole gate should light up when hovering over the stack.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function GateCard(props){const{gateImage={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gate Background\"},gateHeading=\"TRAJECT\",buttonText=\"BUTTON\",descriptionText=\"LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISCING ELIT, SED DO EIUSMOD TEMPOR INCIDIDUNT UT LABORE ET DOLORE MAGNA\",backgroundColor=\"#FFFFFF\",gateHeadingColor=\"#D4AF37\",buttonBackgroundColor=\"#1A1A1A\",buttonTextColor=\"#D4AF37\",buttonHoverBackgroundColor=\"#D4AF37\",buttonHoverTextColor=\"#1A1A1A\",descriptionColor=\"#D4AF37\",gateHeadingFont,buttonFont,descriptionFont,gap=40,link=\"\"}=props;const[hoveredIndex,setHoveredIndex]=useState(null);const GateItem=({index})=>{const isHovered=hoveredIndex===index;return /*#__PURE__*/_jsxs(motion.div,{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:gap/2,flex:1,cursor:\"pointer\"},onMouseEnter:()=>setHoveredIndex(index),onMouseLeave:()=>setHoveredIndex(null),children:[/*#__PURE__*/_jsx(\"a\",{href:link||\"#\",target:link?\"_blank\":undefined,rel:link?\"noopener noreferrer\":undefined,style:{width:\"100%\",textDecoration:\"none\",display:\"block\"},children:/*#__PURE__*/_jsxs(motion.div,{style:{width:\"100%\",height:550,borderRadius:\"200px 200px 7px 7px\",overflow:\"hidden\",position:\"relative\",marginBottom:gap/2},children:[/*#__PURE__*/_jsx(motion.div,{style:{width:\"100%\",height:\"100%\",backgroundImage:`url(${gateImage.src})`,backgroundSize:\"cover\",backgroundPosition:\"center\"},animate:{scale:isHovered?1.1:1,filter:isHovered?\"brightness(1.2)\":\"brightness(1)\"},transition:{duration:.3,ease:\"easeOut\"}}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor:\"rgba(0, 0, 0, 0.3)\"},children:/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,color:gateHeadingColor,...gateHeadingFont},children:gateHeading})})]})}),/*#__PURE__*/_jsx(motion.button,{style:{padding:\"16px 48px\",backgroundColor:isHovered?buttonHoverBackgroundColor:buttonBackgroundColor,color:isHovered?buttonHoverTextColor:buttonTextColor,border:\"none\",borderRadius:7,cursor:\"pointer\",transition:\"background-color 0.3s ease, color 0.3s ease\",...buttonFont},whileTap:{scale:.95},transition:{duration:.2},onClick:()=>{if(link){window.open(link,\"_blank\");}},children:buttonText}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,textAlign:\"center\",color:descriptionColor,maxWidth:350,...descriptionFont},children:descriptionText})]});};return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:backgroundColor,display:\"flex\",alignItems:\"flex-start\",justifyContent:\"center\",gap:gap,padding:40,position:\"relative\"},children:/*#__PURE__*/_jsx(GateItem,{index:0})});}addPropertyControls(GateCard,{gateImage:{type:ControlType.ResponsiveImage,title:\"Gate Image\"},gateHeading:{type:ControlType.String,title:\"Gate Heading\",defaultValue:\"TRAJECT\"},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"BUTTON\"},link:{type:ControlType.Link,title:\"Link\"},descriptionText:{type:ControlType.String,title:\"Description\",defaultValue:\"LOREM IPSUM DOLOR SIT AMET, CONSECTETUR ADIPISCING ELIT, SED DO EIUSMOD TEMPOR INCIDIDUNT UT LABORE ET DOLORE MAGNA\",displayTextArea:true},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},gateHeadingColor:{type:ControlType.Color,title:\"Gate Heading Color\",defaultValue:\"#D4AF37\"},buttonBackgroundColor:{type:ControlType.Color,title:\"Button Background\",defaultValue:\"#1A1A1A\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text Color\",defaultValue:\"#D4AF37\"},buttonHoverBackgroundColor:{type:ControlType.Color,title:\"Button Hover Background\",defaultValue:\"#D4AF37\"},buttonHoverTextColor:{type:ControlType.Color,title:\"Button Hover Text\",defaultValue:\"#1A1A1A\"},descriptionColor:{type:ControlType.Color,title:\"Description Color\",defaultValue:\"#D4AF37\"},gateHeadingFont:{type:ControlType.Font,title:\"Gate Heading Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"48px\",variant:\"Bold\",letterSpacing:\"0.05em\",lineHeight:\"1em\"}},buttonFont:{type:ControlType.Font,title:\"Button Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Semibold\",letterSpacing:\"0.15em\",lineHeight:\"1em\"}},descriptionFont:{type:ControlType.Font,title:\"Description Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"13px\",variant:\"Regular\",letterSpacing:\"0.02em\",lineHeight:\"1.5em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GateCard\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GateCard.map"],"mappings":"gPAIG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,YAAU,CAAC,IAAI,sEAAsE,IAAI,kBAAkB,CAAC,cAAY,UAAU,aAAW,SAA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