{"version":3,"file":"Random_Pages.CdDYS-Rc.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/7G4dMqm0ExUYMHu0FHgT/xcb0TQNMkyCjpJJtDijz/Random_Pages.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{Frame}from\"framer\";const links=[{name:\"Uber Recs\",targetId:\"uber-section\"},{name:\"Where in the ATL?\",targetId:\"atl-section\"},{name:\"The Burger Workshop\",targetId:\"burger-section\"}];export function RandomLinkButton(){const[hovered,setHovered]=React.useState(false);const[link,setLink]=React.useState(null);const handleHover=()=>{setHovered(true);const randomIndex=Math.floor(Math.random()*links.length);setLink(links[randomIndex]);};const handleLeave=()=>{setHovered(false);setLink(null);};const handleClick=()=>{if(link){const targetElement=document.getElementById(link.targetId);if(targetElement){const rect=targetElement.getBoundingClientRect();const scrollTop=window.pageYOffset||document.documentElement.scrollTop;const targetY=rect.top+scrollTop-window.innerHeight/2+rect.height/2;window.scrollTo({top:targetY,behavior:\"smooth\"});}}};const textStyle={fontFamily:\"Ranchers\",fontSize:40,fontWeight:500,textAlign:\"center\",lineHeight:\"40px\"};return /*#__PURE__*/_jsx(Frame,{width:600,height:100,borderRadius:60,background:hovered?\"#c80000\":\"#eeeeee\",color:hovered?\"#ffffff\":\"#ffffff\",onTap:handleClick,onMouseEnter:handleHover,onMouseLeave:handleLeave,whileTap:{scale:.95},style:textStyle,children:hovered?link?link.name:\"Loading...\":\"Hover Me\"});}\nexport const __FramerMetadata__ = {\"exports\":{\"RandomLinkButton\":{\"type\":\"reactComponent\",\"name\":\"RandomLinkButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Random_Pages.map"],"mappings":"2QAAmQ,SAAgB,GAAkB,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAe,GAAM,CAAM,CAAC,EAAK,GAASA,EAAe,KAAK,CAA+nB,OAAoB,EAAK,EAAM,CAAC,MAAM,IAAI,OAAO,IAAI,aAAa,GAAG,WAAW,EAAQ,UAAU,UAAU,MAAc,UAAoB,UAA9jB,CAAC,GAAG,EAAK,CAAC,IAAM,EAAc,SAAS,eAAe,EAAK,SAAS,CAAC,GAAG,EAAc,CAAC,IAAM,EAAK,EAAc,uBAAuB,CAAO,EAAU,EAAO,aAAa,SAAS,gBAAgB,UAAgB,EAAQ,EAAK,IAAI,EAAU,EAAO,YAAY,EAAE,EAAK,OAAO,EAAE,EAAO,SAAS,CAAC,IAAI,EAAQ,SAAS,SAAS,CAAC,IAA6Q,iBAAxwB,CAAC,EAAW,GAAK,CAAC,IAAM,EAAY,KAAK,MAAM,KAAK,QAAQ,CAAC,EAAM,OAAO,CAAC,EAAQ,EAAM,GAAa,EAA2rB,iBAAlqB,CAAC,EAAW,GAAM,CAAC,EAAQ,KAAK,EAA2pB,SAAS,CAAC,MAAM,IAAI,CAAC,MAA/T,CAAC,WAAW,WAAW,SAAS,GAAG,WAAW,IAAI,UAAU,SAAS,WAAW,OAAO,CAAwP,SAAS,EAAQ,EAAK,EAAK,KAAK,aAAa,WAAW,CAAC,wBAAlwC,IAA4B,IAA0B,CAAM,EAAM,CAAC,CAAC,KAAK,YAAY,SAAS,eAAe,CAAC,CAAC,KAAK,oBAAoB,SAAS,cAAc,CAAC,CAAC,KAAK,sBAAsB,SAAS,iBAAiB,CAAC"}