{"version":3,"file":"FeaturedGameCard.B7C0VS7z.mjs","names":["useState","useCallback","startTransition"],"sources":["https:/framerusercontent.com/modules/o9pAuEocglym8mX0PbcN/tR3G00LmbpdnDnWYuzRK/FeaturedGameCard.js"],"sourcesContent":["// Featured Game component with 500x500 image, title with gradient glow on hover, glowing button with link, and description section. All configurable via property controls.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useCallback,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const defaultImage={src:\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",alt:\"Gradient 1 - Blue\"};/**\n * Featured Game\n *\n * @framerIntrinsicWidth 500\n * @framerIntrinsicHeight 650\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function FeaturedGameCard(props){const{image=defaultImage,title,description,buttonLabel,buttonLink,backgroundColor,titleFont,titleColor,buttonFont,buttonColor,buttonTextColor,descriptionFont,descriptionColor,titleGlowColor,titleGlowIntensity,titleGlowSpread,buttonGlowColor,buttonGlowIntensity,buttonGlowSpread,style}=props;const[titleHover,setTitleHover]=useState(false);const[buttonHover,setButtonHover]=useState(false);const handleTitleHover=useCallback(v=>startTransition(()=>setTitleHover(v)),[]);const handleButtonHover=useCallback(v=>startTransition(()=>setButtonHover(v)),[]);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,width:\"100%\",maxWidth:500,minHeight:0,background:backgroundColor,borderRadius:16,boxShadow:`0 0 0 0 rgba(0,0,0,0.10), 0 0 ${titleGlowSpread*2}px ${titleGlowColor}, 0 0 ${titleGlowIntensity}px ${titleGlowColor}`,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",padding:24,gap:20,position:\"relative\",overflow:\"hidden\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"img\",{...image,style:{width:\"100%\",maxWidth:500,aspectRatio:\"1/1\",objectFit:\"cover\",borderRadius:12,boxShadow:\"0 2px 16px rgba(0,0,0,0.10)\",background:\"#eee\",display:\"block\"},alt:image.alt||\"Game image\"}),/*#__PURE__*/_jsx(\"span\",{style:{...titleFont,color:titleColor,marginTop:12,marginBottom:0,textAlign:\"center\",width:\"100%\",transition:\"text-shadow 0.25s, color 0.25s\",textShadow:titleHover?`0 0 ${titleGlowSpread}px ${titleGlowColor}, 0 0 ${titleGlowSpread*2}px ${titleGlowColor}, 0 0 ${titleGlowSpread*3}px ${titleGlowColor}, 0 0 ${titleGlowIntensity}px ${titleGlowColor}`:\"none\",background:titleHover?`linear-gradient(90deg, ${titleGlowColor}, ${titleColor}, ${titleGlowColor})`:\"none\",WebkitBackgroundClip:titleHover?\"text\":undefined,WebkitTextFillColor:titleHover?\"transparent\":undefined,cursor:\"pointer\",wordBreak:\"break-word\",fontSize:\"clamp(1.5rem, 5vw, 2.25rem)\",lineHeight:1.1},onMouseEnter:()=>handleTitleHover(true),onMouseLeave:()=>handleTitleHover(false),children:title}),/*#__PURE__*/_jsx(\"p\",{style:{...descriptionFont,color:descriptionColor,margin:0,marginTop:8,marginBottom:20,textAlign:\"center\",width:\"100%\",minHeight:40,fontSize:\"clamp(1rem, 3vw, 1.125rem)\",lineHeight:1.3,wordBreak:\"break-word\"},children:description}),/*#__PURE__*/_jsx(\"a\",{href:buttonLink,target:\"_blank\",rel:\"noopener noreferrer\",style:{textDecoration:\"none\",width:\"100%\",display:\"flex\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(\"button\",{style:{...buttonFont,background:buttonColor,color:buttonTextColor,border:\"none\",borderRadius:8,padding:\"clamp(12px, 3vw, 16px) clamp(24px, 8vw, 40px)\",fontWeight:600,fontSize:\"clamp(1rem, 3vw, 1.125rem)\",boxShadow:buttonHover?`0 0 ${buttonGlowSpread}px ${buttonGlowColor}, 0 0 ${buttonGlowSpread*2}px ${buttonGlowColor}, 0 0 ${buttonGlowIntensity}px ${buttonGlowColor}`:\"0 2px 8px rgba(0,0,0,0.10)\",cursor:\"pointer\",transition:\"box-shadow 0.25s, background 0.25s, color 0.25s\",width:\"100%\",maxWidth:320,position:\"relative\",overflow:\"hidden\"},onMouseEnter:()=>handleButtonHover(true),onMouseLeave:()=>handleButtonHover(false),\"aria-label\":buttonLabel,children:/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",background:buttonHover?\"linear-gradient(90deg, #a259ff, #7f7fff, #43e6ff)\":\"none\",WebkitBackgroundClip:buttonHover?\"text\":undefined,WebkitTextFillColor:buttonHover?\"transparent\":undefined,color:buttonTextColor,transition:\"background 0.25s, color 0.25s, -webkit-text-fill-color 0.25s\"},children:buttonLabel})})})]});}addPropertyControls(FeaturedGameCard,{image:{type:ControlType.ResponsiveImage,title:\"Game Image\"},title:{type:ControlType.String,title:\"Game Title\",defaultValue:\"Featured Game\"},titleFont:{type:ControlType.Font,title:\"Title Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"36px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.1em\"}},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#fff\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"A short description of the game goes here.\"},descriptionFont:{type:ControlType.Font,title:\"Description Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"18px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},descriptionColor:{type:ControlType.Color,title:\"Description Color\",defaultValue:\"#fff\"},buttonLabel:{type:ControlType.String,title:\"Button Label\",defaultValue:\"Play Now\"},buttonLink:{type:ControlType.Link,title:\"Button Link\",defaultValue:\"https://framer.com\"},buttonFont:{type:ControlType.Font,title:\"Button Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"18px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#2196f3\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text Color\",defaultValue:\"#fff\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000\"},titleGlowColor:{type:ControlType.Color,title:\"Title Glow Color\",defaultValue:\"#7F7FFF\"},titleGlowIntensity:{type:ControlType.Number,title:\"Title Glow Intensity\",defaultValue:48,min:8,max:128,step:1,unit:\"px\"},titleGlowSpread:{type:ControlType.Number,title:\"Title Glow Spread\",defaultValue:16,min:2,max:64,step:1,unit:\"px\"},buttonGlowColor:{type:ControlType.Color,title:\"Button Glow Color\",defaultValue:\"#7F7FFF\"},buttonGlowIntensity:{type:ControlType.Number,title:\"Button Glow Intensity\",defaultValue:32,min:8,max:128,step:1,unit:\"px\"},buttonGlowSpread:{type:ControlType.Number,title:\"Button Glow Spread\",defaultValue:8,min:2,max:64,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FeaturedGameCard\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"500\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"650\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FeaturedGameCard.map"],"mappings":"wRASG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,QAAM,EAAa,QAAM,cAAY,cAAY,aAAW,kBAAgB,YAAU,aAAW,aAAW,cAAY,kBAAgB,kBAAgB,mBAAiB,iBAAe,qBAAmB,kBAAgB,kBAAgB,sBAAoB,mBAAiB,SAAO,EAAW,CAAC,EAAW,GAAeA,EAAS,GAAM,CAAM,CAAC,EAAY,GAAgBA,EAAS,GAAM,CAAO,EAAiBC,EAAY,GAAGC,MAAoB,EAAc,EAAE,CAAC,CAAC,EAAE,CAAC,CAAO,EAAkBD,EAAY,GAAGC,MAAoB,EAAe,EAAE,CAAC,CAAC,EAAE,CAAC,CAA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