dress/resources/js/pages/homepage.tsx

75 lines
4.2 KiB
TypeScript

import { Head, Link, usePage } from '@inertiajs/react';
import { dashboard, login } from '@/routes';
export default function Homepage() {
const { auth } = usePage().props as any;
return (
<>
<Head title="Welcome to VN Group" />
<div className="relative min-h-screen overflow-hidden bg-[#0a0a0a] font-sans text-white selection:bg-orange-500/30">
{/* Background Blobs */}
<div className="absolute top-[-10%] left-[-10%] h-[500px] w-[500px] rounded-full bg-orange-600/20 blur-[120px]"></div>
<div className="absolute bottom-[-10%] right-[-10%] h-[500px] w-[500px] rounded-full bg-blue-600/10 blur-[120px]"></div>
<div className="relative z-10 flex min-h-screen flex-col">
{/* Header */}
<header className="flex items-center justify-between px-8 py-6 lg:px-12">
<div className="flex items-center gap-2">
<div className="h-8 w-8 rounded-lg bg-gradient-to-br from-orange-500 to-red-600 shadow-lg shadow-orange-500/20"></div>
<span className="text-xl font-bold tracking-tight">VN Group</span>
</div>
<nav className="flex items-center gap-6">
{auth.user ? (
<Link
href={dashboard()}
className="rounded-full bg-white/5 px-6 py-2 text-sm font-medium transition-all hover:bg-white/10 hover:ring-1 hover:ring-white/20"
>
Dashboard
</Link>
) : (
<Link
href={login()}
className="rounded-full bg-orange-600 px-6 py-2 text-sm font-medium transition-all hover:bg-orange-500 hover:shadow-lg hover:shadow-orange-600/20"
>
Login
</Link>
)}
</nav>
</header>
{/* Main Content */}
<main className="flex flex-1 flex-col items-center justify-center px-6 text-center">
<div className="animate-in fade-in slide-in-from-bottom-8 duration-1000">
<h2 className="mb-2 text-sm font-semibold uppercase tracking-[0.3em] text-orange-500">
Premium Experience
</h2>
<h1 className="mb-6 bg-gradient-to-b from-white to-white/60 bg-clip-text text-6xl font-extrabold tracking-tight text-transparent lg:text-8xl">
Hello World.
</h1>
<p className="mx-auto max-w-2xl text-lg leading-relaxed text-zinc-400">
Welcome to the next generation of our platform. We've built something beautiful
for you to explore. Stay tuned for more updates.
</p>
<div className="mt-10 flex items-center justify-center gap-4">
<button className="group relative rounded-full bg-white px-8 py-3 text-sm font-bold text-black transition-all hover:scale-105 active:scale-95">
Get Started
</button>
<button className="rounded-full border border-white/10 bg-white/5 px-8 py-3 text-sm font-bold transition-all hover:bg-white/10">
Learn More
</button>
</div>
</div>
</main>
{/* Footer */}
<footer className="px-8 py-10 text-center text-sm text-zinc-600 lg:px-12">
<p>© {new Date().getFullYear()} VN Group. All rights reserved.</p>
</footer>
</div>
</div>
</>
);
}