@igamingcareer/igaming-components 1.0.35 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7745,7 +7745,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
7745
7745
|
focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none
|
|
7746
7746
|
disabled:opacity-50 border shadow-sm hover:text-accent-foreground h-9
|
|
7747
7747
|
bg-transparent border-white hover:bg-white/10 text-white font-medium
|
|
7748
|
-
px-6 py-2 rounded flex items-center gap-2`,children:[i.jsx(uo,{size:18}),c]})]}),i.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mt-12 animate-fade-in",style:{animationDelay:"0.2s"},children:[i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"10,000+"}),i.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Active Candidates"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"500+"}),i.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Partner Companies"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"25+"}),i.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Countries"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl md:text-3xl font-bold text-accent",children:"95%"}),i.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Success Rate"})]})]})]})})})})}function HS({title:n,values:e}){return i.jsx("section",{className:"py-16 bg-white",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:n}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((t,a)=>{const o=t.icon;return i.jsxs("div",{className:"flex flex-col items-center text-center",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center mb-4",children:i.jsx(o,{className:"w-8 h-8 text-yellow-500"})}),i.jsx("h3",{className:"text-xl font-bold mb-2",children:t.title}),i.jsx("p",{className:"text-gray-600",children:t.description})]},a)})})]})})}function DS({title:n,testimonial:e,stats:t,partnerLogos:a}){const[o,c]=b.useState(0),s=[{id:1,name:"Sarah Mitchell",role:"Product Manager",company:"BetTech Gaming",image:"/placeholder.svg",rating:5,content:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",location:"Malta"},{id:2,name:"Marcus Chen",role:"Software Engineer",company:"Casino Solutions",image:"/placeholder.svg",rating:5,content:"The salary insights feature helped me negotiate a 25% increase. Best iGaming job platform I've used.",location:"London"},{id:3,name:"Elena Rodriguez",role:"UX Designer",company:"SportsBet Pro",image:"/placeholder.svg",rating:5,content:"Found multiple interview opportunities within days. The quality of companies on this platform is outstanding.",location:"Gibraltar"},{id:4,name:"James Wilson",role:"Data Analyst",company:"Gaming Analytics",image:"/placeholder.svg",rating:5,content:"Professional, efficient, and results-driven. Helped me transition from fintech to iGaming seamlessly.",location:"Remote"}];b.useEffect(()=>{const h=setInterval(()=>{c(y=>(y+1)%s.length)},5e3);return()=>clearInterval(h)},[s.length]);const l=()=>{c(h=>(h+1)%s.length)},d=()=>{c(h=>(h-1+s.length)%s.length)};return i.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236]",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[i.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-4",children:n}),i.jsx("p",{className:"text-xl text-primary-foreground/80 max-w-2xl mx-auto",children:"Join thousands of professionals who've found their dream careers through our platform"})]}),i.jsxs("div",{className:"max-w-4xl mx-auto relative animate-scale-in",children:[i.jsxs("div",{className:"bg-card/10 backdrop-blur-sm border border-primary-foreground/20 p-8 md:p-12 rounded-2xl shadow-accent",children:[i.jsx(vi,{className:"h-12 w-12 text-yellow-500 mb-6"}),i.jsxs("blockquote",{className:"text-xl md:text-2xl text-primary-foreground mb-8 leading-relaxed font-medium",children:['"',s[o].content,'"']}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"w-16 h-16 bg-accent/20 rounded-full flex items-center justify-center",children:i.jsx("span",{className:"text-yellow-500 font-bold text-xl",children:s[o].name.charAt(0)})}),i.jsxs("div",{children:[i.jsx("div",{className:"text-primary-foreground font-bold text-lg",children:s[o].name}),i.jsxs("div",{className:"text-primary-foreground/70",children:[s[o].role," at ",s[o].company]}),i.jsx("div",{className:"text-primary-foreground/60 text-sm",children:s[o].location})]})]}),i.jsx("div",{className:"flex items-center gap-1",children:[...Array(s[o].rating)].map((h,y)=>i.jsx(Mt,{className:"h-5 w-5 text-yellow-500 fill-current"},y))})]})]}),i.jsxs("div",{className:"flex items-center justify-between mt-8",children:[i.jsx($e,{variant:"outline",size:"icon",onClick:d,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:i.jsx(Wn,{className:"h-6 w-6"})}),i.jsx("div",{className:"flex gap-2",children:s.map((h,y)=>i.jsx("button",{onClick:()=>c(y),className:`w-3 h-3 rounded-full transition-all duration-300 ${y===o?"bg-accent scale-125":"bg-primary-foreground/30 hover:bg-primary-foreground/50"}`},y))}),i.jsx($e,{variant:"outline",size:"icon",onClick:l,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:i.jsx(ra,{className:"h-6 w-6"})})]})]}),i.jsxs("div",{className:"mt-16 grid grid-cols-1 md:grid-cols-3 gap-8 animate-fade-in",style:{animationDelay:"0.2s"},children:[i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"95%"}),i.jsx("div",{className:"text-primary-foreground/80",children:"Success Rate"}),i.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"Candidates placed successfully"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"48h"}),i.jsx("div",{className:"text-primary-foreground/80",children:"Average Response"}),i.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"From application to interview"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"€15k"}),i.jsx("div",{className:"text-primary-foreground/80",children:"Avg. Salary Increase"}),i.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"When switching through our platform"})]})]})]})})}function FS({title:n,description:e,inputPlaceholder:t,api_url:a="http://localhost:5147",buttonText:o,isSubscribed:c=!1,email:s=null}){const[l,d]=b.useState(s??""),[h,y]=b.useState(!1),[u,p]=b.useState(!1);b.useEffect(()=>{c&&(p(!0),s&&d(s))},[c,s]);const k=async()=>{if(!l||!l.includes("@")){alert("Please enter a valid email");return}y(!0);try{const g=await fetch(`${a}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,source:"newsletter",utmCampaign:"general",utmMedium:"ui",utmSource:"newsletter_component"})});if(g.ok){const x=await g.json();localStorage.setItem("leadId",x.id),localStorage.setItem("email",l),p(!0)}else{const x=await g.text();alert("Submission failed: "+x)}}catch{alert("Network error while submitting")}finally{y(!1)}},f=u||c,m=s??l;return i.jsx("section",{className:"py-12 bg-[#0f1219] text-white",children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[i.jsx("h2",{className:"text-2xl font-bold mb-4",children:n}),i.jsx("p",{className:"text-gray-300 mb-6",children:e}),f?i.jsxs("p",{className:"text-green-400 font-semibold",children:["✅ Thanks! You’re subscribed",m?` as ${m}`:"","."]}):i.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 max-w-lg mx-auto",children:[i.jsx(_i,{type:"email",placeholder:t,value:l,onChange:g=>d(g.target.value),className:"px-4 py-2 rounded bg-gray-800 border border-gray-700 text-white flex-grow"}),i.jsx($e,{onClick:k,disabled:h,className:"px-6 py-2 bg-yellow-500 text-black font-medium rounded hover:bg-yellow-400 transition-colors",children:h?"Subscribing...":o})]})]})})})}function VS({title:n,locations:e,trendingKeywords:t,searchButtonText:a,apiUrl:o,className:c="",showTrending:s=!0,showLocationFilter:l=!0,mockMode:d=!1,searchPageUrl:h="#"}){const[y,u]=b.useState(""),[p,k]=b.useState(""),[f,m]=b.useState([]),[g,x]=b.useState(!1),w="Browse 3,500+ iGaming Jobs",L=[{id:"malta",name:"Malta"},{id:"remote",name:"Remote"},{id:"uk",name:"United Kingdom"},{id:"gibraltar",name:"Gibraltar"}],S=[{label:"CRM Manager",href:"/jobs?q=crm-manager"},{label:"Game Developer",href:"/jobs?q=game-developer"},{label:"Compliance Specialist",href:"/jobs?q=compliance-specialist"}];b.useEffect(()=>{const j=new URLSearchParams(window.location.search),R=j.get("q")||"",U=j.get("location")||"";u(R),k(U)},[]),b.useEffect(()=>{if(y.length<3){m([]);return}const j=setTimeout(()=>{C(y)},300);return()=>clearTimeout(j)},[y]);const C=async j=>{if(!o||d){m([`${j} Developer`,`${j} Manager`,`${j} Specialist`,`${j} Coordinator`,`${j} Agent`]);return}try{x(!0);const R=await fetch(`${o}/suggestions?q=${encodeURIComponent(j)}`);if(!R.ok)throw new Error("Failed to fetch suggestions");const U=await R.json();m(U.suggestions||[])}catch(R){console.error("Error fetching suggestions:",R),m([])}finally{x(!1)}},q=j=>u(j),I=j=>{j.key==="Enter"&&A()},A=()=>{if(d){console.log(`Mock Search - Term: ${y}, Location: ${p}`);return}const j=new URLSearchParams;y&&j.set("q",y),p&&j.set("location",p),window.location.href=`/jobs?${j.toString()}`};return i.jsxs("section",{className:`py-12 bg-gray-100 ${c}`,children:[i.jsxs("div",{className:"text-center mb-12 animate-fade-in",children:[i.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:n||w}),i.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Find your next opportunity at the world's leading gaming companies"})]}),i.jsx("div",{className:"container mx-auto px-4",children:i.jsxs("div",{className:"bg-card p-6 rounded-2xl shadow-card mb-12 animate-scale-in",children:[i.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[i.jsxs("div",{className:"flex-grow relative",children:[i.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:i.jsx(mt,{className:"h-5 w-5 text-gray-400"})}),i.jsx(_i,{type:"text",placeholder:"Search by role, company, or keyword",className:"w-full pl-10 border-gray-300",value:y,onChange:j=>q(j.target.value),onKeyDown:I,list:"job-suggestions"}),i.jsx("datalist",{id:"job-suggestions",children:f.map((j,R)=>i.jsx("option",{value:j},R))}),y&&i.jsx("button",{onClick:()=>u(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:i.jsx(St,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})}),g&&i.jsx("div",{className:"absolute inset-y-0 right-0 pr-10 flex items-center",children:i.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-gray-400"})})]}),l&&i.jsx("div",{className:"w-full md:w-1/3",children:i.jsxs("select",{className:"w-full h-10 px-3 border border-gray-300 rounded-md",value:p,onChange:j=>k(j.target.value),children:[i.jsx("option",{value:"",children:"All Locations"}),(e||L).map(j=>i.jsx("option",{value:j.id,children:j.name},j.id))]})}),i.jsxs($e,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium",onClick:A,disabled:g,children:[i.jsx(mt,{size:18}),g?"Searching...":a||"Search"]})]}),s&&(t||S).length>0&&i.jsxs("div",{className:"mt-4 flex flex-wrap gap-2 items-center",children:[i.jsx("span",{className:"text-muted-foreground font-medium",children:"Trending:"}),(t||S).map((j,R)=>i.jsx("a",{href:j.href,className:"inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 rounded-md text-xs h-8 px-3 text-yellow-600 hover:text-yellow-800-hover hover:bg-accent/10",children:j.label},R))]})]})})]})}function BS({logo:n,navItems:e}){const[t,a]=b.useState(!1);return i.jsxs("header",{className:"bg-[#0f1219] text-white py-4",children:[i.jsxs("div",{className:"container mx-auto px-4 flex justify-between items-center",children:[i.jsxs("a",{href:"/",className:"flex items-center gap-2",children:[i.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:i.jsx("span",{className:"text-black font-bold text-sm",children:n.initials})}),i.jsx("span",{className:"font-bold text-xl",children:n.text})]}),i.jsx("nav",{className:"hidden md:flex items-center gap-6",children:e.map((o,c)=>i.jsx("a",{href:o.href,className:"hover:text-yellow-400 transition-colors",children:o.label},c))}),i.jsx("button",{className:"md:hidden text-white",onClick:()=>a(!t),children:t?i.jsx(wt,{size:24}):i.jsx(mi,{size:24})})]}),t&&i.jsx("div",{className:"md:hidden bg-[#0f1219] py-4",children:i.jsx("nav",{className:"container mx-auto px-4 flex flex-col gap-4",children:e.map((o,c)=>i.jsx("a",{href:o.href,className:"hover:text-yellow-400 transition-colors py-2",onClick:()=>a(!1),children:o.label},c))})})]})}function OS({logo:n,tagline:e,socialLinks:t,columns:a,contactInfo:o,copyright:c,poweredBy:s}){return i.jsx("footer",{className:"bg-[#0f1219] text-white py-12 border-t border-gray-800",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-12",children:[i.jsxs("div",{className:"col-span-1",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[i.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:i.jsx("span",{className:"text-black font-bold text-sm",children:n.initials})}),i.jsx("span",{className:"font-bold text-xl",children:n.text})]}),i.jsx("p",{className:"text-gray-400 mb-4",children:e}),i.jsx("div",{className:"flex gap-4",children:t.map((l,d)=>i.jsx("a",{href:l.href,className:"text-gray-400 hover:text-white",children:l.icon},d))})]}),a.map((l,d)=>i.jsxs("div",{className:"col-span-1",children:[i.jsx("h3",{className:"font-bold text-lg mb-4",children:l.title}),i.jsx("ul",{className:"space-y-2",children:l.links.map((h,y)=>i.jsx("li",{children:i.jsx("a",{href:h.href,className:"text-gray-400 hover:text-white",children:h.label})},y))})]},d))]}),i.jsx("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 py-6 border-t border-gray-800",children:i.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[i.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[i.jsx(Zn,{size:16}),i.jsx("span",{children:o.email})]}),i.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[i.jsx(xi,{size:16}),i.jsx("span",{children:o.phone})]}),i.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[i.jsx(ia,{size:16}),i.jsx("span",{children:o.location})]})]})}),i.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 pt-6 border-t border-gray-800 text-gray-400 text-sm",children:[i.jsx("p",{children:c}),i.jsx("p",{children:s})]})]})})}const ES=()=>{const[n,e]=b.useState(null),t=[{id:1,name:"BetTech Gaming",logo:"BG",description:"Leading casino platform provider"},{id:2,name:"SportsBet Pro",logo:"SP",description:"Premier sportsbook solutions"},{id:3,name:"Casino Solutions",logo:"CS",description:"Innovative gaming technology"},{id:4,name:"Gaming Analytics",logo:"GA",description:"Data-driven gaming insights"},{id:5,name:"PokerTech",logo:"PT",description:"Advanced poker platforms"},{id:6,name:"SlotMaster",logo:"SM",description:"Premium slot game developer"},{id:7,name:"LiveCasino",logo:"LC",description:"Live dealer solutions"},{id:8,name:"BetSafe Tech",logo:"BT",description:"Secure betting infrastructure"},{id:9,name:"GameHub",logo:"GH",description:"Multi-game platform provider"},{id:10,name:"WinTech",logo:"WT",description:"Winning gaming solutions"}];return i.jsx("section",{className:"py-20 bg-gray-100",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[i.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Our Partners"}),i.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Trusted by 500+ leading iGaming companies worldwide"})]}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6 mb-12",children:t.map((a,o)=>i.jsxs("div",{className:"group relative bg-card p-6 rounded-xl shadow-card hover:shadow-elegant transition-all duration-300 transform hover:-translate-y-2 cursor-pointer animate-scale-in",style:{animationDelay:`${o*.05}s`},onMouseEnter:()=>e(a.id),onMouseLeave:()=>e(null),children:[i.jsx("div",{className:"aspect-square flex items-center justify-center mb-4",children:i.jsx("div",{className:"w-16 h-16 bg-gradient-accent rounded-xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:i.jsx("span",{className:"text-accent-foreground font-bold text-lg",children:a.logo})})}),i.jsx("h3",{className:"text-center font-bold text-card-foreground group-hover:text-accent transition-colors duration-300 text-sm",children:a.name}),n===a.id&&i.jsx("div",{className:"absolute inset-0 bg-primary/95 rounded-xl flex items-center justify-center p-4 animate-fade-in",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-primary-foreground font-bold mb-2",children:a.name}),i.jsx("div",{className:"text-primary-foreground/80 text-sm",children:a.description}),i.jsx("div",{className:"mt-3 text-yellow-500 text-sm font-medium",children:"View Jobs →"})]})}),i.jsx("div",{className:"absolute inset-0 border-2 border-transparent group-hover:border-accent/50 rounded-xl transition-colors duration-300"})]},a.id))}),i.jsx("div",{className:"bg-gradient-hero p-8 rounded-2xl shadow-accent animate-fade-in",style:{animationDelay:"0.5s"},children:i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 text-center text-primary-foreground",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-3xl font-bold mb-2",children:"500+"}),i.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Gaming Companies Trust Us"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-3xl font-bold mb-2",children:"50+"}),i.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Countries Worldwide"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-3xl font-bold mb-2",children:"€2B+"}),i.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Combined Revenue"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-3xl font-bold mb-2",children:"10M+"}),i.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Players Served"})]})]})}),i.jsxs("div",{className:"text-center mt-12 animate-slide-in",style:{animationDelay:"0.6s"},children:[i.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Want to Partner with Us?"}),i.jsx("p",{className:"text-muted-foreground mb-6 max-w-lg mx-auto",children:"Join hundreds of leading iGaming companies finding top talent through our platform"}),i.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:i.jsx("a",{href:"/partners",className:"bg-yellow-500 hover:bg-accent-hover font-semibold py-3 px-8 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-accent",children:"Become a Partner"})})]})]})})};function cN(){const[n,e]=b.useState(null);return b.useEffect(()=>{try{const t=localStorage.getItem("email");t&&e(t)}catch{}},[]),{isSubscribed:!!n,email:n}}function sN(){const{isSubscribed:n,email:e}=cN(),t={logo:{text:"iGamingCareer.com",initials:"iG"},navItems:[{label:"Home",href:"/"},{label:"iGaming Salaries 2025",href:"/salaries"},{label:"Jobs",href:"/jobs"},{label:"About Us",href:"/about"},{label:"Blog",href:"/blog"},{label:"Contact",href:"/contact"}]},a={title:"Find Your Dream Job in",subtitle:`The #1 platform for iGaming careers—connecting top talent with leading casinos,
|
|
7748
|
+
px-6 py-2 rounded flex items-center gap-2`,children:[i.jsx(uo,{size:18}),c]})]}),i.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6 mt-12 animate-fade-in",style:{animationDelay:"0.2s"},children:[i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"10,000+"}),i.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Active Candidates"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"500+"}),i.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Partner Companies"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl md:text-3xl font-bold text-primary-foreground",children:"25+"}),i.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Countries"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl md:text-3xl font-bold text-accent",children:"95%"}),i.jsx("div",{className:"text-primary-foreground/70 text-sm",children:"Success Rate"})]})]})]})})})})}function HS({title:n,values:e}){return i.jsx("section",{className:"py-16 bg-white",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsx("h2",{className:"text-3xl font-bold text-center mb-12",children:n}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:e.map((t,a)=>{const o=t.icon;return i.jsxs("div",{className:"flex flex-col items-center text-center",children:[i.jsx("div",{className:"w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center mb-4",children:i.jsx(o,{className:"w-8 h-8 text-yellow-500"})}),i.jsx("h3",{className:"text-xl font-bold mb-2",children:t.title}),i.jsx("p",{className:"text-gray-600",children:t.description})]},a)})})]})})}function DS({title:n,testimonial:e,stats:t,partnerLogos:a}){const[o,c]=b.useState(0),s=[{id:1,name:"Sarah Mitchell",role:"Product Manager",company:"BetTech Gaming",image:"/placeholder.svg",rating:5,content:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",location:"Malta"},{id:2,name:"Marcus Chen",role:"Software Engineer",company:"Casino Solutions",image:"/placeholder.svg",rating:5,content:"The salary insights feature helped me negotiate a 25% increase. Best iGaming job platform I've used.",location:"London"},{id:3,name:"Elena Rodriguez",role:"UX Designer",company:"SportsBet Pro",image:"/placeholder.svg",rating:5,content:"Found multiple interview opportunities within days. The quality of companies on this platform is outstanding.",location:"Gibraltar"},{id:4,name:"James Wilson",role:"Data Analyst",company:"Gaming Analytics",image:"/placeholder.svg",rating:5,content:"Professional, efficient, and results-driven. Helped me transition from fintech to iGaming seamlessly.",location:"Remote"}];b.useEffect(()=>{const h=setInterval(()=>{c(y=>(y+1)%s.length)},5e3);return()=>clearInterval(h)},[s.length]);const l=()=>{c(h=>(h+1)%s.length)},d=()=>{c(h=>(h-1+s.length)%s.length)};return i.jsx("section",{className:"py-16 bg-gradient-to-r from-[#0f1219] to-[#1a2236]",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[i.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-primary-foreground mb-4",children:n}),i.jsx("p",{className:"text-xl text-primary-foreground/80 max-w-2xl mx-auto",children:"Join thousands of professionals who've found their dream careers through our platform"})]}),i.jsxs("div",{className:"max-w-4xl mx-auto relative animate-scale-in",children:[i.jsxs("div",{className:"bg-card/10 backdrop-blur-sm border border-primary-foreground/20 p-8 md:p-12 rounded-2xl shadow-accent",children:[i.jsx(vi,{className:"h-12 w-12 text-yellow-500 mb-6"}),i.jsxs("blockquote",{className:"text-xl md:text-2xl text-primary-foreground mb-8 leading-relaxed font-medium",children:['"',s[o].content,'"']}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("div",{className:"w-16 h-16 bg-accent/20 rounded-full flex items-center justify-center",children:i.jsx("span",{className:"text-yellow-500 font-bold text-xl",children:s[o].name.charAt(0)})}),i.jsxs("div",{children:[i.jsx("div",{className:"text-primary-foreground font-bold text-lg",children:s[o].name}),i.jsxs("div",{className:"text-primary-foreground/70",children:[s[o].role," at ",s[o].company]}),i.jsx("div",{className:"text-primary-foreground/60 text-sm",children:s[o].location})]})]}),i.jsx("div",{className:"flex items-center gap-1",children:[...Array(s[o].rating)].map((h,y)=>i.jsx(Mt,{className:"h-5 w-5 text-yellow-500 fill-current"},y))})]})]}),i.jsxs("div",{className:"flex items-center justify-between mt-8",children:[i.jsx($e,{variant:"outline",size:"icon",onClick:d,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:i.jsx(Wn,{className:"h-6 w-6"})}),i.jsx("div",{className:"flex gap-2",children:s.map((h,y)=>i.jsx("button",{onClick:()=>c(y),className:`w-3 h-3 rounded-full transition-all duration-300 ${y===o?"bg-accent scale-125":"bg-primary-foreground/30 hover:bg-primary-foreground/50"}`},y))}),i.jsx($e,{variant:"outline",size:"icon",onClick:l,className:"bg-card/20 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground hover:text-primary",children:i.jsx(ra,{className:"h-6 w-6"})})]})]}),i.jsxs("div",{className:"mt-16 grid grid-cols-1 md:grid-cols-3 gap-8 animate-fade-in",style:{animationDelay:"0.2s"},children:[i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"95%"}),i.jsx("div",{className:"text-primary-foreground/80",children:"Success Rate"}),i.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"Candidates placed successfully"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"48h"}),i.jsx("div",{className:"text-primary-foreground/80",children:"Average Response"}),i.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"From application to interview"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-4xl font-bold text-yellow-500 mb-2",children:"€15k"}),i.jsx("div",{className:"text-primary-foreground/80",children:"Avg. Salary Increase"}),i.jsx("div",{className:"text-primary-foreground/60 text-sm",children:"When switching through our platform"})]})]})]})})}function FS({title:n,description:e,inputPlaceholder:t,api_url:a="http://localhost:5147",buttonText:o,isSubscribed:c=!1,email:s=null}){const[l,d]=b.useState(s??""),[h,y]=b.useState(!1),[u,p]=b.useState(!1);b.useEffect(()=>{if(c){p(!0),s&&d(s);return}try{const g=localStorage.getItem("email"),x=localStorage.getItem("leadId");g&&x&&(p(!0),d(g))}catch{}},[c,s]);const k=async()=>{if(!l||!l.includes("@")){alert("Please enter a valid email");return}y(!0);try{const g=await fetch(`${a}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l,source:"newsletter",utmCampaign:"general",utmMedium:"ui",utmSource:"newsletter_component"})});if(g.ok){const x=await g.json();localStorage.setItem("leadId",x.id),localStorage.setItem("email",l),p(!0)}else{const x=await g.text();alert("Submission failed: "+x)}}catch{alert("Network error while submitting")}finally{y(!1)}},f=u||c,m=s??l;return i.jsx("section",{className:"py-12 bg-[#0f1219] text-white",children:i.jsx("div",{className:"container mx-auto px-4",children:i.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[i.jsx("h2",{className:"text-2xl font-bold mb-4",children:n}),i.jsx("p",{className:"text-gray-300 mb-6",children:e}),f?i.jsxs("p",{className:"text-green-400 font-semibold",children:["✅ Thanks! You’re subscribed",m?` as ${m}`:"","."]}):i.jsxs("div",{className:"flex flex-col sm:flex-row gap-2 max-w-lg mx-auto",children:[i.jsx(_i,{type:"email",placeholder:t,value:l,onChange:g=>d(g.target.value),className:"px-4 py-2 rounded bg-gray-800 border border-gray-700 text-white flex-grow"}),i.jsx($e,{onClick:k,disabled:h,className:"px-6 py-2 bg-yellow-500 text-black font-medium rounded hover:bg-yellow-400 transition-colors",children:h?"Subscribing...":o})]})]})})})}function VS({title:n,locations:e,trendingKeywords:t,searchButtonText:a,apiUrl:o,className:c="",showTrending:s=!0,showLocationFilter:l=!0,mockMode:d=!1,searchPageUrl:h="#"}){const[y,u]=b.useState(""),[p,k]=b.useState(""),[f,m]=b.useState([]),[g,x]=b.useState(!1),w="Browse 3,500+ iGaming Jobs",L=[{id:"malta",name:"Malta"},{id:"remote",name:"Remote"},{id:"uk",name:"United Kingdom"},{id:"gibraltar",name:"Gibraltar"}],S=[{label:"CRM Manager",href:"/jobs?q=crm-manager"},{label:"Game Developer",href:"/jobs?q=game-developer"},{label:"Compliance Specialist",href:"/jobs?q=compliance-specialist"}];b.useEffect(()=>{const j=new URLSearchParams(window.location.search),R=j.get("q")||"",U=j.get("location")||"";u(R),k(U)},[]),b.useEffect(()=>{if(y.length<3){m([]);return}const j=setTimeout(()=>{C(y)},300);return()=>clearTimeout(j)},[y]);const C=async j=>{if(!o||d){m([`${j} Developer`,`${j} Manager`,`${j} Specialist`,`${j} Coordinator`,`${j} Agent`]);return}try{x(!0);const R=await fetch(`${o}/suggestions?q=${encodeURIComponent(j)}`);if(!R.ok)throw new Error("Failed to fetch suggestions");const U=await R.json();m(U.suggestions||[])}catch(R){console.error("Error fetching suggestions:",R),m([])}finally{x(!1)}},q=j=>u(j),I=j=>{j.key==="Enter"&&A()},A=()=>{if(d){console.log(`Mock Search - Term: ${y}, Location: ${p}`);return}const j=new URLSearchParams;y&&j.set("q",y),p&&j.set("location",p),window.location.href=`/jobs?${j.toString()}`};return i.jsxs("section",{className:`py-12 bg-gray-100 ${c}`,children:[i.jsxs("div",{className:"text-center mb-12 animate-fade-in",children:[i.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:n||w}),i.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Find your next opportunity at the world's leading gaming companies"})]}),i.jsx("div",{className:"container mx-auto px-4",children:i.jsxs("div",{className:"bg-card p-6 rounded-2xl shadow-card mb-12 animate-scale-in",children:[i.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[i.jsxs("div",{className:"flex-grow relative",children:[i.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:i.jsx(mt,{className:"h-5 w-5 text-gray-400"})}),i.jsx(_i,{type:"text",placeholder:"Search by role, company, or keyword",className:"w-full pl-10 border-gray-300",value:y,onChange:j=>q(j.target.value),onKeyDown:I,list:"job-suggestions"}),i.jsx("datalist",{id:"job-suggestions",children:f.map((j,R)=>i.jsx("option",{value:j},R))}),y&&i.jsx("button",{onClick:()=>u(""),className:"absolute inset-y-0 right-0 pr-3 flex items-center",children:i.jsx(St,{className:"h-5 w-5 text-gray-400 hover:text-gray-600"})}),g&&i.jsx("div",{className:"absolute inset-y-0 right-0 pr-10 flex items-center",children:i.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-gray-400"})})]}),l&&i.jsx("div",{className:"w-full md:w-1/3",children:i.jsxs("select",{className:"w-full h-10 px-3 border border-gray-300 rounded-md",value:p,onChange:j=>k(j.target.value),children:[i.jsx("option",{value:"",children:"All Locations"}),(e||L).map(j=>i.jsx("option",{value:j.id,children:j.name},j.id))]})}),i.jsxs($e,{className:"bg-yellow-500 hover:bg-yellow-400 text-black font-medium",onClick:A,disabled:g,children:[i.jsx(mt,{size:18}),g?"Searching...":a||"Search"]})]}),s&&(t||S).length>0&&i.jsxs("div",{className:"mt-4 flex flex-wrap gap-2 items-center",children:[i.jsx("span",{className:"text-muted-foreground font-medium",children:"Trending:"}),(t||S).map((j,R)=>i.jsx("a",{href:j.href,className:"inline-flex items-center justify-center whitespace-nowrap font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 rounded-md text-xs h-8 px-3 text-yellow-600 hover:text-yellow-800-hover hover:bg-accent/10",children:j.label},R))]})]})})]})}function BS({logo:n,navItems:e}){const[t,a]=b.useState(!1);return i.jsxs("header",{className:"bg-[#0f1219] text-white py-4",children:[i.jsxs("div",{className:"container mx-auto px-4 flex justify-between items-center",children:[i.jsxs("a",{href:"/",className:"flex items-center gap-2",children:[i.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:i.jsx("span",{className:"text-black font-bold text-sm",children:n.initials})}),i.jsx("span",{className:"font-bold text-xl",children:n.text})]}),i.jsx("nav",{className:"hidden md:flex items-center gap-6",children:e.map((o,c)=>i.jsx("a",{href:o.href,className:"hover:text-yellow-400 transition-colors",children:o.label},c))}),i.jsx("button",{className:"md:hidden text-white",onClick:()=>a(!t),children:t?i.jsx(wt,{size:24}):i.jsx(mi,{size:24})})]}),t&&i.jsx("div",{className:"md:hidden bg-[#0f1219] py-4",children:i.jsx("nav",{className:"container mx-auto px-4 flex flex-col gap-4",children:e.map((o,c)=>i.jsx("a",{href:o.href,className:"hover:text-yellow-400 transition-colors py-2",onClick:()=>a(!1),children:o.label},c))})})]})}function OS({logo:n,tagline:e,socialLinks:t,columns:a,contactInfo:o,copyright:c,poweredBy:s}){return i.jsx("footer",{className:"bg-[#0f1219] text-white py-12 border-t border-gray-800",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8 mb-12",children:[i.jsxs("div",{className:"col-span-1",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[i.jsx("div",{className:"w-10 h-10 rounded-full bg-yellow-500 flex items-center justify-center",children:i.jsx("span",{className:"text-black font-bold text-sm",children:n.initials})}),i.jsx("span",{className:"font-bold text-xl",children:n.text})]}),i.jsx("p",{className:"text-gray-400 mb-4",children:e}),i.jsx("div",{className:"flex gap-4",children:t.map((l,d)=>i.jsx("a",{href:l.href,className:"text-gray-400 hover:text-white",children:l.icon},d))})]}),a.map((l,d)=>i.jsxs("div",{className:"col-span-1",children:[i.jsx("h3",{className:"font-bold text-lg mb-4",children:l.title}),i.jsx("ul",{className:"space-y-2",children:l.links.map((h,y)=>i.jsx("li",{children:i.jsx("a",{href:h.href,className:"text-gray-400 hover:text-white",children:h.label})},y))})]},d))]}),i.jsx("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 py-6 border-t border-gray-800",children:i.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[i.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[i.jsx(Zn,{size:16}),i.jsx("span",{children:o.email})]}),i.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[i.jsx(xi,{size:16}),i.jsx("span",{children:o.phone})]}),i.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[i.jsx(ia,{size:16}),i.jsx("span",{children:o.location})]})]})}),i.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 pt-6 border-t border-gray-800 text-gray-400 text-sm",children:[i.jsx("p",{children:c}),i.jsx("p",{children:s})]})]})})}const ES=()=>{const[n,e]=b.useState(null),t=[{id:1,name:"BetTech Gaming",logo:"BG",description:"Leading casino platform provider"},{id:2,name:"SportsBet Pro",logo:"SP",description:"Premier sportsbook solutions"},{id:3,name:"Casino Solutions",logo:"CS",description:"Innovative gaming technology"},{id:4,name:"Gaming Analytics",logo:"GA",description:"Data-driven gaming insights"},{id:5,name:"PokerTech",logo:"PT",description:"Advanced poker platforms"},{id:6,name:"SlotMaster",logo:"SM",description:"Premium slot game developer"},{id:7,name:"LiveCasino",logo:"LC",description:"Live dealer solutions"},{id:8,name:"BetSafe Tech",logo:"BT",description:"Secure betting infrastructure"},{id:9,name:"GameHub",logo:"GH",description:"Multi-game platform provider"},{id:10,name:"WinTech",logo:"WT",description:"Winning gaming solutions"}];return i.jsx("section",{className:"py-20 bg-gray-100",children:i.jsxs("div",{className:"container mx-auto px-4",children:[i.jsxs("div",{className:"text-center mb-16 animate-fade-in",children:[i.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Our Partners"}),i.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto",children:"Trusted by 500+ leading iGaming companies worldwide"})]}),i.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-6 mb-12",children:t.map((a,o)=>i.jsxs("div",{className:"group relative bg-card p-6 rounded-xl shadow-card hover:shadow-elegant transition-all duration-300 transform hover:-translate-y-2 cursor-pointer animate-scale-in",style:{animationDelay:`${o*.05}s`},onMouseEnter:()=>e(a.id),onMouseLeave:()=>e(null),children:[i.jsx("div",{className:"aspect-square flex items-center justify-center mb-4",children:i.jsx("div",{className:"w-16 h-16 bg-gradient-accent rounded-xl flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:i.jsx("span",{className:"text-accent-foreground font-bold text-lg",children:a.logo})})}),i.jsx("h3",{className:"text-center font-bold text-card-foreground group-hover:text-accent transition-colors duration-300 text-sm",children:a.name}),n===a.id&&i.jsx("div",{className:"absolute inset-0 bg-primary/95 rounded-xl flex items-center justify-center p-4 animate-fade-in",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-primary-foreground font-bold mb-2",children:a.name}),i.jsx("div",{className:"text-primary-foreground/80 text-sm",children:a.description}),i.jsx("div",{className:"mt-3 text-yellow-500 text-sm font-medium",children:"View Jobs →"})]})}),i.jsx("div",{className:"absolute inset-0 border-2 border-transparent group-hover:border-accent/50 rounded-xl transition-colors duration-300"})]},a.id))}),i.jsx("div",{className:"bg-gradient-hero p-8 rounded-2xl shadow-accent animate-fade-in",style:{animationDelay:"0.5s"},children:i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-6 text-center text-primary-foreground",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-3xl font-bold mb-2",children:"500+"}),i.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Gaming Companies Trust Us"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-3xl font-bold mb-2",children:"50+"}),i.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Countries Worldwide"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-3xl font-bold mb-2",children:"€2B+"}),i.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Combined Revenue"})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-3xl font-bold mb-2",children:"10M+"}),i.jsx("div",{className:"text-primary-foreground/80 text-sm",children:"Players Served"})]})]})}),i.jsxs("div",{className:"text-center mt-12 animate-slide-in",style:{animationDelay:"0.6s"},children:[i.jsx("h3",{className:"text-2xl font-bold text-foreground mb-4",children:"Want to Partner with Us?"}),i.jsx("p",{className:"text-muted-foreground mb-6 max-w-lg mx-auto",children:"Join hundreds of leading iGaming companies finding top talent through our platform"}),i.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:i.jsx("a",{href:"/partners",className:"bg-yellow-500 hover:bg-accent-hover font-semibold py-3 px-8 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-accent",children:"Become a Partner"})})]})]})})};function cN(){const[n,e]=b.useState(null);return b.useEffect(()=>{try{const t=localStorage.getItem("email");t&&e(t)}catch{}},[]),{isSubscribed:!!n,email:n}}function sN(){const{isSubscribed:n,email:e}=cN(),t={logo:{text:"iGamingCareer.com",initials:"iG"},navItems:[{label:"Home",href:"/"},{label:"iGaming Salaries 2025",href:"/salaries"},{label:"Jobs",href:"/jobs"},{label:"About Us",href:"/about"},{label:"Blog",href:"/blog"},{label:"Contact",href:"/contact"}]},a={title:"Find Your Dream Job in",subtitle:`The #1 platform for iGaming careers—connecting top talent with leading casinos,
|
|
7749
7749
|
sportsbooks, and tech providers worldwide.`,backgroundImage:"/placeholder.svg?height=800&width=1600",primaryButtonText:"Search Jobs",secondaryButtonText:"Upload CV"},o={title:"Why Choose Us?",values:[{icon:Un,title:"Niche Expertise",description:"Dedicated solely to iGaming jobs worldwide."},{icon:$n,title:"Recruiter Network",description:"Direct access to hiring managers at top brands."},{icon:Jt,title:"Salary Insights",description:"Transparent data to negotiate your best offer."},{icon:to,title:"Career Growth",description:"Courses and certifications to level up your skills."}]},c={title:"Trusted by Professionals & Companies",testimonial:{quote:"Landed my dream job at DraftKings in 2 weeks! The platform was easy to use and the team provided great support throughout the process.",name:"Sarah",title:"Product Manager",avatar:"/placeholder.svg?height=80&width=80"},stats:[{value:"10,000+",label:"Candidates hired through our platform"},{value:"500+",label:"iGaming companies trust us"},{value:"25+",label:"Countries with active job listings"}],partnerLogos:Array(5).fill("/placeholder.svg?height=60&width=120")},s={title:"Get Exclusive iGaming Job Alerts",description:"Weekly openings + salary reports. Unsubscribe anytime.",inputPlaceholder:"Your email address",buttonText:"Subscribe",isSubscribed:n,email:e},l={title:"Hire Top iGaming Talent",description:"Access 50,000+ skilled professionals. Post a job in 5 minutes.",primaryButtonText:"Post a Job",primaryButtonHref:"/employers/post-job",secondaryButtonText:"Learn More",secondaryButtonHref:"/employers"},d={logo:{text:"iGamingCareer.com",initials:"iG"},tagline:"We bet on the people behind the game.",socialLinks:[{icon:i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-linkedin",children:[i.jsx("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),i.jsx("rect",{width:"4",height:"12",x:"2",y:"9"}),i.jsx("circle",{cx:"4",cy:"4",r:"2"})]}),href:"#"},{icon:i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-instagram",children:[i.jsx("rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}),i.jsx("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),i.jsx("line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"})]}),href:"#"}],columns:[{title:"Company",links:[{label:"About Us",href:"/about"},{label:"Careers",href:"/careers"},{label:"Press",href:"/press"}]},{title:"Resources",links:[{label:"Job Board",href:"/jobs"},{label:"Courses",href:"/courses"},{label:"Salary Guide",href:"/salary-guide"}]},{title:"Legal",links:[{label:"Privacy Policy",href:"/privacy"},{label:"Terms of Service",href:"/terms"},{label:"Contact Us",href:"/contact"}]}],contactInfo:{email:"info@igamingcareer.com",phone:"+1 (234) 567-89",location:"Malta, Europe"},copyright:"© 2025 iGaming Career Finder. All rights reserved.",poweredBy:"Powered by iGamingCareer.com"};return i.jsxs("div",{className:"flex flex-col min-h-screen",children:[i.jsx(BS,{...t}),i.jsxs("main",{className:"flex-grow",children:[i.jsx(RS,{...a}),i.jsx(HS,{...o}),i.jsx(VS,{}),i.jsx(DS,{...c}),i.jsx(ES,{}),i.jsx(FS,{...s}),i.jsx(TS,{...l})]}),i.jsx(OS,{...d})]})}function Ib({title:n="Premium Job Alerts",description:e="Get notified about new jobs that match your skills and preferences.",inputPlaceholder:t="Your email address",buttonText:a="Subscribe",api_url:o="http://localhost:5147"}){const[c,s]=b.useState(""),[l,d]=b.useState(!1),[h,y]=b.useState(!1);b.useEffect(()=>{const p=localStorage.getItem("email");p&&(y(!0),s(p))},[]);const u=async()=>{if(!c||!c.includes("@")){alert("Please enter a valid email");return}d(!0);try{const p=await fetch(`${o}/api/leads`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c,source:"sidebar_newsletter",utmCampaign:"jobs_sidebar",utmMedium:"ui",utmSource:"sidebar_component"})});if(p.ok){const k=await p.json();localStorage.setItem("leadId",k.id),localStorage.setItem("email",c),y(!0)}else{const k=await p.text();alert("Submission failed: "+k)}}catch{alert("Network error while submitting")}finally{d(!1)}};return i.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-5",children:[i.jsx("h3",{className:"font-semibold text-lg mb-3",children:n}),i.jsx("p",{className:"text-sm text-gray-600 mb-4",children:e}),h?i.jsxs("p",{className:"text-green-600 font-medium",children:["✅ You’re subscribed",c?` as ${c}`:"","!"]}):i.jsxs("form",{className:"flex flex-col",children:[i.jsx(_i,{type:"email",value:c,onChange:p=>s(p.target.value),placeholder:t,className:"mb-3"}),i.jsx($e,{type:"button",onClick:u,disabled:l,className:"bg-yellow-600 text-white hover:bg-yellow-700 transition-colors",children:l?"Subscribing...":a})]})]})}function US({open:n,type:e,message:t,onClose:a}){if(b.useEffect(()=>{if(n){const c=setTimeout(a,5e3);return()=>clearTimeout(c)}},[n,a]),!n)return null;const o={success:"bg-green-100 text-green-800 border-green-300",error:"bg-red-100 text-red-800 border-red-300",info:"bg-yellow-100 text-yellow-800 border-yellow-300"};return i.jsx("div",{className:`fixed top-6 right-6 z-50 max-w-sm w-full p-4 rounded-lg border shadow-md ${o[e]}`,children:i.jsxs("div",{className:"flex items-start justify-between",children:[i.jsx("p",{className:"text-sm font-medium",children:t}),i.jsx("button",{onClick:a,className:"ml-4",children:i.jsx(St,{className:"w-5 h-5"})})]})})}const So=({position:n,url:e,alt:t,link:a})=>{let o="",c="";switch(n){case"top":o="w-screen h-[48px] md:h-[90px] flex justify-center items-center bg-yellow-100",c="w-[390px] h-[48px] md:w-[728px] md:h-[90px]";break;case"bottom":o="w-screen h-[48px] md:h-[90px] flex justify-center items-center bg-green-100 mt-8",c="w-[390px] h-[48px] md:w-[728px] md:h-[90px]";break;case"sidebar":o="w-[300px] h-[250px] flex justify-center items-center bg-yellow-100",c="w-[300px] h-[250px]";break}const s=e.match(/\.(mp4|webm|ogg)$/i);return i.jsx("div",{className:o,children:i.jsx("a",{href:a,target:"_blank",children:s?i.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:`${c} object-cover`,children:[i.jsx("source",{src:e,type:"video/mp4"}),"Your browser does not support the video tag."]}):i.jsx("img",{src:e,alt:t,className:`${c} object-cover`})})})},ow=({options:n,value:e,onChange:t,placeholder:a,className:o=""})=>{const[c,s]=b.useState(!1),[l,d]=b.useState(""),h=b.useRef(null),y=n.filter(u=>u.toLowerCase().includes(l.toLowerCase()));return b.useEffect(()=>{const u=p=>{h.current&&!h.current.contains(p.target)&&s(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]),i.jsxs("div",{className:`searchable-select-container relative ${o}`,ref:h,children:[i.jsxs("div",{className:"searchable-select-header px-3 py-2 border border-gray-300 rounded-lg bg-white cursor-pointer flex justify-between items-center",onClick:()=>s(!c),children:[i.jsx("span",{className:e?"text-gray-900":"text-gray-500",children:e||a}),i.jsx("svg",{className:`h-5 w-5 text-gray-400 transition-transform ${c?"transform rotate-180":""}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:i.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]}),c&&i.jsxs("div",{className:"searchable-select-dropdown absolute z-10 mt-1 w-full bg-white border border-gray-300 rounded-lg shadow-lg",children:[i.jsx("div",{className:"p-2",children:i.jsx("input",{type:"text",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-yellow--500 focus:border-yellow--500",placeholder:"Search...",value:l,onChange:u=>d(u.target.value),onClick:u=>u.stopPropagation(),autoFocus:!0})}),i.jsxs("div",{className:"max-h-60 overflow-y-auto",children:[i.jsx("div",{className:"py-1 px-2 hover:bg-gray-100 cursor-pointer text-gray-500",onClick:()=>{t(""),s(!1),d("")},children:a}),y.length>0?y.map((u,p)=>i.jsx("div",{className:`py-1 px-2 cursor-pointer ${e===u?"bg-yellow-50 text-indigo-700":"hover:bg-gray-100 text-gray-900"}`,onClick:()=>{t(u),s(!1),d("")},children:u},p)):i.jsx("div",{className:"py-1 px-2 text-gray-500 italic",children:"No results found"})]})]})]})},lN=({filterKeys:n,filtersData:e,activeFilters:t,handleFilterChange:a,searchFilters:o,removeSearchFilter:c,clearAllFilters:s,searchableFilters:l})=>i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"filters-grid",children:n.map(d=>{var y,u;return(l==null?void 0:l.includes(d))?i.jsx(ow,{options:((y=e[d])==null?void 0:y.filter(p=>typeof p=="string"))||[],value:t[d]||"",onChange:p=>a(d,p),placeholder:`Select ${d.replace(/_/g," ")}`},d):i.jsxs("select",{className:"filter-select",onChange:p=>a(d,p.target.value),value:t[d]||"",children:[i.jsxs("option",{value:"",children:["Select ",d.replace(/_/g," ")]}),(u=e[d])==null?void 0:u.map((p,k)=>typeof p!="string"?null:i.jsx("option",{value:p,children:p},`${d}-${k}`))]},d)})}),i.jsxs("div",{className:"active-filters",children:[o.map(d=>i.jsxs("div",{className:"filter-badge search-filter-badge",children:[i.jsx("span",{className:"filter-value",children:d}),i.jsx("button",{className:"remove-filter",onClick:()=>c(d),"aria-label":`Remove search filter ${d}`,children:"×"})]},`search-${d}`)),Object.entries(t).map(([d,h])=>i.jsxs("div",{className:"filter-badge",children:[i.jsxs("span",{className:"filter-label",children:[d.replace(/_/g," "),":"]}),i.jsx("span",{className:"filter-value",children:h}),i.jsx("button",{className:"remove-filter",onClick:()=>a(d,""),"aria-label":`Remove ${d} filter`,children:"×"})]},d)),(Object.keys(t).length>0||o.length>0)&&i.jsx("button",{className:"clear-all-filters",onClick:s,children:"Clear All"})]})]}),dN=({searchTerm:n,handleSearchChange:e,handleSearchKeyDown:t,suggestions:a})=>i.jsx("div",{className:"search-container",children:i.jsxs("div",{className:"search-input-wrapper",children:[i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"search-icon",children:[i.jsx("circle",{cx:"11",cy:"11",r:"8"}),i.jsx("path",{d:"m21 21-4.3-4.3"})]}),i.jsx("input",{type:"text",className:"search-input",placeholder:"Search jobs and press Enter to add as filter...",value:n,onChange:o=>e(o.target.value),onKeyDown:t,list:"job-suggestions"}),i.jsx("datalist",{id:"job-suggestions",children:a.map((o,c)=>i.jsx("option",{value:o},c))})]})}),GS=({job:n,onSaveJob:e,onViewJob:t,isSaved:a,layout:o="grid"})=>{var p;if(!n||typeof n!="object")return console.error("❌ Invalid job data:",n),i.jsx("div",{className:"job-card bg-red-50",children:i.jsxs("div",{className:"p-4",children:[i.jsx("p",{className:"text-red-800 font-medium",children:"Invalid Job Data"}),i.jsx("p",{className:"text-red-600 text-sm",children:"The job data is in an unexpected format."})]})});const c=k=>{t(n)},s=k=>{k.preventDefault(),k.stopPropagation(),e(n)};n.published_at||n.created_at||n.scraped_at;const l=n.min_salary||0,d=n.max_salary||0,h=`$${l.toLocaleString()} - $${d.toLocaleString()}`,u=(k=>{if(!k)return"Recently posted";try{const f=new Date(k),g=Math.abs(new Date().getTime()-f.getTime()),x=Math.floor(g/(1e3*60*60*24));return x===0?"Today":x===1?"Yesterday":x<7?`${x} days ago`:x<30?`${Math.floor(x/7)} weeks ago`:x<365?`${Math.floor(x/30)} months ago`:`${Math.floor(x/365)} years ago`}catch{return"Recently posted"}})(n.published_at||n.created_at||n.scraped_at);return i.jsxs("div",{className:`bg-white rounded-lg shadow-sm border border-gray-200 p-3 hover:shadow-md transition-shadow
|
|
7750
7750
|
${o==="grid"?"flex flex-col h-full":"flex flex-col md:flex-row md:items-center md:space-x-4"}`,children:[i.jsxs("div",{className:"flex items-start space-x-4",children:[i.jsx("img",{src:n.logo||`/placeholder.svg?height=48&width=48&text=${((p=n.company)==null?void 0:p.charAt(0))||"C"}`,alt:`${n.company} logo`,className:"w-12 h-12 rounded-lg object-contain bg-gray-50"}),i.jsxs("div",{className:"flex-1",children:[i.jsx("h3",{className:"font-semibold text-gray-900",children:n.title||"No Title Available"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:n.company||"Unknown Company"})]})]}),i.jsxs("div",{className:`
|
|
7751
7751
|
mt-4 ${o==="list"?"md:mt-0 md:flex-1":""}
|
package/dist/index.mjs
CHANGED
|
@@ -36383,7 +36383,15 @@ function nN({
|
|
|
36383
36383
|
}) {
|
|
36384
36384
|
const [l, d] = I(s ?? ""), [h, y] = I(!1), [p, u] = I(!1);
|
|
36385
36385
|
ne(() => {
|
|
36386
|
-
|
|
36386
|
+
if (c) {
|
|
36387
|
+
u(!0), s && d(s);
|
|
36388
|
+
return;
|
|
36389
|
+
}
|
|
36390
|
+
try {
|
|
36391
|
+
const g = localStorage.getItem("email"), x = localStorage.getItem("leadId");
|
|
36392
|
+
g && x && (u(!0), d(g));
|
|
36393
|
+
} catch {
|
|
36394
|
+
}
|
|
36387
36395
|
}, [c, s]);
|
|
36388
36396
|
const k = async () => {
|
|
36389
36397
|
if (!l || !l.includes("@")) {
|
package/package.json
CHANGED