forked from emre/www_projectmycelium_com
- Replaced inconsistent gray-900 and #171717 background colors with unified #121212 across all pages - Removed unused imports from multiple component files - Cleaned up trailing spaces in className attributes
122 lines
4.4 KiB
TypeScript
122 lines
4.4 KiB
TypeScript
import { useId } from 'react'
|
|
import { Container } from '@/components/Container'
|
|
import { Button } from '@/components/Button'
|
|
import phoneFrame from '../../images/phoneframe.png'
|
|
import { H3, P, CT } from "@/components/Texts";
|
|
|
|
function BackgroundIllustration(props: React.ComponentPropsWithoutRef<'div'>) {
|
|
let id = useId()
|
|
|
|
return (
|
|
<div {...props}>
|
|
<svg
|
|
viewBox="0 0 1026 1026"
|
|
fill="none"
|
|
aria-hidden="true"
|
|
className="absolute inset-0 h-full w-full animate-spin-slow"
|
|
>
|
|
<path
|
|
d="M1025 513c0 282.77-229.23 512-512 512S1 795.77 1 513 230.23 1 513 1s512 229.23 512 512Z"
|
|
stroke="#D4D4D4"
|
|
strokeOpacity="0.7"
|
|
/>
|
|
<path
|
|
d="M513 1025C230.23 1025 1 795.77 1 513"
|
|
stroke={`url(#${id}-gradient-1)`}
|
|
strokeLinecap="round"
|
|
/>
|
|
<defs>
|
|
<linearGradient
|
|
id={`${id}-gradient-1`}
|
|
x1="1"
|
|
y1="513"
|
|
x2="1"
|
|
y2="1025"
|
|
gradientUnits="userSpaceOnUse"
|
|
>
|
|
<stop stopColor="#06b6d4" />
|
|
<stop offset="1" stopColor="#06b6d4" stopOpacity="0" />
|
|
</linearGradient>
|
|
</defs>
|
|
</svg>
|
|
<svg
|
|
viewBox="0 0 1026 1026"
|
|
fill="none"
|
|
aria-hidden="true"
|
|
className="absolute inset-0 h-full w-full animate-spin-reverse-slower"
|
|
>
|
|
<path
|
|
d="M913 513c0 220.914-179.086 400-400 400S113 733.914 113 513s179.086-400 400-400 400 179.086 400 400Z"
|
|
stroke="#D4D4D4"
|
|
strokeOpacity="0.7"
|
|
/>
|
|
<path
|
|
d="M913 513c0 220.914-179.086 400-400 400"
|
|
stroke={`url(#${id}-gradient-2)`}
|
|
strokeLinecap="round"
|
|
/>
|
|
<defs>
|
|
<linearGradient
|
|
id={`${id}-gradient-2`}
|
|
x1="913"
|
|
y1="513"
|
|
x2="913"
|
|
y2="913"
|
|
gradientUnits="userSpaceOnUse"
|
|
>
|
|
<stop stopColor="#06b6d4" />
|
|
<stop offset="1" stopColor="#06b6d4" stopOpacity="0" />
|
|
</linearGradient>
|
|
</defs>
|
|
</svg>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export function Hero() {
|
|
return (
|
|
<div className="overflow-hidden pb-24 lg:py-12 mt-10 lg:pb-0 border border-t-0 border-b border-gray-100">
|
|
<Container>
|
|
<div className="flex flex-col-reverse gap-y-16 lg:grid lg:grid-cols-12 lg:gap-x-8 lg:gap-y-20 px-6 lg:px-8">
|
|
<div className="relative z-10 mx-auto max-w-2xl lg:col-span-7 lg:max-w-none lg:pt-6 xl:col-span-6">
|
|
<H3 className="mb-4">
|
|
Mycelium Network
|
|
</H3>
|
|
<CT className="mt-8 font-medium text-gray-600 ">
|
|
Encrypted Peer-to-Peer Connectivity Across the Globe
|
|
</CT>
|
|
<P className="mt-6 text-lg leading-tight text-gray-600 lg:text-xl lg:leading-normal">
|
|
Mycelium Network provides an unbreakable sovereign IPv6 mesh that connects people, nodes, and applications directly, with no central servers.
|
|
</P>
|
|
<P className="mt-6 text-lg leading-tight text-gray-600 lg:text-xl lg:leading-normal">
|
|
Works Alone. Works Together.
|
|
Mycelium Network can be used standalone, or together with Mycelium Cloud
|
|
for full-stack sovereignty.
|
|
</P>
|
|
<div className="mt-8 flex flex-wrap gap-x-6 gap-y-4">
|
|
<Button to="/download" variant="solid" color="cyan">
|
|
Get Mycelium Connector
|
|
</Button>
|
|
<Button to="/download" variant="outline" color="cyan">
|
|
Explore Docs
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
<div className="relative mt-0 lg:mt-10 lg:col-span-5 lg:row-span-2 xl:col-span-6">
|
|
<BackgroundIllustration className="absolute left-1/2 top-4 h-[1026px] w-[1026px] -translate-x-1/2 stroke-gray-300/70 sm:top-16 lg:-top-12 lg:ml-12" />
|
|
<div className="mx-auto h-[460px] max-w-[520px] mask-[linear-gradient(to_bottom,white_60%,transparent)] lg:absolute lg:-inset-x-10 lg:-top-24 lg:h-auto lg:pt-10 xl:-bottom-32">
|
|
<img
|
|
src={phoneFrame}
|
|
alt="Mycelium application demo"
|
|
className="mx-auto w-auto max-w-[366px]"
|
|
width={366}
|
|
height={729}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</Container>
|
|
</div>
|
|
)
|
|
}
|