/* OpenHero source by Cristian Olivera Chávez. MIT License Copyright (c) 2026 Cristian Olivera Chávez Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ "use client" import { useEffect, useRef, useState } from "react" import { Icon } from "@iconify/react" export default function Page() { const [activeSection, setActiveSection] = useState("home") const [isMobileOpen, setIsMobileOpen] = useState(false) const desktopMaskRef = useRef(null) const mobileMaskRef = useRef(null) const desktopNavRef = useRef(null) const mobileNavRef = useRef(null) useEffect(() => { const updateHoles = () => { const desktopEl = document.querySelector( `.nav-link[data-id="${activeSection}"]` ) as HTMLElement | null if (desktopNavRef.current && desktopEl && desktopMaskRef.current) { const cRect = desktopNavRef.current.getBoundingClientRect() const eRect = desktopEl.getBoundingClientRect() desktopMaskRef.current.style.setProperty( "-webkit-mask-size", `100% 100%, ${eRect.width}px ${eRect.height}px` ) desktopMaskRef.current.style.setProperty( "-webkit-mask-position", `0 0, ${eRect.left - cRect.left}px ${eRect.top - cRect.top}px` ) desktopMaskRef.current.style.setProperty( "mask-size", `100% 100%, ${eRect.width}px ${eRect.height}px` ) desktopMaskRef.current.style.setProperty( "mask-position", `0 0, ${eRect.left - cRect.left}px ${eRect.top - cRect.top}px` ) } const mobileEl = document.querySelector( `.mobile-link[data-id="${activeSection}"]` ) as HTMLElement | null if ( mobileNavRef.current && mobileEl && mobileMaskRef.current && isMobileOpen ) { const cRect = mobileNavRef.current.getBoundingClientRect() const eRect = mobileEl.getBoundingClientRect() mobileMaskRef.current.style.setProperty( "-webkit-mask-size", `100% 100%, ${eRect.width}px ${eRect.height}px` ) mobileMaskRef.current.style.setProperty( "-webkit-mask-position", `0 0, ${eRect.left - cRect.left}px ${eRect.top - cRect.top}px` ) mobileMaskRef.current.style.setProperty( "mask-size", `100% 100%, ${eRect.width}px ${eRect.height}px` ) mobileMaskRef.current.style.setProperty( "mask-position", `0 0, ${eRect.left - cRect.left}px ${eRect.top - cRect.top}px` ) } } const sections = document.querySelectorAll(".section-block") const sectionObserver = new IntersectionObserver( (entries) => { const visibleSection = entries.find((entry) => entry.isIntersecting) if (visibleSection) { setActiveSection(visibleSection.target.id) } }, { rootMargin: "-40% 0px -40% 0px", } ) sections.forEach((el) => sectionObserver.observe(el)) const revealObserver = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { entry.target.classList.add("active") } }) }, { threshold: 0.14, rootMargin: "0px 0px -8% 0px", } ) document .querySelectorAll(".reveal-on-scroll") .forEach((el) => revealObserver.observe(el)) const handleResize = () => updateHoles() const handleScroll = () => { document.body.style.setProperty( "--scroll", window.scrollY.toString() ) } window.addEventListener("resize", handleResize) window.addEventListener("scroll", handleScroll) setTimeout(updateHoles, 100) return () => { sectionObserver.disconnect() revealObserver.disconnect() window.removeEventListener("resize", handleResize) window.removeEventListener("scroll", handleScroll) } }, [activeSection, isMobileOpen]) const navLinks = [ { id: "home", label: "Home" }, { id: "participation", label: "Participation" }, { id: "rules", label: "Rules" }, { id: "projects", label: "Projects" }, ] return ( <>

Empowering the talent
of our region.

Develop your project and showcase your skills to the world in just 3 weeks.

Who can participate?

Join a community of builders, designers, and innovators.

{[ { icon: "solar:users-group-rounded-bold-duotone", title: "Teams of 2 to 4", text: "Gather your friends or find teammates in our community platform.", }, { icon: "solar:diploma-bold-duotone", title: "All Skill Levels", text: "Whether you're a freshman or a senior architecting systems.", }, { icon: "solar:rocket-bold-duotone", title: "Expert Mentorship", text: "Industry professionals will guide you throughout the event.", }, ].map((card) => (

{card.title}

{card.text}

))}

Event Timeline

Three weeks of intense building, learning, and shipping.

{[ { week: "Week 1", title: "Ideation & Team Formation", text: "Meet your peers, form a team, and brainstorm ideas.", }, { week: "Week 2", title: "Development Phase", text: "Turn caffeine into code and build your application.", }, { week: "Week 3", title: "Refinement & Pitch", text: "Polish your UI and prepare your pitch deck.", }, ].map((item) => (
{item.week}

{item.title}

{item.text}

))}

Previous Projects

Incredible ideas brought to life in record time.

View All Projects
{[ { title: "MedAssist AI", image: "/resources/openhero/supporting-media/294301ae1881ca058078.jpg", tags: ["AI", "Healthcare"], }, { title: "AgriPay Network", image: "/resources/openhero/supporting-media/094147ad46fdd0f27141.jpg", tags: ["Fintech", "Web3"], }, ].map((project) => (
{project.title}
{project.tags.map((tag) => ( {tag} ))}

{project.title}

))}
) }