import{jsxs as t,Fragment as s,jsx as e}from"react/jsx-runtime";import{usePage as d,Head as c,Link as r}from"@inertiajs/react";import{useState as h,useEffect as u}from"react";function x(){const{auth:l,heroBackgroundUrl:n,heroHeight:m}=d().props,[o,a]=h(!1);return u(()=>{const i=()=>{a(window.scrollY>10)};return window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)},[]),t(s,{children:[t(c,{title:"Welcome",children:[e("link",{rel:"preconnect",href:"https://fonts.bunny.net"}),e("link",{href:"https://fonts.bunny.net/css?family=instrument-sans:400,500,600",rel:"stylesheet"})]}),t("div",{className:"relative min-h-screen text-gray-800 dark:text-gray-100",children:[n?n.endsWith(".mp4")?e("div",{className:"absolute inset-0",children:e("video",{src:n,className:"h-full w-full object-cover",autoPlay:!0,loop:!0,muted:!0,playsInline:!0})}):e("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${n})`}}):e("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-50 to-blue-100 dark:from-gray-900 dark:to-gray-800"}),e("div",{className:"absolute inset-0 bg-black/40"}),e("nav",{className:`fixed top-0 right-0 left-0 z-50 px-6 py-4 transition-all duration-300 ${o?"bg-white/70 shadow-md backdrop-blur-md dark:bg-gray-900/70":"bg-transparent"}`,children:t("div",{className:"container mx-auto flex items-center justify-between",children:[e(r,{href:"/",className:`text-2xl font-bold transition ${o?"text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300":"text-white drop-shadow-md hover:text-white/90"}`,children:"YourLogo"}),t("div",{className:"hidden items-center space-x-6 md:flex",children:[e(r,{href:"#features",className:`text-sm font-medium transition ${o?"text-gray-700 hover:text-blue-600 dark:text-gray-300 dark:hover:text-blue-400":"text-white/90 drop-shadow-sm hover:text-white"}`,children:"Features"}),e(r,{href:"#contact",className:`text-sm font-medium transition ${o?"text-gray-700 hover:text-blue-600 dark:text-gray-300 dark:hover:text-blue-400":"text-white/90 drop-shadow-sm hover:text-white"}`,children:"Contact"}),l.user?e(r,{href:route("dashboard"),className:"inline-block rounded-lg bg-blue-600 px-4 py-2 text-sm font-medium text-white shadow-md transition hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:outline-none",children:"Dashboard"}):t(s,{children:[e(r,{href:route("login"),className:`relative inline-block text-sm font-medium transition duration-300 ease-in-out ${o?"text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300":"text-white drop-shadow-sm hover:text-white/90"}`,children:"Log in"}),e(r,{href:route("register"),className:"inline-block rounded-lg bg-blue-600 px-4 py-2 text-sm font-medium text-white shadow-md transition hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:outline-none",children:"Sign up"})]})]}),e("div",{className:"md:hidden",children:e("button",{className:`focus:outline-none ${o?"text-gray-700 dark:text-gray-300":"text-white drop-shadow-sm"}`,"aria-label":"Open Menu",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",className:"h-6 w-6",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16m-7 6h7"})})})})]})}),t("main",{className:"relative z-10 flex min-h-screen flex-col items-center justify-center px-6 pt-20 text-center",children:[t("header",{className:"mb-10 w-full max-w-4xl",children:[e("h1",{className:"text-4xl font-extrabold tracking-tight text-white drop-shadow-lg sm:text-5xl",children:"Welcome to Our Platform"}),e("p",{className:"mt-4 text-lg text-white/90 drop-shadow-md",children:"Discover the best way to manage your tasks and collaborate with your team."})]}),e("nav",{className:"flex items-center justify-center gap-6",children:l.user?e(r,{href:route("dashboard"),className:"inline-block rounded-lg bg-blue-600 px-6 py-3 text-sm font-medium text-white shadow-lg transition hover:scale-105 hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:outline-none",children:"Go to Dashboard"}):t(s,{children:[e(r,{href:route("login"),className:"inline-block rounded-lg border-2 border-white/80 bg-white/10 px-6 py-3 text-sm font-medium text-white shadow-lg backdrop-blur-sm transition hover:scale-105 hover:bg-white/20 focus:ring-2 focus:ring-white focus:ring-offset-2 focus:outline-none",children:"Log in"}),e(r,{href:route("register"),className:"inline-block rounded-lg bg-blue-600 px-6 py-3 text-sm font-medium text-white shadow-lg transition hover:scale-105 hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:outline-none",children:"Sign up"})]})}),e("footer",{className:"mt-12 text-center text-sm text-white/70",children:t("p",{children:["© ",new Date().getFullYear()," Your Company. All rights reserved."]})})]})]})]})}export{x as default};
