80 lines
2.6 KiB
TypeScript
80 lines
2.6 KiB
TypeScript
'use client'
|
|
|
|
import { useState } from 'react'
|
|
import { motion } from 'framer-motion'
|
|
import { TypeAnimation } from 'react-type-animation'
|
|
import { Dialog, DialogPanel } from '@headlessui/react'
|
|
import { Bars3Icon, XMarkIcon, ChevronDoubleDownIcon } from '@heroicons/react/24/outline'
|
|
import { H1, PL } from '@/components/Texts'
|
|
|
|
const navigation = [
|
|
{ name: 'Product', href: '#' },
|
|
{ name: 'Features', href: '#' },
|
|
{ name: 'Marketplace', href: '#' },
|
|
{ name: 'Company', href: '#' },
|
|
]
|
|
|
|
export function HomeHero() {
|
|
const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
|
|
|
|
return (
|
|
<div className="relative h-screen -top-20">
|
|
<div className="absolute inset-0 -z-10">
|
|
<video
|
|
autoPlay
|
|
loop
|
|
muted
|
|
playsInline
|
|
className="absolute inset-0 w-full h-full object-cover"
|
|
>
|
|
<source src="/videos/mycelium2.mp4" type="video/mp4" />
|
|
</video>
|
|
<div className="absolute inset-0 bg-black/60" />
|
|
</div>
|
|
<div className="relative px-6 lg:px-8">
|
|
<div className="relative -top-15 mx-auto flex h-screen max-w-8xl items-center justify-center">
|
|
<div className="text-center">
|
|
<div className="max-w-5xl">
|
|
<H1 color="light">
|
|
<TypeAnimation
|
|
sequence={[
|
|
'Decentralized Autonomous Agentic Cloud.',
|
|
1000,
|
|
]}
|
|
wrapper="span"
|
|
speed={50}
|
|
repeat={0}
|
|
/>
|
|
</H1>
|
|
</div>
|
|
|
|
{/* Mobile-only PL */}
|
|
<motion.div
|
|
initial={{ opacity: 0 }}
|
|
animate={{ opacity: 1 }}
|
|
transition={{ duration: 1, delay: 1 }}
|
|
className="lg:hidden"
|
|
>
|
|
<PL className="mt-8 max-w-xl text-center text-gray-100" color="light">
|
|
Mycelium's advancements in Agentic infrastructure supports private, secure and autonomous Agents that connect, learn and grow with you.
|
|
</PL>
|
|
</motion.div>
|
|
</div>
|
|
|
|
{/* Desktop-only PL */}
|
|
<motion.div
|
|
initial={{ opacity: 0 }}
|
|
animate={{ opacity: 1 }}
|
|
transition={{ duration: 1, delay: 1 }}
|
|
className="hidden lg:block"
|
|
>
|
|
<PL className="absolute -bottom-8 left-0 max-w-xl text-left text-gray-100" color="light">
|
|
Mycelium's advancements in Agentic infrastructure supports private, secure and autonomous Agents that connect, learn and grow with you.
|
|
</PL>
|
|
</motion.div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|