1import{c as E,r as p,p as H,j as e,B as w,n as O,N as G,J as B}from"./index-CNPsGjEa.js";import{S as q}from"./SEO-BK0024z7.js";import{N as T,F as I}from"./Footer-C2mwZlj3.js";import{C as R,d as U}from"./card-DfvhUNcI.js";import{I as N}from"./input-BVM4_asw.js";import{T as J}from"./textarea-DnF6y1xa.js";import{C as W}from"./checkbox-mh-hlI79.js";import{S as D,a as A,b as z,c as $,d as l}from"./select-CzibfoQS.js";import{s as C}from"./client-BomsTZso.js";import{z as h}from"./index-DXqQCM1T.js";import{B as L}from"./badge-BxnKxkwB.js";import{Z as V}from"./zap-WDilmF8P.js";import{C as P}from"./calendar-CceEaajA.js";import{U as _}from"./users-8SPuLJdZ.js";import{T as k}from"./trophy-DYYQpnH-.js";import{S as Z}from"./shield-B2p46bH9.js";import{C as Y}from"./code-CojserX2.js";import{C as X}from"./clock-CTynZiS8.js";import{p as K}from"./purify.es-CjvLbo03.js";import"./index-D9eVhfiJ.js";import"./index-DKaulZXA.js";import"./check-CDGWkqi-.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Q=E("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const ee=E("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const te=E("Medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]]);/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const F=E("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),ae=h.object({name:h.string().trim().min(1,"Name is required").max(100,"Name must be less than 100 characters"),email:h.string().trim().email("Invalid email address").max(255,"Email must be less than 255 characters"),githubUsername:h.string().trim().min(1,"GitHub username is required").max(39,"GitHub username must be less than 39 characters").regex(/^[a-zA-Z0-9](?:[a-zA-Z0-9]|-(?=[a-zA-Z0-9])){0,38}$/,"Invalid GitHub username format"),discordUsername:h.string().trim().min(2,"Discord username is required").max(32,"Discord username must be less than 32 characters"),teamName:h.string().trim().max(100,"Team name must be less than 100 characters").optional(),experience:h.string().optional(),teamPreference:h.string().optional(),motivation:h.string().trim().max(1e3,"Motivation must be less than 1000 characters").optional(),role:h.string().optional(),termsAccepted:h.boolean().refine(r=>r===!0,"You must accept the terms and conditions")}),M=({onJoinDiscord:r})=>{const[t,i]=p.useState({name:"",email:"",githubUsername:"",discordUsername:"",teamName:"",experience:"",teamPreference:"",motivation:"",role:"",termsAccepted:!1}),[s,n]=p.useState({}),[c,d]=p.useState(!1),[a,x]=p.useState(!1),{toast:b}=H(),u=o=>{const{name:m,value:g}=o.target;i(f=>({...f,[m]:g}))},y=(o,m)=>{i(g=>({...g,[o]:m}))},j=o=>{i(m=>({...m,termsAccepted:o}))},v=async(o,m)=>{try{const{error:g}=await C.functions.invoke("send-hackathon-confirmation",{body:{name:o,email:m}})}catch{}},S=async o=>{o.preventDefault();try{ae.parse(t),n({})}catch(m){if(m instanceof h.ZodError){const g={};m.errors.forEach(f=>{f.path[0]&&(g[f.path[0].toString()]=f.message)}),n(g),b({title:"Validation Error",description:"Please check the form for errors.",variant:"destructive"});return}}x(!0);try{await C.from("leads").insert({email:t.email.trim(),source:"hackathon_registration",page_url:window.location.href,metadata:{name:t.name.trim(),role:t.role||null,experience:t.experience||null}});const{error:m}=await C.from("hackathon_registrations").insert([{name:t.name.trim(),email:t.email.trim(),github_username:t.githubUsername.trim(),discord_username:t.discordUsername.trim(),team_name:t.teamName.trim()||null,experience:t.experience||null,team_preference:t.teamPreference||null,motivation:t.motivation.trim()||null,role:t.role||null,terms_accepted:t.termsAccepted}]);m?b({title:"Registration Failed",description:"There was an error submitting your registration. Please try again.",variant:"destructive"}):(await v(t.name,t.email),d(!0),b({title:"Registration Successful!",description:"Thank y
21ou for signing up! Check your email for confirmation and next steps."}))}catch{b({title:"Registration Failed",description:"An unexpected error occurred. Please try again.",variant:"destructive"})}finally{x(!1)}};return c?e.jsx(R,{className:"glass-card border-0 shadow-xl",children:e.jsxs(U,{className:"p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx("svg",{className:"w-8 h-8 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),e.jsx("h3",{className:"text-2xl font-semibold text-gray-900 mb-4",children:"Registration Successful!"}),e.jsx("p",{className:"text-gray-600 mb-6",children:"Thank you for signing up! Check your email for confirmation and join our Discord community for updates and team formation."}),e.jsxs(w,{onClick:r,className:"btn-primary",children:[e.jsx(F,{className:"w-4 h-4 mr-2"}),"Join Discord Community"]})]})}):e.jsx(R,{className:"glass-card border-0 shadow-xl",children:e.jsx(U,{className:"p-8",children:e.jsxs("form",{onSubmit:S,className:"space-y-6",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-700 mb-2",children:"Full Name *"}),e.jsx(N,{id:"name",name:"name",type:"text",required:!0,value:t.name,onChange:u,className:"input-field",placeholder:"Enter your full name",disabled:a})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-2",children:"Email Address *"}),e.jsx(N,{id:"email",name:"email",type:"email",required:!0,value:t.email,onChange:u,className:"input-field",placeholder:"Enter your email",disabled:a})]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"githubUsername",className:"block text-sm font-medium text-gray-700 mb-2",children:"GitHub Username *"}),e.jsx(N,{id:"githubUsername",name:"githubUsername",type:"text",required:!0,value:t.githubUsername,onChange:u,className:"input-field",placeholder:"e.g., octocat",disabled:a}),s.githubUsername&&e.jsx("p",{className:"text-sm text-red-600 mt-1",children:s.githubUsername})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"discordUsername",className:"block text-sm font-medium text-gray-700 mb-2",children:"Discord Username *"}),e.jsx(N,{id:"discordUsername",name:"discordUsername",type:"text",required:!0,value:t.discordUsername,onChange:u,className:"input-field",placeholder:"e.g., username#1234",disabled:a}),s.discordUsername&&e.jsx("p",{className:"text-sm text-red-600 mt-1",children:s.discordUsername})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"teamName",className:"block text-sm font-medium text-gray-700 mb-2",children:"Team Name"}),e.jsx(N,{id:"teamName",name:"teamName",type:"text",value:t.teamName,onChange:u,className:"input-field",placeholder:"Enter your team name (optional)",disabled:a})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"role",className:"block text-sm font-medium text-gray-700 mb-2",children:"Developer Role"}),e.jsxs(D,{value:t.role,onValueChange:o=>y("role",o),disabled:a,children:[e.jsx(A,{className:"input-field",children:e.jsx(z,{placeholder:"Select your role"})}),e.jsxs($,{className:"bg-white border border-gray-200 shadow-lg z-50",children:[e.jsx(l,{value:"fullstack",children:"Full Stack Developer"}),e.jsx(l,{value:"frontend",children:"Frontend Developer"}),e.jsx(l,{value:"backend",children:"Backend Developer"}),e.jsx(l,{value:"ux-ui",children:"UX/UI Designer"}),e.jsx(l,{value:"mobile",children:"Mobile Developer"}),e.jsx(l,{value:"devops",children:"DevOps Engineer"}),e.jsx(l,{value:"data-science",children:"Data Scientist"}),e.jsx(l,{value:"product-manager",children:"Product Manager"}),e.jsx(l,{value:"other",children:"Other"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"experience",className:"block text-sm font-medium text-gray-700 mb-2",children:"Development Experience"}),e.jsxs(D,{value:t.experience,onValueChange:o=>y("experience",o),disabled:a,children:[e.jsx(A,{className:"input-field",children:e.jsx(z,{placeholder:"Select your experience level"})}),e.jsxs($,{className:"bg-white border border-gray-200 shadow-lg z-50",children:[e.jsx(l,{value:"beginner",children:"Beginner (0-1 years)"}),e.jsx(l,{value:"intermediate",children:"Intermediate (2-4 years)"}),e.jsx(l,{value:"experienced",children:"Experienced (5+ years)"}),e.jsx(l,{value:"expert",children:"Expert (10+ years)"})]})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"teamPreference",className:"block text-sm font-medium text-gray-700 mb-2",children:"Team Preference"}),e.jsxs(D,{value:t.teamPreference,onValueChange:o=>y("teamPreference",o),disabled:a,children:[e.jsx(A,{className:"input-field",children:e.jsx(z,{placeholder:"Select your preference"})}),e.jsxs($,{className:"bg-white border border-gray-200 shadow-lg z-50",children:[e.jsx(l,{value:"solo",children:"Work solo"}),e.jsx(l,{value:"team",children:"Join/form a team"}),e.jsx(l,{value:"either",children:"Either is fine"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"motivation",className:"block text-sm font-medium text-gray-700 mb-2",children:"What motivates you to participate?"}),e.jsx(J,{id:"motivation",name:"motivation",value:t.motivation,onChange:u,className:"input-field min-h-[100px]",placeholder:"Tell us what excites you about this challenge...",disabled:a})]}),e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(W,{id:"terms",checked:t.termsAccepted,onCheckedChange:j,disabled:a,className:"mt-1"}),e.jsxs("label",{htmlFor:"terms",className:"text-sm text-gray-700 leading-relaxed",children:["I accept the"," ",e.jsx("a",{href:"/hackathon-terms",target:"_blank",className:"text-chaincademy-purple hover:underline",children:"Terms and Conditions"})," ","and agree to participate in the hackathon according to the rules and guidelines. *"]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[e.jsx(w,{type:"submit",className:"btn-primary flex-1",disabled:a||!t.termsAccepted,
21children:a?"Submitting...":"Sign Up for Hackathon"}),e.jsxs(w,{type:"button",onClick:r,variant:"outline",className:"flex-1 border-chaincademy-purple text-chaincademy-purple hover:bg-chaincademy-purple hover:text-white",disabled:a,children:[e.jsx(F,{className:"w-4 h-4 mr-2"}),"Join Discord"]})]})]})})})},re=({hackathon:r,onScrollToSignup:t})=>{const[i,s]=p.useState({days:0,hours:0,minutes:0,seconds:0});return p.useEffect(()=>{const n=()=>{const d=+new Date(r.start_date)-+new Date;d>0&&s({days:Math.floor(d/864e5),hours:Math.floor(d/36e5%24),minutes:Math.floor(d/1e3/60%60),seconds:Math.floor(d/1e3%60)})};n();const c=setInterval(n,1e3);return()=>clearInterval(c)},[r.start_date]),e.jsxs("section",{className:"relative pt-32 pb-20 overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-cyber-dark",children:e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:` 22 linear-gradient(hsl(var(--cyber-green) / 0.1) 1px, transparent 1px), 23 linear-gradient(90deg, hsl(var(--cyber-green) / 0.1) 1px, transparent 1px) 24 `,backgroundSize:"50px 50px",animation:"grid-move 20s linear infinite"}})}),e.jsx("div",{className:"absolute top-20 left-20 w-96 h-96 bg-cyber-green rounded-full blur-[120px] opacity-20 animate-pulse"}),e.jsx("div",{className:"absolute bottom-20 right-20 w-96 h-96 bg-halloween-orange rounded-full blur-[120px] opacity-20 animate-pulse",style:{animationDelay:"1s"}}),e.jsx("div",{className:"absolute top-1/2 left-1/2 w-96 h-96 bg-cyber-purple rounded-full blur-[120px] opacity-15 animate-pulse",style:{animationDelay:"2s"}}),e.jsx("div",{className:"container mx-auto container-padding relative z-10",children:e.jsxs("div",{className:"text-center max-w-5xl mx-auto",children:[e.jsxs(L,{className:"mb-6 bg-cyber-green/20 text-cyber-green border-cyber-green/40 px-4 py-2 text-sm font-mono animate-pulse",children:[e.jsx(V,{className:"w-3 h-3 mr-2 inline"}),r.status==="upcoming"?"SYSTEM.LOADING...":"SYSTEM.ACTIVE"]}),e.jsx("h1",{className:"heading-xl mb-8 text-white relative group",children:e.jsxs("span",{className:"relative inline-block",children:[e.jsx("span",{className:"absolute -inset-1 bg-gradient-to-r from-cyber-green via-cyber-purple to-halloween-orange blur-2xl opacity-50 group-hover:opacity-75 transition-opacity"}),e.jsx("span",{className:"relative bg-gradient-to-r from-cyber-green via-cyber-purple to-halloween-orange bg-clip-text text-transparent font-mono",children:r.title})]})}),e.jsx("p",{className:"text-xl text-gray-300 mb-12 leading-relaxed max-w-3xl mx-auto",children:r.description}),r.status==="upcoming"&&e.jsxs("div",{className:"mb-12",children:[e.jsx("h3",{className:"text-cyber-green font-mono text-sm mb-4 tracking-widest",children:"INITIATING IN:"}),e.jsx("div",{className:"grid grid-cols-4 gap-4 max-w-2xl mx-auto",children:[{label:"DAYS",value:i.days},{label:"HOURS",value:i.hours},{label:"MINS",value:i.minutes},{label:"SECS",value:i.seconds}].map((n,c)=>e.jsxs("div",{className:"bg-cyber-dark-lighter border border-cyber-green/30 rounded-lg p-6 backdrop-blur-sm relative overflow-hidden group hover:border-cyber-green/60 transition-all",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-cyber-green/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"text-4xl font-mono font-bold text-cyber-green mb-2",children:String(n.value).padStart(2,"0")}),e.jsx("div",{className:"text-xs font-mono text-gray-400 tracking-wider",children:n.label})]})]},n.label))})]}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-6 mb-12",children:[e.jsxs("div",{className:"flex items-center gap-3 text-gray-300 bg-cyber-dark-lighter px-4 py-3 rounded-lg border border-cyber-green/20",children:[e.jsx(P,{className:"w-5 h-5 text-cyber-green"}),e.jsx("span",{className:"font-mono text-sm",children:new Date(r.start_date).toLocaleDateString("en-GB",{year:"numeric",month:"short",day:"numeric"})})]}),e.jsxs("div",{className:"flex items-center gap-3 text-gray-300 bg-cyber-dark-lighter px-4 py-3 rounded-lg border border-cyber-purple/20",children:[e.jsx(_,{className:"w-5 h-5 text-cyber-purple"}),e.jsx("span",{className:"font-mono text-sm",children:r.location})]}),r.prize&&e.jsxs("div",{className:"flex items-center gap-3 text-gray-300 bg-cyber-dark-lighter px-4 py-3 rounded-lg border border-halloween-orange/20",children:[e.jsx(k,{className:"w-5 h-5 text-halloween-orange"}),e.jsx("span",{className:"font-mono text-sm",children:r.prize})]})]}),r.registration_open&&e.jsx(w,{onClick:t,className:"btn-cyber-hero text-lg px-12 py-6 relative group",children:e.jsxs("span",{className:"relative z-10 font-mono",children:[">"," INITIATE.REGISTRATION"]})})]})}),e.jsx("style",{children:` 25 @keyframes grid-move { 26 0% { background-position: 0 0; } 27 100% { background-position: 50px 50px; } 28 } 29 `})]})},se=()=>{const r=[{icon:Z,title:"Cybersecurity Focus",description:"Tackle real-world security challenges and vulnerabilities"},{icon:Y,title:"Hack & Build",description:"Create innovative solutions to complex problems"},{icon:k,title:"Win Prizes",description:"Compete for amazing rewards and recognition"},{icon:_,title:"Network",description:"Connect with security researchers and developers"}];return e.jsxs("section",{className:"py-20 bg-cyber-dark-lighter relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:e.jsx("div",{className:"absolute w-full h-px bg-gradient-to-r from-transparent via-cyber-green to-transparent animate-scan-line opacity-30"})}),e.jsxs("div",{className:"container mx-auto container-padding relative z-10",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsxs("h2",{className:"heading-lg text-white mb-4 font-mono",children:[e.jsx("span",{className:"text-cyber-green",children:">"})," ABOUT.MISSION"]}),e.jsx("p",{className:"text-gray-400 text-lg max-w-3xl mx-auto leading-relaxed",children:"Join the ultimate Halloween-themed cybersecurity hackathon where the best minds in security come together to build, break, and secure the digital world. This isn't just a competition, it's a challenge to push your skills to the limit."})]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:r.map((t,i)=>{const s=t.icon;return e.jsxs("div",{className:"group relative bg-cyber-dark border border-cyber-green/20 rounded-lg p-6 hover:border-cyber-green/60 transition-all duration-300",style:{animationDelay:`${i*100}ms`},children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-cyber-green/5 to-transparent opacity-0 group-hover:opacity-100 transition-opacity rounded-lg"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"w-12 h-12 bg-cyber-green/10 rounded-lg flex items-center justify-center mb-4 group-hover:bg-cyber-green/20 transition-colors",children:e.jsx(s,{className:"w-6 h-6 text-cyber-green"})}),e.jsx("h3",{className:"text-white font-mono font-bold mb-2",children:t.title}),e.jsx("p",{className:"text-gray-400 text-sm",children:t.description})]})]},t.title)})})]})]})},ne=({events:r})=>{const i=r||[{date:"Oct 25",title:"Registration Opens",description:"Sign up and join the challenge"},{date:"Oct 31",title:"Hackathon Begins",description:"Start building your solution"},{date:"Nov 1",title:"Submission Deadline",description:"Submit your final project"},{date:"Nov 3",title:"Winners Announced",description:"Top teams receive prizes"}];return e.jsxs("section",{className:"py-20 bg-cyber-dark relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-10",children:e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:` 30 linear-gradient(hsl(var(--cyber-purple) / 0.3) 1px, transparent 1px), 31 linear-gradient(90deg, hsl(var(--cyber-purple) / 0.3) 1px, transparent 1px) 32 `,backgroundSize:"40px 40px"}})}),e.jsxs("div",{className:"container mx-auto container-padding relative z-10",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsxs("h2",{className:"heading-lg text-white mb-4 font-mono",children:[e.jsx("span",{className:"text-halloween-orange",children:">"})," EVENT.TIMELINE"]}),e.jsx("p",{className:"text-gray-400 text-lg",children:"Key dates and milestones"})]}),e.jsx("div",{className:"max-w-4xl mx-auto",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-8 top-0 bottom-0 w-px bg-gradient-to-b from-cyber-green via-cyber-purple to-halloween-orange"}),e.jsx("div",{className:"space-y-12",children:i.map((s,n)=>e.jsxs("div",{className:"relative pl-20 group",children:[e.jsx("div",{className:"absolute left-5 w-7 h-7 rounded-full bg-cyber-dark border-2 border-cyber-green flex items-center justify-center group-hover:border-halloween-orange transition-colors",children:e.jsx("div",{className:"w-3 h-3 rounded-full bg-cyber-green group-hover:bg-halloween-orange transition-colors animate-glow-pulse"})}),e.jsxs("div",{className:"bg-cyber-dark-lighter border border-cyber-green/20 rounded-lg p-6 group-hover:border-cyber-green/60 transition-all",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx(X,{className:"w-4 h-4 text-cyber-green"}),e.jsx("span",{className:"text-cyber-green font-mono text-sm",children:s.date})]}),e.jsx("h3",{className:"text-white font-mono font-bold text-lg mb-2",children:s.title}),e.jsx("p",{className:"text-gray-400",children:s.description})]})]},n))})]})})]})]})},ie=({rules:r})=>{const i=r||[{title:"Team Size",description:"Teams of 1-4 members are allowed. Solo participants welcome!"},{title:"Original Work",description:"All submissions must be original work created during the hackathon period"},{title:"Open Source",description:"Projects must be open source and hosted on GitHub"},{title:"Code of Conduct",description:"All participants must adhere to our community code of conduct"},{title:"Submission Requirements",description:"Include a working demo, source code, and documentation"},{title:"Theme Alignment",description:"Projects should align with the cybersecurity theme"}];return e.jsxs("section",{className:"py-20 bg-cyber-dark relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-20 right-20 w-96 h-96 bg-cyber-purple roun
32ded-full blur-[120px] opacity-20 animate-glow-pulse"}),e.jsxs("div",{className:"container mx-auto container-padding relative z-10",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsxs("h2",{className:"heading-lg text-white mb-4 font-mono",children:[e.jsx("span",{className:"text-cyber-purple",children:">"})," RULES.ENGAGEMENT"]}),e.jsx("p",{className:"text-gray-400 text-lg",children:"Guidelines for participation"})]}),e.jsx("div",{className:"max-w-4xl mx-auto grid md:grid-cols-2 gap-6",children:i.map((s,n)=>e.jsx("div",{className:"group bg-cyber-dark-lighter border border-cyber-purple/20 rounded-lg p-6 hover:border-cyber-purple/60 transition-all",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx(ee,{className:"w-6 h-6 text-cyber-purple"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-mono font-bold mb-2",children:s.title}),e.jsx("p",{className:"text-gray-400 text-sm",children:s.description})]})]})},n))})]})]})},le=({prizes:r,totalPrize:t})=>{const s=r||[{place:"Best Overall",amount:"$100",description:"$100 + 1 Year Chaincademy Access<br>For the most impressive, complete, and innovative cybersecurity solution",icon:"trophy"},{place:"Most Impactful",amount:"$50",description:"$50 + 3 Months Chaincademy Access<br>For the solution with the greatest real-world risk reduction potential",icon:"medal"}],n=c=>{switch(c){case"trophy":return k;case"medal":return te;case"award":return Q;default:return k}};return e.jsxs("section",{className:"py-20 bg-cyber-dark-lighter relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-halloween-orange to-transparent"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-full h-px bg-gradient-to-r from-transparent via-halloween-orange to-transparent"}),e.jsxs("div",{className:"container mx-auto container-padding relative z-10",children:[e.jsx("div",{className:"text-center mb-16",children:e.jsxs("h2",{className:"heading-lg text-white mb-4 font-mono",children:[e.jsx("span",{className:"text-halloween-orange",children:">"})," PRIZES.REWARDS"]})}),e.jsx("div",{className:"max-w-5xl mx-auto grid md:grid-cols-2 gap-8",children:s.map((c,d)=>{const a=n(c.icon),x=d===0;return e.jsx("div",{className:"group relative",children:e.jsxs("div",{className:`relative bg-cyber-dark border-2 rounded-xl p-8 transition-all ${x?"border-halloween-orange hover:border-halloween-orange/80 hover:scale-105":"border-cyber-green/30 hover:border-cyber-green/60 hover:scale-105"}`,children:[e.jsx("div",{className:`absolute inset-0 rounded-xl opacity-0 group-hover:opacity-100 transition-opacity ${x?"bg-halloween-orange/5":"bg-cyber-green/5"}`}),e.jsxs("div",{className:"relative text-center",children:[e.jsx("div",{className:`w-16 h-16 mx-auto mb-6 rounded-full flex items-center justify-center ${x?"bg-halloween-orange/20 border-2 border-halloween-orange":"bg-cyber-green/20 border-2 border-cyber-green/50"}`,children:e.jsx(a,{className:`w-8 h-8 ${x?"text-halloween-orange":"text-cyber-green"}`})}),e.jsx("h3",{className:`font-mono font-bold text-2xl mb-2 ${x?"text-halloween-orange":"text-cyber-green"}`,children:c.place}),e.jsx("div",{className:"text-4xl font-bold text-white mb-4 font-mono",children:c.amount}),e.jsx("p",{className:"text-gray-400 text-sm",dangerouslySetInnerHTML:{__html:K.sanitize(c.description,{ALLOWED_TAGS:["br","strong","em","b","i"],ALLOWED_ATTR:[]})}})]})]})},c.place)})})]})]})},De=()=>{var y;const{slug:r}=O(),[t,i]=p.useState(null),[s,n]=p.useState(!0),[c,d]=p.useState(!1),a=r==="halloween-chainckathon-2025";if(p.useEffect(()=>{(async()=>{if(!r){d(!0),n(!1);return}try{const{data:v,error:S}=await C.from("hackathons").select("*").eq("slug",r).single();if(S)throw S;v?i(v):d(!0)}catch(v){console.error("Error fetching hackathon:",v),B.error("Failed to load hackathon details"),d(!0)}finally{n(!1)}})()},[r]),s)return e.jsxs("div",{className:a?"min-h-screen bg-cyber-dark":"min-h-screen bg-gradient-to-br from-chaincademy-purple/5 to-white",children:[e.jsx(T,{}),e.jsx("div",{className:"container mx-auto container-padding py-32 text-center",children:e.jsx("h2",{className:`text-2xl ${a?"text-cyber-green font-mono":"text-muted-foreground"}`,children:a?"LOADING.SYSTEM...":"Loading event details..."})}),e.jsx(I,{})]});if(c||!t)return e.jsx(G,{to:"/hackathons",replace:!0});const x=()=>{t.discord_link&&window.open(t.discord_link,"_blank","noopener,noreferrer")},b=()=>{var j;(j=document.getElementById("signup"))==null||j.scrollIntoView({behavior:"smooth"})}
32,u=t?e.jsx(q,{title:t.title,description:((y=t.description)==null?void 0:y.slice(0,160))||"Join this developer hackathon by The Chaincademy.",canonicalUrl:`/hackathons/${r}`,structuredData:{"@context":"https://schema.org","@type":"Event",name:t.title,description:t.description,startDate:t.start_date,endDate:t.end_date,eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OnlineEventAttendanceMode",location:{"@type":"VirtualLocation",url:`https://thechaincademy.com/hackathons/${r}`},organizer:{"@type":"Organization",name:"The Chaincademy",url:"https://thechaincademy.com"}}}):null;return a?e.jsxs("div",{className:"min-h-screen bg-cyber-dark",children:[u,e.jsx(T,{}),e.jsx(re,{hackathon:t,onScrollToSignup:b}),e.jsx(se,{}),e.jsx(ne,{events:t.timeline_events}),e.jsx(ie,{rules:t.judging_criteria}),e.jsx(le,{prizes:t.prizes_details,totalPrize:t.prize||void 0}),e.jsxs("section",{id:"signup",className:"py-20 bg-cyber-dark-lighter relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-10",children:e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:` 33 linear-gradient(hsl(var(--cyber-green) / 0.3) 1px, transparent 1px), 34 linear-gradient(90deg, hsl(var(--cyber-green) / 0.3) 1px, transparent 1px) 35 `,backgroundSize:"40px 40px"}})}),e.jsx("div",{className:"container mx-auto container-padding relative z-10",children:e.jsx("div",{className:"max-w-2xl mx-auto",children:t.registration_open?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("h2",{className:"heading-lg text-white mb-4 font-mono",children:[e.jsx("span",{className:"text-cyber-green",children:">"})," REGISTER.NOW"]}),e.jsx("p",{className:"text-gray-400 text-lg",children:"Join the ultimate cybersecurity challenge"})]}),e.jsx("div",{className:"bg-cyber-dark border border-cyber-green/30 rounded-lg p-8",children:e.jsx(M,{onJoinDiscord:x})})]}):e.jsxs("div",{className:"text-center",children:[e.jsxs("h2",{className:"heading-lg text-white mb-4 font-mono",children:[e.jsx("span",{className:"text-halloween-orange",children:"!"})," REGISTRATION.CLOSED"]}),e.jsx("p",{className:"text-gray-400 text-lg mb-8",children:t.status==="past"?"This event has concluded. Stay tuned for future challenges!":"Registration is currently closed. Check back soon!"}),e.jsx("button",{onClick:()=>window.open("https://jobs.thechaincademy.com/auth","_blank","noopener,noreferrer"),className:"btn-cyber-hero",children:e.jsxs("span",{className:"relative z-10 font-mono",children:[">"," EXPLORE.CAREER_PATH"]})})]})})})]}),e.jsx(I,{})]}):e.jsxs("div",{className:`min-h-screen ${a?"bg-gradient-to-br from-orange-950 via-purple-950 to-black":"bg-gradient-to-br from-chaincademy-purple/5 to-white"}`,children:[u,e.jsx(T,{}),a&&e.jsxs("div",{className:"fixed inset-0 pointer-events-none overflow-hidden opacity-20",children:[e.jsx("div",{className:"absolute top-10 left-10 text-6xl animate-bounce",children:"ð"}),e.jsx("div",{className:"absolute top-20 right-20 text-5xl animate-pulse",children:"ð»"}),e.jsx("div",{className:"absolute bottom-20 left-1/4 text-6xl animate-bounce",style:{animationDelay:"0.5s"},children:"ð¦"}),e.jsx("div",{className:"absolute bottom-32 right-1/3 text-5xl animate-pulse",style:{animationDelay:"1s"},children:"ð·ï¸"}),e.jsx("div",{className:"absolute top-1/2 right-10 text-6xl animate-bounce",style:{animationDelay:"1.5s"},children:"ð"}),e.jsx("div",{className:"absolute top-1/3 left-1/3 text-5xl animate-pulse",style:{animationDelay:"2s"},children:"ð¸ï¸"})]}),e.jsx("section",{className:"pt-32 pb-16",children:e.jsx("div",{className:"container mx-auto container-padding",children:e.jsxs("div",{className:"text-center max-w-4xl mx-auto",children:[e.jsx(L,{className:`mb-6 ${a?"bg-orange-500/20 text-orange-300 border-orange-500/40":"bg-chaincademy-purple/10 text-chaincademy-purple border-chaincademy-purple/20"}`,children:t.status==="upcoming"?"Upcoming Event":t.status==="ongoing"?"Happening Now":"Past Event"}),e.jsxs("h1",{className:`heading-xl mb-6 ${a?"bg-gradient-to-r from-orange-500 via-purple-500 to-orange-500 bg-clip-text text-transparent animate-pulse":"bg-gradient-to-r from-chaincademy-purple to-chaincademy-purple-dark bg-clip-text text-transparent"}`,children:[a&&e.jsx("span",{className:"text-5xl mr-3",children:"ð"}),t.title,a&&e.jsx("span",{className:"text-5xl ml-3",children:"ð»"})]}),e.jsx("p",{className:`text-xl mb-8 leading-relaxed ${a?"text-orange-100":"text-gray-600"}`,children:t.description}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-6 mb-8",children:[e.jsxs("div",{className:`flex items-center gap-2 ${a?"text-orange-200":"text-gray-700"}`,children:[e.jsx(P,{className:`w-5 h-5 ${a?"text-orange-400":"text-chaincademy-purple"}`}),e.jsx("span",{className:"font-medium",children:new Date(t.start_date).toLocaleDateString("en-GB",{year:"numeric",month:"long",day:"numeric"})})]}),e.jsxs("div",{className:`flex items-center gap-2 ${a?"text-orange-200":"text-gray-700"}`,children:[e.jsx(_,{className:`w-5 h-5 ${a?"text-orange-400":"text-chaincademy-purple"}`}),e.jsx("span",{className:"font-medium",children:t.location})]}),t.prize&&e.jsxs("div",{className:`flex items-center gap-2 ${a?"text-orange-200":"text-gray-700"}`,children:[e.jsx(k,{className:`w-5 h-5 ${a?"text-orange-400":"text-chaincademy-purple"}`}),e.jsxs("span",{className:"font-medium",children:[t.prize," Prize"]})]})]}),t.registration_open&&e.jsx("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:e.jsxs(w,{onClick:b,className:`text-lg px-8 py-4 ${a?"bg-gradient-to-r from-orange-600 to-purple-600 hover:from-orange-700 hover:to-purple-700 text-white shadow-lg shadow-orange-500/50 animate-pulse":"bg-chaincademy-purple hover:bg-chaincademy-purple-dark text-white"}`,children:[a&&"ð» ","Sign Up Now",a&&" ð"]})})]})})}),e.jsx("section",{id:"signup",className:`py-16 ${a?"bg-black/40 backdrop-blur-sm border-y border-orange-500/20":"bg-white"}`,children:e.jsx("div",{className:"container mx-auto container-padding",children:e.jsx("div",{className:"max-w-2xl mx-auto text-center",children:t.registration_open?e.jsxs(e.Fragment,{children:[e.jsxs("h2",{className:`heading-lg mb-4 ${a?"text-orange-400":""}`,children:[a&&"ð ","Register Now",a&&" ð»"]}
35),e.jsx("p",{className:`text-xl mb-8 ${a?"text-orange-200":"text-muted-foreground"}`,children:"Join us for this exciting Chainckathon challenge!"}),e.jsx(M,{onJoinDiscord:x})]}):e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:`heading-lg mb-4 ${a?"text-orange-400":""}`,children:"Registration Closed"}),e.jsx("p",{className:`text-xl mb-8 ${a?"text-orange-200":"text-muted-foreground"}`,children:t.status==="past"?"This event has already concluded. Thank you for your interest!":"Registration is currently closed. Stay tuned for future Chainckathon events!"}),e.jsxs("div",{className:`border rounded-lg p-8 ${a?"bg-purple-950/50 border-orange-500/30":"bg-muted border-border"}`,children:[e.jsx("p",{className:`text-lg mb-6 ${a?"text-orange-100":""}`,children:"Stay tuned for future Chainckathon events!"}),e.jsx("p",{className:`text-md mb-6 ${a?"text-orange-200/80":"text-muted-foreground"}`,children:"In the meantime, build your skills with our career platform:"}),e.jsx("button",{onClick:()=>window.open("https://jobs.thechaincademy.com/auth","_blank","noopener,noreferrer"),className:`text-lg px-8 py-4 rounded-lg transition-colors ${a?"bg-gradient-to-r from-orange-600 to-purple-600 hover:from-orange-700 hover:to-purple-700 text-white":"bg-chaincademy-purple hover:bg-chaincademy-purple-dark text-white"}`,children:"Accelerate your Career ð"})]})]})})})}),e.jsx(I,{})]})};export{De as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.