{"version":3,"file":"Hero.CJf6engL.mjs","names":["useState","useRef","useMemo","startTransition"],"sources":["https:/framerusercontent.com/modules/gdW9S8YlL8IJoHQlrweA/gTJtQftysswD6UN6io0Z/Hero.js"],"sourcesContent":["// Hero component with full width, 95vh height, headline, subheading, background image and black overlay\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView,useScroll,useTransform}from\"framer-motion\";import{startTransition,useMemo,useRef,useState}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function Hero(props){const{headline,subheading,backgroundImage={src:\"https://framerusercontent.com/images/q372WnBx8VNn0dxXhSREci4hLYc.png\",alt:\"Hero background\"},overlayOpacity,overlayColor,parallaxEnabled,parallaxStrength,textColor,headlineFont,subheadingFont,subheadingWidth,showPreheader,preheader,preheaderFont,showCTAs,cta1Label,cta1Link,cta2Label,cta2Link,cta3Label,cta3Link,ctaFont,ctaGap,ctaPaddingY,ctaPaddingX,ctaRadius,ctaBorderWidth}=props;const[cta1Hovered,setCta1Hovered]=useState(false);const[cta2Hovered,setCta2Hovered]=useState(false);const[cta3Hovered,setCta3Hovered]=useState(false);const isStatic=useIsStaticRenderer();const containerRef=useRef(null);const inView=useInView(containerRef,{margin:\"200px 0px 200px 0px\"});const{scrollY}=useScroll();const parallaxY=useTransform(scrollY,v=>-(v*(parallaxStrength/1e3)));const backgroundMotionStyle=useMemo(()=>{if(isStatic||!parallaxEnabled||!inView)return undefined;return{y:parallaxY};},[inView,isStatic,parallaxEnabled,parallaxY]);return /*#__PURE__*/_jsxs(\"div\",{ref:containerRef,style:{position:\"relative\",width:\"100%\",height:\"100%\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"110%\",backgroundImage:`url(${backgroundImage.src})`,backgroundSize:\"cover\",backgroundPosition:\"center\",backgroundRepeat:\"no-repeat\",willChange:parallaxEnabled&&!isStatic?\"transform\":undefined,...backgroundMotionStyle},role:\"img\",\"aria-label\":backgroundImage.alt}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundColor:overlayColor,opacity:overlayOpacity}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",padding:\"40px\",textAlign:\"center\",zIndex:1},children:[showPreheader&&/*#__PURE__*/_jsx(\"div\",{style:{margin:\"0 0 16px 0\",color:textColor,textTransform:\"uppercase\",...preheaderFont},children:preheader}),/*#__PURE__*/_jsx(\"h1\",{style:{margin:0,color:textColor,...headlineFont},children:headline}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"20px 0 0 0\",color:textColor,maxWidth:`${subheadingWidth}%`,...subheadingFont},children:subheading}),showCTAs&&/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:28,display:\"flex\",flexDirection:\"row\",alignItems:\"center\",justifyContent:\"center\",gap:ctaGap,flexWrap:\"wrap\"},children:[/*#__PURE__*/_jsx(\"a\",{href:cta1Link||undefined,style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",textDecoration:\"none\",color:cta1Hovered?\"#000000\":textColor,border:`${ctaBorderWidth}px solid ${textColor}`,background:cta1Hovered?\"#FFFFFF\":\"transparent\",padding:`${ctaPaddingY}px ${ctaPaddingX}px`,borderRadius:ctaRadius,...ctaFont},onMouseEnter:()=>startTransition(()=>setCta1Hovered(true)),onMouseLeave:()=>startTransition(()=>setCta1Hovered(false)),\"aria-label\":cta1Label,children:cta1Label}),/*#__PURE__*/_jsx(\"a\",{href:cta2Link||undefined,style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",textDecoration:\"none\",color:cta2Hovered?\"#000000\":textColor,border:`${ctaBorderWidth}px solid ${textColor}`,background:cta2Hovered?\"#FFFFFF\":\"transparent\",padding:`${ctaPaddingY}px ${ctaPaddingX}px`,borderRadius:ctaRadius,...ctaFont},onMouseEnter:()=>startTransition(()=>setCta2Hovered(true)),onMouseLeave:()=>startTransition(()=>setCta2Hovered(false)),\"aria-label\":cta2Label,children:cta2Label}),/*#__PURE__*/_jsx(\"a\",{href:cta3Link||undefined,style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",textDecoration:\"none\",color:cta3Hovered?\"#000000\":textColor,border:`${ctaBorderWidth}px solid ${textColor}`,background:cta3Hovered?\"#FFFFFF\":\"transparent\",padding:`${ctaPaddingY}px ${ctaPaddingX}px`,borderRadius:ctaRadius,...ctaFont},onMouseEnter:()=>startTransition(()=>setCta3Hovered(true)),onMouseLeave:()=>startTransition(()=>setCta3Hovered(false)),\"aria-label\":cta3Label,children:cta3Label})]})]})]});}addPropertyControls(Hero,{showCTAs:{type:ControlType.Boolean,title:\"Show CTAs\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},showPreheader:{type:ControlType.Boolean,title:\"Show Pre-header\",defaultValue:false,enabledTitle:\"Show\",disabledTitle:\"Hide\"},preheader:{type:ControlType.String,title:\"Pre-header\",defaultValue:\"Welcome\",hidden:({showPreheader})=>!showPreheader},preheaderFont:{type:ControlType.Font,title:\"Pre-header Font\",defaultValue:{fontSize:\"12px\",variant:\"Semibold\",letterSpacing:\"0.1em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\",hidden:({showPreheader})=>!showPreheader},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"Project Delta\"},subheading:{type:ControlType.String,title:\"Subheading\",defaultValue:\"Next Generation Digital Infrastructure located in Stokes County (Walnut Cove), North Carolina\",displayTextArea:true},subheadingWidth:{type:ControlType.Number,title:\"Subheading Width\",defaultValue:80,min:10,max:100,step:1,unit:\"%\"},backgroundImage:{type:ControlType.ResponsiveImage,title:\"Background Image\"},overlayColor:{type:ControlType.Color,title:\"Overlay Color\",defaultValue:\"#000000\"},overlayOpacity:{type:ControlType.Number,title:\"Overlay Opacity\",defaultValue:.4,min:0,max:1,step:.1},parallaxEnabled:{type:ControlType.Boolean,title:\"Parallax\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},parallaxStrength:{type:ControlType.Number,title:\"Parallax Strength\",defaultValue:80,min:0,max:300,step:1,hidden:({parallaxEnabled})=>!parallaxEnabled},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},headlineFont:{type:ControlType.Font,title:\"Headline Font\",defaultValue:{fontSize:\"80px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},subheadingFont:{type:ControlType.Font,title:\"Subheading Font\",defaultValue:{fontSize:\"24px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.4em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},cta1Label:{type:ControlType.String,title:\"CTA 1 Label\",defaultValue:\"Learn More\",hidden:({showCTAs})=>!showCTAs},cta1Link:{type:ControlType.Link,title:\"CTA 1 Link\",defaultValue:\"\",hidden:({showCTAs})=>!showCTAs},cta2Label:{type:ControlType.String,title:\"CTA 2 Label\",defaultValue:\"Contact\",hidden:({showCTAs})=>!showCTAs},cta2Link:{type:ControlType.Link,title:\"CTA 2 Link\",defaultValue:\"\",hidden:({showCTAs})=>!showCTAs},cta3Label:{type:ControlType.String,title:\"CTA 3 Label\",defaultValue:\"FAQ\",hidden:({showCTAs})=>!showCTAs},cta3Link:{type:ControlType.Link,title:\"CTA 3 Link\",defaultValue:\"\",hidden:({showCTAs})=>!showCTAs},ctaFont:{type:ControlType.Font,title:\"CTA Font\",defaultValue:{fontSize:\"14px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\",hidden:({showCTAs})=>!showCTAs},ctaGap:{type:ControlType.Number,title:\"CTA Gap\",defaultValue:12,min:0,max:40,step:1,unit:\"px\",hidden:({showCTAs})=>!showCTAs},ctaPaddingY:{type:ControlType.Number,title:\"CTA Pad Y\",defaultValue:12,min:0,max:40,step:1,unit:\"px\",hidden:({showCTAs})=>!showCTAs},ctaPaddingX:{type:ControlType.Number,title:\"CTA Pad X\",defaultValue:18,min:0,max:60,step:1,unit:\"px\",hidden:({showCTAs})=>!showCTAs},ctaRadius:{type:ControlType.Number,title:\"CTA Radius\",defaultValue:999,min:0,max:48,step:1,hidden:({showCTAs})=>!showCTAs},ctaBorderWidth:{type:ControlType.Number,title:\"CTA Border\",defaultValue:1,min:0,max:6,step:1,unit:\"px\",hidden:({showCTAs})=>!showCTAs}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Hero\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hero.map"],"mappings":"oRAIG,SAAwB,EAAK,EAAM,CAAC,GAAK,CAAC,WAAS,aAAW,kBAAgB,CAAC,IAAI,uEAAuE,IAAI,kBAAkB,CAAC,iBAAe,eAAa,kBAAgB,mBAAiB,YAAU,eAAa,iBAAe,kBAAgB,gBAAc,YAAU,gBAAc,WAAS,YAAU,WAAS,YAAU,WAAS,YAAU,WAAS,UAAQ,SAAO,cAAY,cAAY,YAAU,kBAAgB,EAAW,CAAC,EAAY,GAAgBA,EAAS,GAAM,CAAM,CAAC,EAAY,GAAgBA,EAAS,GAAM,CAAM,CAAC,EAAY,GAAgBA,EAAS,GAAM,CAAO,EAAS,GAAqB,CAAO,EAAaC,EAAO,KAAK,CAAO,EAAO,EAAU,EAAa,CAAC,OAAO,sBAAsB,CAAC,CAAM,CAAC,WAAS,GAAW,CAAO,EAAU,EAAa,EAAQ,GAAG,EAAK,EAAiB,IAApB,GAA0B,CAAO,EAAsBC,MAAY,CAAI,QAA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