/* 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, useState } from "react"; import { Icon } from "@iconify/react"; const navItems = [ { id: "home", label: "Home" }, { id: "participation", label: "Participation" }, { id: "rules", label: "Rules" }, { id: "projects", label: "Projects" }, ]; const participationCards = [ { icon: "solar:users-group-rounded-bold-duotone", title: "Teams of 2 to 4", text: "Gather your friends or find teammates in our community platform. Collaboration is key to building an impactful project.", }, { icon: "solar:diploma-bold-duotone", title: "All Skill Levels", text: "Whether you're a freshman writing your first line of code or a senior architecting complex systems, there's a place for you here.", }, { icon: "solar:rocket-bold-duotone", title: "Expert Mentorship", text: "Get stuck? Don't worry. Industry professionals will be available throughout the event to guide you and review your code.", }, ]; const timeline = [ { week: "Week 1", title: "Ideation & Team Formation", text: "Meet your peers, form a team, and brainstorm ideas. Submit your project proposal and get it approved by the mentors.", side: "left", accent: true, }, { week: "Week 2", title: "Development Phase", text: "Turn caffeine into code. Build the core features of your application, attend technical workshops, and consult with mentors.", side: "right", accent: false, }, { week: "Week 3", title: "Refinement & Pitch", text: "Polish your UI, fix bugs, and prepare your pitch deck. Present your final product to the judges on Demo Day.", side: "left", accent: false, }, ]; const projects = [ { image: "/resources/openhero/supporting-media/294301ae1881ca058078.jpg", alt: "Project 1", tags: ["AI", "Healthcare"], title: "MedAssist AI", text: "An intelligent diagnostic assistant helping rural doctors analyze symptoms and recommend preliminary treatments using machine learning.", }, { image: "/resources/openhero/supporting-media/094147ad46fdd0f27141.jpg", alt: "Project 2", tags: ["Fintech", "Web3"], title: "AgriPay Network", text: "A decentralized payment infrastructure designed specifically for local farmers to secure direct transactions without intermediaries.", }, ]; export default function Page() { const [activeSection, setActiveSection] = useState("home"); const [isMobileOpen, setIsMobileOpen] = useState(false); const updateHighlight = () => { if (typeof window === "undefined") return; const desktopContainer = document.querySelector(".desktop-nav"); const desktopEl = document.querySelector( `.nav-link[data-id="${activeSection}"]` ); const desktopMask = document.getElementById("desktopMaskEl"); if (desktopContainer && desktopEl && desktopMask) { const cRect = desktopContainer.getBoundingClientRect(); const eRect = desktopEl.getBoundingClientRect(); desktopMask.style.left = `${eRect.left - cRect.left}px`; desktopMask.style.top = `${eRect.top - cRect.top}px`; desktopMask.style.width = `${eRect.width}px`; desktopMask.style.height = `${eRect.height}px`; desktopMask.style.borderRadius = "9999px"; desktopMask.style.opacity = "1"; } const mobileContainer = document.querySelector(".mobile-nav"); const mobileEl = document.querySelector( `.mobile-link[data-id="${activeSection}"]` ); const mobileMask = document.getElementById("mobileMaskEl"); if (mobileContainer && mobileEl && mobileMask && isMobileOpen) { const cRect = mobileContainer.getBoundingClientRect(); const eRect = mobileEl.getBoundingClientRect(); mobileMask.style.left = `${eRect.left - cRect.left}px`; mobileMask.style.top = `${eRect.top - cRect.top}px`; mobileMask.style.width = `${eRect.width}px`; mobileMask.style.height = `${eRect.height}px`; mobileMask.style.borderRadius = "14px"; mobileMask.style.opacity = "1"; } }; useEffect(() => { const sectionObserver = new IntersectionObserver( (entries) => { const visibleSection = entries.find((entry) => entry.isIntersecting); if (visibleSection?.target?.id) { setActiveSection(visibleSection.target.id); } }, { rootMargin: "-40% 0px -40% 0px" } ); 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(".section-block").forEach((el) => { sectionObserver.observe(el); }); document.querySelectorAll(".reveal-on-scroll").forEach((el) => { revealObserver.observe(el); }); const handleScroll = () => { document.body.style.setProperty("--scroll", String(window.scrollY)); }; window.addEventListener("scroll", handleScroll); window.addEventListener("resize", updateHighlight); handleScroll(); setTimeout(updateHighlight, 100); return () => { sectionObserver.disconnect(); revealObserver.disconnect(); window.removeEventListener("scroll", handleScroll); window.removeEventListener("resize", updateHighlight); }; }, []); useEffect(() => { updateHighlight(); }, [activeSection, isMobileOpen]); 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. Build the future, regardless of your current skill level.

{participationCards.map((card, index) => (

{card.title}

{card.text}

))}

Event Timeline

Three weeks of intense building, learning, and shipping. Here is how the event is structured.

{timeline.map((item, index) => (
{item.week}

{item.title}

{item.text}

))}

Previous Projects

Take a look at what teams have built in past editions. Incredible ideas brought to life in record time.

View All Projects
{projects.map((project, index) => (
{project.alt}
{project.tags.map((tag) => ( {tag} ))}

{project.title}

{project.text}

))}
); }