{"version":3,"file":"Hero.Dk47J7He.mjs","names":["useState","useRef","useMemo","startTransition"],"sources":["https:/framerusercontent.com/modules/gdW9S8YlL8IJoHQlrweA/gUuJMF8GK94QXS0vmUxk/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\",width:\"100%\",...preheaderFont},children:preheader}),/*#__PURE__*/_jsx(\"h1\",{style:{margin:0,color:textColor,width:\"100%\",...headlineFont},children:headline}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"20px 0 0 0\",color:textColor,width:\"100%\",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\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hero.map"],"mappings":"0QAIG,SAAwB,EAAK,EAAM,CAAC,GAAK,CAAC,WAAS,aAAW,kBAAgB,CAAC,IAAI,uEAAuE,IAAI,iBAAiB,EAAE,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,EAAK,EAAO,CAAC,EAAY,GAAgBA,EAAS,EAAK,EAAO,CAAC,EAAY,GAAgBA,EAAS,EAAK,EAAQ,EAAS,EAAoB,EAAQ,EAAaC,EAAO,IAAI,EAAQ,EAAO,EAAU,EAAa,CAAC,OAAO,qBAAqB,CAAC,EAAO,CAAC,WAAS,EAAU,EAAQ,EAAU,EAAa,EAAQ,GAAG,EAAK,EAAiB,IAApB,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