Compare commits
63 Commits
developmen
...
cf32cd081c
| Author | SHA1 | Date | |
|---|---|---|---|
| cf32cd081c | |||
| 1950342b7a | |||
| d1fc11ce80 | |||
| 48954151c9 | |||
| 61e368e27e | |||
| d8524ef181 | |||
| c44d9158f2 | |||
| 359afc3360 | |||
| 96a17a668a | |||
| c93974ea3e | |||
| f1f8f50871 | |||
| e4b2d66a76 | |||
| b208fe7f2a | |||
| 7b80ab84c9 | |||
| aa6f475050 | |||
| 5c2fcecbd9 | |||
| e5cf6ee362 | |||
| e9c1fd795e | |||
| be95ea97c4 | |||
| 9c47ea39fc | |||
| 7a0675a408 | |||
| 37d4371288 | |||
| dfe71dd4eb | |||
| eba1bb7047 | |||
| 0d9f357881 | |||
| aab7e66f29 | |||
| 8276ede9fd | |||
| d16d4e02e0 | |||
| 2865b1e1fd | |||
| b723f889cb | |||
| 2752c690d6 | |||
| a7dd803da2 | |||
| 22e2e4b80c | |||
| 5ab909bd12 | |||
| 61cbaae7e0 | |||
| f46482e0f4 | |||
| ee6b5458de | |||
| 100cae988c | |||
| 716915b19e | |||
| f04a7eb3cf | |||
| de89539de1 | |||
| 1851c2d6fb | |||
| 451c1f5c56 | |||
| 0b6bcfedd0 | |||
| 9bccc89309 | |||
| 73abd593e3 | |||
| 1f267b057d | |||
| 2b5f20f1e9 | |||
| aca13e275b | |||
| e8c424539e | |||
| 912ea4436a | |||
| 53fd05e6b7 | |||
| 5a023651b5 | |||
| b9ba2bab06 | |||
| 852d9bfc3e | |||
| cd3ce54a40 | |||
| 6f4f451144 | |||
| 4b6c8d8327 | |||
| a61267944d | |||
| 46d02fca47 | |||
| 6779218da6 | |||
| 04b94367a9 | |||
| cdd6e3104b |
11
package-lock.json
generated
@@ -28,6 +28,7 @@
|
|||||||
"framer-motion": "^10.18.0",
|
"framer-motion": "^10.18.0",
|
||||||
"lucide-react": "^0.544.0",
|
"lucide-react": "^0.544.0",
|
||||||
"motion": "^12.23.24",
|
"motion": "^12.23.24",
|
||||||
|
"next-themes": "^0.4.6",
|
||||||
"popmotion": "^11.0.5",
|
"popmotion": "^11.0.5",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-countup": "^6.5.3",
|
"react-countup": "^6.5.3",
|
||||||
@@ -9417,6 +9418,16 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
|
"node_modules/next-themes": {
|
||||||
|
"version": "0.4.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz",
|
||||||
|
"integrity": "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc",
|
||||||
|
"react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/node-releases": {
|
"node_modules/node-releases": {
|
||||||
"version": "2.0.26",
|
"version": "2.0.26",
|
||||||
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.26.tgz",
|
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.26.tgz",
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
"framer-motion": "^10.18.0",
|
"framer-motion": "^10.18.0",
|
||||||
"lucide-react": "^0.544.0",
|
"lucide-react": "^0.544.0",
|
||||||
"motion": "^12.23.24",
|
"motion": "^12.23.24",
|
||||||
|
"next-themes": "^0.4.6",
|
||||||
"popmotion": "^11.0.5",
|
"popmotion": "^11.0.5",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-countup": "^6.5.3",
|
"react-countup": "^6.5.3",
|
||||||
|
|||||||
BIN
public/images/6b080b431e628e15126de0893db49e1a.webp
Normal file
|
After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 497 KiB |
|
Before Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
BIN
public/images/ainode.png
Normal file
|
After Width: | Height: | Size: 510 KiB |
BIN
public/images/audience/1.jpg
Normal file
|
After Width: | Height: | Size: 306 KiB |
BIN
public/images/audience/2.jpg
Normal file
|
After Width: | Height: | Size: 205 KiB |
BIN
public/images/audience/3.jpg
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
public/images/audience/4.jpg
Normal file
|
After Width: | Height: | Size: 147 KiB |
BIN
public/images/audience/5.jpg
Normal file
|
After Width: | Height: | Size: 128 KiB |
BIN
public/images/audience/6.jpg
Normal file
|
After Width: | Height: | Size: 234 KiB |
BIN
public/images/audience/7.jpg
Normal file
|
After Width: | Height: | Size: 152 KiB |
BIN
public/images/audience/8.jpg
Normal file
|
After Width: | Height: | Size: 228 KiB |
BIN
public/images/audiences/1.jpg
Normal file
|
After Width: | Height: | Size: 229 KiB |
BIN
public/images/audiences/2.jpg
Normal file
|
After Width: | Height: | Size: 164 KiB |
BIN
public/images/audiences/3.jpg
Normal file
|
After Width: | Height: | Size: 147 KiB |
BIN
public/images/audiences/4.jpg
Normal file
|
After Width: | Height: | Size: 117 KiB |
BIN
public/images/audiences/5.jpg
Normal file
|
After Width: | Height: | Size: 102 KiB |
BIN
public/images/audiences/6.jpg
Normal file
|
After Width: | Height: | Size: 184 KiB |
BIN
public/images/audiences/7.jpg
Normal file
|
After Width: | Height: | Size: 124 KiB |
BIN
public/images/audiences/8.jpg
Normal file
|
After Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 431 KiB |
BIN
public/images/bento-03-mobile-friendly.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
public/images/bento-cloud2.png
Normal file
|
After Width: | Height: | Size: 208 KiB |
BIN
public/images/bento-network.jpg
Normal file
|
After Width: | Height: | Size: 259 KiB |
|
Before Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 223 KiB |
|
Before Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 878 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 938 KiB |
|
Before Width: | Height: | Size: 2.0 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 316 KiB |
|
Before Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.3 MiB |
BIN
public/images/dark-bento-01-integrations.png
Normal file
|
After Width: | Height: | Size: 355 KiB |
|
Before Width: | Height: | Size: 327 KiB |
|
Before Width: | Height: | Size: 140 KiB |
BIN
public/images/edgenode.png
Normal file
|
After Width: | Height: | Size: 796 KiB |
BIN
public/images/encrypted.png
Normal file
|
After Width: | Height: | Size: 888 KiB |
BIN
public/images/filesystem.png
Normal file
|
After Width: | Height: | Size: 910 KiB |
4
public/images/github.svg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" aria-label="GitHub" viewBox="0 0 512 512" id="github">
|
||||||
|
<rect width="512" height="512" fill="#1B1817" rx="15%"></rect>
|
||||||
|
<path fill="#fff" d="M335 499c14 0 12 17 12 17H165s-2-17 12-17c13 0 16-6 16-12l-1-50c-71 16-86-28-86-28-12-30-28-37-28-37-24-16 1-16 1-16 26 2 40 26 40 26 22 39 59 28 74 22 2-17 9-28 16-35-57-6-116-28-116-126 0-28 10-51 26-69-3-6-11-32 3-67 0 0 21-7 70 26 42-12 86-12 128 0 49-33 70-26 70-26 14 35 6 61 3 67 16 18 26 41 26 69 0 98-60 120-117 126 10 8 18 24 18 48l-1 70c0 6 3 12 16 12z"></path>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 563 B |
BIN
public/images/ipfs.png
Normal file
|
After Width: | Height: | Size: 834 KiB |
BIN
public/images/pods.png
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
BIN
public/images/podsimg.png
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
public/images/s3.png
Normal file
|
After Width: | Height: | Size: 1007 KiB |
@@ -14,6 +14,8 @@
|
|||||||
.logo:hover {
|
.logo:hover {
|
||||||
filter: drop-shadow(0 0 2em #646cffaa);
|
filter: drop-shadow(0 0 2em #646cffaa);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.logo.react:hover {
|
.logo.react:hover {
|
||||||
filter: drop-shadow(0 0 2em #61dafbaa);
|
filter: drop-shadow(0 0 2em #61dafbaa);
|
||||||
}
|
}
|
||||||
|
|||||||
10
src/App.tsx
@@ -1,4 +1,4 @@
|
|||||||
import { BrowserRouter, Routes, Route } from 'react-router-dom';
|
import { HashRouter, Routes, Route } from 'react-router-dom';
|
||||||
import { Layout } from './components/Layout';
|
import { Layout } from './components/Layout';
|
||||||
import { lazy, Suspense } from 'react';
|
import { lazy, Suspense } from 'react';
|
||||||
|
|
||||||
@@ -10,10 +10,12 @@ const DownloadPage = lazy(() => import('./pages/download/DownloadPage'));
|
|||||||
const ComputePage = lazy(() => import('./pages/compute/ComputePage'));
|
const ComputePage = lazy(() => import('./pages/compute/ComputePage'));
|
||||||
const StoragePage = lazy(() => import('./pages/storage/StoragePage'));
|
const StoragePage = lazy(() => import('./pages/storage/StoragePage'));
|
||||||
const GpuPage = lazy(() => import('./pages/gpu/GpuPage'));
|
const GpuPage = lazy(() => import('./pages/gpu/GpuPage'));
|
||||||
|
const PodsPage = lazy(() => import('./pages/pods/PodsPage'));
|
||||||
|
const NodePage = lazy(() => import('./pages/node/NodePage'));
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<BrowserRouter>
|
<HashRouter>
|
||||||
<Suspense fallback={<div>Loading...</div>}>
|
<Suspense fallback={<div>Loading...</div>}>
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<Layout />}>
|
<Route path="/" element={<Layout />}>
|
||||||
@@ -25,10 +27,12 @@ function App() {
|
|||||||
<Route path="compute" element={<ComputePage />} />
|
<Route path="compute" element={<ComputePage />} />
|
||||||
<Route path="storage" element={<StoragePage />} />
|
<Route path="storage" element={<StoragePage />} />
|
||||||
<Route path="gpu" element={<GpuPage />} />
|
<Route path="gpu" element={<GpuPage />} />
|
||||||
|
<Route path="pods" element={<PodsPage />} />
|
||||||
|
<Route path="nodes" element={<NodePage />} />
|
||||||
</Route>
|
</Route>
|
||||||
</Routes>
|
</Routes>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</BrowserRouter>
|
</HashRouter>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,30 +8,33 @@ export function Footer() {
|
|||||||
<div className="flex flex-col items-start justify-between gap-y-12 pt-16 pb-6 lg:flex-row lg:items-center lg:py-8">
|
<div className="flex flex-col items-start justify-between gap-y-12 pt-16 pb-6 lg:flex-row lg:items-center lg:py-8">
|
||||||
<div>
|
<div>
|
||||||
<div className="flex items-center text-gray-900">
|
<div className="flex items-center text-gray-900">
|
||||||
<img src="/src/images/logomark.svg" alt="Mycelium Logomark" className="h-15 w-15 flex-none" />
|
<img src="/images/logomark.svg" alt="Mycelium Logomark" className="h-15 w-15 flex-none" />
|
||||||
<div className="ml-4">
|
<div className="ml-4">
|
||||||
<p className="text-base font-semibold">Project Mycelium</p>
|
<p className="text-base font-semibold">Project Mycelium</p>
|
||||||
<p className="mt-1 text-sm">Unleash the Power of Decentralization</p>
|
<p className="mt-1 text-sm">Unleash the Power of Decentralization</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<nav className="mt-10 flex gap-8">
|
<nav className="mt-10 flex gap-8">
|
||||||
<Link to="/" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
|
<Link to="/network" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
|
||||||
Home
|
Network
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/cloud" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
|
<Link to="/cloud" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
|
||||||
Cloud
|
Cloud
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/network" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
|
<Link to="/pods" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
|
||||||
Network
|
Pods
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/agents" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
|
<Link to="/agents" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
|
||||||
Agents
|
Agents
|
||||||
</Link>
|
</Link>
|
||||||
|
<Link to="/node" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
|
||||||
|
Node
|
||||||
|
</Link>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div className="group relative -mx-4 flex items-center self-stretch p-4 transition-colors hover:bg-gray-100 sm:self-auto sm:rounded-2xl lg:mx-0 lg:self-auto lg:p-6">
|
<div className="group relative -mx-4 flex items-center self-stretch p-4 transition-colors hover:bg-gray-100 sm:self-auto sm:rounded-2xl lg:mx-0 lg:self-auto lg:p-6">
|
||||||
<div className="relative flex h-16 w-16 flex-none items-center justify-center">
|
<div className="relative flex h-16 w-16 flex-none items-center justify-center">
|
||||||
<img src="/src/images/github.svg" alt="GitHub" className="h-16 w-16" />
|
<img src="/images/github.svg" alt="GitHub" className="h-16 w-16" />
|
||||||
</div>
|
</div>
|
||||||
<div className="ml-4 lg:w-72">
|
<div className="ml-4 lg:w-72">
|
||||||
<p className="text-base font-semibold text-gray-900">
|
<p className="text-base font-semibold text-gray-900">
|
||||||
@@ -46,7 +49,7 @@ export function Footer() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col items-center border-t border-gray-200 pt-8 pb-12 md:flex-row-reverse md:justify-between md:pt-6">
|
<div className="flex flex-col items-center border-t border-gray-100 pt-8 pb-12 md:flex-row-reverse md:justify-between md:pt-6">
|
||||||
<p className="mt-6 text-sm text-gray-500 md:mt-0">
|
<p className="mt-6 text-sm text-gray-500 md:mt-0">
|
||||||
© Copyright{' '}
|
© Copyright{' '}
|
||||||
<a href="https://www.threefold.io" target="_blank" rel="noopener noreferrer" className="hover:text-cyan-500 transition-colors">
|
<a href="https://www.threefold.io" target="_blank" rel="noopener noreferrer" className="hover:text-cyan-500 transition-colors">
|
||||||
|
|||||||
@@ -1,63 +1,53 @@
|
|||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { Link, useLocation } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
import { Dropdown } from './ui/Dropdown'
|
|
||||||
import { ChevronDownIcon } from '@heroicons/react/20/solid'
|
|
||||||
import { Container } from './Container'
|
import { Container } from './Container'
|
||||||
import { Button } from './Button'
|
import { Button } from './Button'
|
||||||
import pmyceliumLogo from '../images/logos/logo_1.png'
|
import pmyceliumLogo from '../images/logos/logo_1.png'
|
||||||
import { Dialog } from '@headlessui/react'
|
import { Dialog } from '@headlessui/react'
|
||||||
import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'
|
import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'
|
||||||
|
|
||||||
const cloudNavItems = [
|
|
||||||
{ name: 'Cloud', href: '/cloud' },
|
|
||||||
{ name: 'Compute', href: '/compute' },
|
|
||||||
{ name: 'Storage', href: '/storage' },
|
|
||||||
{ name: 'GPU', href: '/gpu' },
|
|
||||||
]
|
|
||||||
|
|
||||||
export function Header() {
|
export function Header() {
|
||||||
const location = useLocation()
|
|
||||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
|
const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
|
||||||
|
|
||||||
const getCurrentPageName = () => {
|
|
||||||
const currentPath = location.pathname;
|
|
||||||
if (currentPath.startsWith('/compute')) return 'Compute';
|
|
||||||
if (currentPath.startsWith('/storage')) return 'Storage';
|
|
||||||
if (currentPath.startsWith('/gpu')) return 'GPU';
|
|
||||||
if (currentPath.startsWith('/cloud')) return 'Cloud';
|
|
||||||
return 'Cloud';
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className="bg-white">
|
<header className="bg-white">
|
||||||
<nav className="border-b border-gray-200">
|
<nav className="border-b border-gray-100">
|
||||||
<Container className="flex bg-transparent justify-between py-4">
|
<Container className="flex bg-transparent justify-between py-4">
|
||||||
<div className="relative z-10 flex items-center gap-16">
|
<div className="relative z-10 flex items-center gap-16">
|
||||||
<Link to="/" aria-label="Home">
|
<Link to="/" aria-label="Home">
|
||||||
<img src={pmyceliumLogo} alt="Mycelium" className="h-8 w-auto" />
|
<img src={pmyceliumLogo} alt="Mycelium" className="h-8 w-auto" />
|
||||||
</Link>
|
</Link>
|
||||||
<div className="hidden lg:flex lg:gap-10">
|
<div className="hidden lg:flex lg:gap-10">
|
||||||
<Dropdown
|
|
||||||
buttonContent={
|
|
||||||
<>
|
|
||||||
{getCurrentPageName()}
|
|
||||||
<ChevronDownIcon className="h-5 w-5" aria-hidden="true" />
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
items={cloudNavItems}
|
|
||||||
/>
|
|
||||||
<Link
|
<Link
|
||||||
to="/network"
|
to="/network"
|
||||||
className="text-base/7 tracking-tight text-gray-700 hover:text-cyan-500 transition-colors"
|
className="text-base/7 tracking-tight text-gray-700 hover:text-cyan-500 transition-colors"
|
||||||
>
|
>
|
||||||
Network
|
Network
|
||||||
</Link>
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/cloud"
|
||||||
|
className="text-base/7 tracking-tight text-gray-700 hover:text-cyan-500 transition-colors"
|
||||||
|
>
|
||||||
|
Cloud
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/pods"
|
||||||
|
className="text-base/7 tracking-tight text-gray-700 hover:text-cyan-500 transition-colors"
|
||||||
|
>
|
||||||
|
Pods
|
||||||
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
to="/agents"
|
to="/agents"
|
||||||
className="text-base/7 tracking-tight text-gray-700 hover:text-cyan-500 transition-colors"
|
className="text-base/7 tracking-tight text-gray-700 hover:text-cyan-500 transition-colors"
|
||||||
>
|
>
|
||||||
Agents
|
Agents
|
||||||
</Link>
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/node"
|
||||||
|
className="text-base/7 tracking-tight text-gray-700 hover:text-cyan-500 transition-colors"
|
||||||
|
>
|
||||||
|
Node
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-6">
|
<div className="flex items-center gap-6">
|
||||||
@@ -69,7 +59,7 @@ export function Header() {
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
Start Deployment
|
Deploy Now
|
||||||
</Button>
|
</Button>
|
||||||
<Button to="/download" variant="solid" color="cyan">
|
<Button to="/download" variant="solid" color="cyan">
|
||||||
Get Mycelium Connector
|
Get Mycelium Connector
|
||||||
@@ -90,7 +80,7 @@ export function Header() {
|
|||||||
</nav>
|
</nav>
|
||||||
<Dialog as="div" className="lg:hidden" open={mobileMenuOpen} onClose={setMobileMenuOpen}>
|
<Dialog as="div" className="lg:hidden" open={mobileMenuOpen} onClose={setMobileMenuOpen}>
|
||||||
<div className="fixed inset-0 z-10" />
|
<div className="fixed inset-0 z-10" />
|
||||||
<Dialog.Panel className="fixed inset-y-0 right-0 z-10 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10">
|
<Dialog.Panel className="fixed inset-y-0 right-0 z-10 w-full overflow-y-auto lg:bg-transparent lg:bg-transparent bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<Link to="#" className="-m-1.5 p-1.5">
|
<Link to="#" className="-m-1.5 p-1.5">
|
||||||
<span className="sr-only">Mycelium</span>
|
<span className="sr-only">Mycelium</span>
|
||||||
@@ -112,27 +102,41 @@ export function Header() {
|
|||||||
<div className="mt-6 flow-root">
|
<div className="mt-6 flow-root">
|
||||||
<div className="-my-6 divide-y divide-gray-500/10">
|
<div className="-my-6 divide-y divide-gray-500/10">
|
||||||
<div className="space-y-2 py-6">
|
<div className="space-y-2 py-6">
|
||||||
{cloudNavItems.map((item) => (
|
|
||||||
<Link
|
|
||||||
key={item.name}
|
|
||||||
to={item.href}
|
|
||||||
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
|
||||||
>
|
|
||||||
{item.name}
|
|
||||||
</Link>
|
|
||||||
))}
|
|
||||||
<Link
|
<Link
|
||||||
to="/network"
|
to="/network"
|
||||||
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
>
|
>
|
||||||
Network
|
Network
|
||||||
</Link>
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/cloud"
|
||||||
|
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
Cloud
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/pods"
|
||||||
|
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
Pods
|
||||||
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
to="/agents"
|
to="/agents"
|
||||||
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
>
|
>
|
||||||
Agents
|
Agents
|
||||||
</Link>
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/node"
|
||||||
|
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-50"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
Node
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="py-6">
|
<div className="py-6">
|
||||||
<Button
|
<Button
|
||||||
@@ -142,10 +146,11 @@ export function Header() {
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="w-full"
|
className="w-full"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
>
|
>
|
||||||
Start Deployment
|
Start Deployment
|
||||||
</Button>
|
</Button>
|
||||||
<Button to="/download" variant="solid" color="cyan" className="mt-4 w-full">
|
<Button to="/download" variant="solid" color="cyan" className="mt-4 w-full" onClick={() => setMobileMenuOpen(false)}>
|
||||||
Get Mycelium Connector
|
Get Mycelium Connector
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
163
src/components/HeaderDark.tsx
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
import { useState } from 'react'
|
||||||
|
import { Link } from 'react-router-dom'
|
||||||
|
import { Container } from './Container'
|
||||||
|
import { Button } from './Button'
|
||||||
|
import pmyceliumLogo from '../images/logos/logo_1.png'
|
||||||
|
import { Dialog } from '@headlessui/react'
|
||||||
|
import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'
|
||||||
|
|
||||||
|
export function HeaderDark() {
|
||||||
|
const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<header className="bg-[#111111]">
|
||||||
|
<nav className="border-b border-gray-800">
|
||||||
|
<Container className="flex bg-transparent justify-between py-4">
|
||||||
|
<div className="relative z-10 flex items-center gap-16">
|
||||||
|
<Link to="/" aria-label="Home">
|
||||||
|
<img src={pmyceliumLogo} alt="Mycelium" className="h-8 w-auto" />
|
||||||
|
</Link>
|
||||||
|
<div className="hidden lg:flex lg:gap-10">
|
||||||
|
<Link
|
||||||
|
to="/network"
|
||||||
|
className="text-base/7 tracking-tight text-gray-300 hover:text-cyan-400 transition-colors"
|
||||||
|
>
|
||||||
|
Network
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/cloud"
|
||||||
|
className="text-base/7 tracking-tight text-gray-300 hover:text-cyan-400 transition-colors"
|
||||||
|
>
|
||||||
|
Cloud
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/pods"
|
||||||
|
className="text-base/7 tracking-tight text-gray-300 hover:text-cyan-400 transition-colors"
|
||||||
|
>
|
||||||
|
Pods
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/agents"
|
||||||
|
className="text-base/7 tracking-tight text-gray-300 hover:text-cyan-400 transition-colors"
|
||||||
|
>
|
||||||
|
Agents
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/node"
|
||||||
|
className="text-base/7 tracking-tight text-gray-300 hover:text-cyan-400 transition-colors"
|
||||||
|
>
|
||||||
|
Node
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="flex items-center gap-6">
|
||||||
|
<div className="flex items-center gap-6 max-lg:hidden">
|
||||||
|
<Button
|
||||||
|
to="https://myceliumcloud.tf"
|
||||||
|
variant="outline"
|
||||||
|
as="a"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
Deploy Now
|
||||||
|
</Button>
|
||||||
|
<Button to="/download" variant="solid" color="cyan">
|
||||||
|
Get Mycelium Connector
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
<div className="lg:hidden">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-300 hover:text-cyan-400 transition-colors"
|
||||||
|
onClick={() => setMobileMenuOpen(true)}
|
||||||
|
>
|
||||||
|
<span className="sr-only">Open main menu</span>
|
||||||
|
<Bars3Icon className="h-6 w-6" aria-hidden="true" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Container>
|
||||||
|
</nav>
|
||||||
|
<Dialog as="div" className="lg:hidden" open={mobileMenuOpen} onClose={setMobileMenuOpen}>
|
||||||
|
<div className="fixed inset-0 z-10" />
|
||||||
|
<Dialog.Panel className="fixed inset-y-0 right-0 z-10 w-full overflow-y-auto bg-[#111111] px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-200/10">
|
||||||
|
<div className="flex items-center justify-between">
|
||||||
|
<Link to="#" className="-m-1.5 p-1.5">
|
||||||
|
<span className="sr-only">Mycelium</span>
|
||||||
|
<img
|
||||||
|
className="h-8 w-auto"
|
||||||
|
src={pmyceliumLogo}
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="-m-2.5 rounded-md p-2.5 text-gray-300 hover:text-cyan-400 transition-colors"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
<span className="sr-only">Close menu</span>
|
||||||
|
<XMarkIcon className="h-6 w-6" aria-hidden="true" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div className="mt-6 flow-root">
|
||||||
|
<div className="-my-6 divide-y divide-gray-500/20">
|
||||||
|
<div className="space-y-2 py-6">
|
||||||
|
<Link
|
||||||
|
to="/network"
|
||||||
|
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-white hover:bg-gray-800"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
Network
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/cloud"
|
||||||
|
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-white hover:bg-gray-800"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
Cloud
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/pods"
|
||||||
|
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-white hover:bg-gray-800"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
Pods
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/agents"
|
||||||
|
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-white hover:bg-gray-800"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
Agents
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/node"
|
||||||
|
className="-mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-white hover:bg-gray-800"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
Node
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
<div className="py-6">
|
||||||
|
<Button
|
||||||
|
to="https://myceliumcloud.tf"
|
||||||
|
variant="outline"
|
||||||
|
as="a"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="w-full"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
Start Deployment
|
||||||
|
</Button>
|
||||||
|
<Button to="/download" variant="solid" color="cyan" className="mt-4 w-full" onClick={() => setMobileMenuOpen(false)}>
|
||||||
|
Get Mycelium Connector
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Dialog.Panel>
|
||||||
|
</Dialog>
|
||||||
|
</header>
|
||||||
|
)
|
||||||
|
}
|
||||||
9
src/components/HomeHeadline.tsx
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { TextHoverEffect } from "@/components/ui/text-hover-effect";
|
||||||
|
|
||||||
|
export function HomeHeadline() {
|
||||||
|
return (
|
||||||
|
<div className="flex items-center justify-center h-auto max-h-[200px]">
|
||||||
|
<TextHoverEffect text="MYCELIUM" />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -106,7 +106,7 @@ export const H5 = createTextComponent(
|
|||||||
)
|
)
|
||||||
export const Eyebrow = createTextComponent(
|
export const Eyebrow = createTextComponent(
|
||||||
'h2',
|
'h2',
|
||||||
'text-base/7 font-semibold tracking-[0.18em] uppercase',
|
'text-base/7 font-semibold uppercase tracking-[0.16em]',
|
||||||
{ color: 'accent' }
|
{ color: 'accent' }
|
||||||
)
|
)
|
||||||
export const SectionHeader = createTextComponent(
|
export const SectionHeader = createTextComponent(
|
||||||
@@ -162,5 +162,5 @@ export const DownloadCardDescription = createTextComponent(
|
|||||||
'text-base/7 leading-normal tracking-normal'
|
'text-base/7 leading-normal tracking-normal'
|
||||||
)
|
)
|
||||||
|
|
||||||
export const CT = createTextComponent('span', 'text-lg lg:text-xl font-semibold')
|
export const CT = createTextComponent('span', 'text-base lg:text-lg font-medium')
|
||||||
export const CP = createTextComponent('p', 'text-sm lg:text-base tracking-wide leading-tight font-light')
|
export const CP = createTextComponent('p', 'text-sm lg:text-base tracking-wide leading-tight font-light')
|
||||||
|
|||||||
@@ -20,15 +20,6 @@ export const InfiniteMovingCards = ({
|
|||||||
const scrollerRef = React.useRef<HTMLUListElement>(null);
|
const scrollerRef = React.useRef<HTMLUListElement>(null);
|
||||||
const [start, setStart] = useState(false);
|
const [start, setStart] = useState(false);
|
||||||
|
|
||||||
const getDirection = useCallback(() => {
|
|
||||||
if (containerRef.current) {
|
|
||||||
if (direction === "left") {
|
|
||||||
containerRef.current.style.setProperty("--animation-direction", "forwards");
|
|
||||||
} else {
|
|
||||||
containerRef.current.style.setProperty("--animation-direction", "reverse");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, [direction]);
|
|
||||||
|
|
||||||
const getSpeed = useCallback(() => {
|
const getSpeed = useCallback(() => {
|
||||||
if (containerRef.current) {
|
if (containerRef.current) {
|
||||||
@@ -53,11 +44,10 @@ export const InfiniteMovingCards = ({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
getDirection();
|
|
||||||
getSpeed();
|
getSpeed();
|
||||||
setStart(true);
|
setStart(true);
|
||||||
}
|
}
|
||||||
}, [getDirection, getSpeed]);
|
}, [getSpeed]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
addAnimation();
|
addAnimation();
|
||||||
@@ -75,6 +65,9 @@ export const InfiniteMovingCards = ({
|
|||||||
start && "animate-scroll",
|
start && "animate-scroll",
|
||||||
pauseOnHover && "hover:[animation-play-state:paused]",
|
pauseOnHover && "hover:[animation-play-state:paused]",
|
||||||
)}
|
)}
|
||||||
|
style={{
|
||||||
|
"--animation-direction": direction === "left" ? "forwards" : "reverse",
|
||||||
|
} as React.CSSProperties}
|
||||||
>
|
>
|
||||||
{items.map((item, idx) => (
|
{items.map((item, idx) => (
|
||||||
<li className="relative flex-shrink-0" key={idx}>
|
<li className="relative flex-shrink-0" key={idx}>
|
||||||
|
|||||||
64
src/components/ui/GridBlink.tsx
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useEffect, useRef } from "react";
|
||||||
|
|
||||||
|
export function GridBlink() {
|
||||||
|
const svgRef = useRef<SVGSVGElement>(null);
|
||||||
|
const maxActive = 3; // ✅ limit active squares
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const svg = svgRef.current;
|
||||||
|
if (!svg) return;
|
||||||
|
|
||||||
|
const squares = Array.from(svg.querySelectorAll<SVGRectElement>(".blink-square"));
|
||||||
|
|
||||||
|
function scheduleBlink() {
|
||||||
|
// ✅ only blink if we have too few active
|
||||||
|
const currentlyActive = squares.filter(sq => sq.classList.contains("active"));
|
||||||
|
if (currentlyActive.length < maxActive) {
|
||||||
|
const sq = squares[Math.floor(Math.random() * squares.length)];
|
||||||
|
sq.classList.add("active");
|
||||||
|
|
||||||
|
const duration = 800 + Math.random() * 1000; // ✅ slower fade-out
|
||||||
|
setTimeout(() => {
|
||||||
|
sq.classList.remove("active");
|
||||||
|
}, duration);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ✅ slower scheduling
|
||||||
|
setTimeout(scheduleBlink, 300 + Math.random() * 600);
|
||||||
|
}
|
||||||
|
|
||||||
|
scheduleBlink();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const rows = 20;
|
||||||
|
const cols = 32;
|
||||||
|
const size = 40;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
ref={svgRef}
|
||||||
|
className="pointer-events-none absolute inset-0 z-0"
|
||||||
|
style={{ width: "100%", height: "100%" }}
|
||||||
|
>
|
||||||
|
{Array.from({ length: rows * cols }).map((_, i) => {
|
||||||
|
const x = (i % cols) * size;
|
||||||
|
const y = Math.floor(i / cols) * size;
|
||||||
|
return (
|
||||||
|
<rect
|
||||||
|
key={i}
|
||||||
|
className="blink-square"
|
||||||
|
x={x}
|
||||||
|
y={y}
|
||||||
|
width={size}
|
||||||
|
height={size}
|
||||||
|
fill="transparent"
|
||||||
|
stroke="#efefef"
|
||||||
|
strokeWidth="1"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
}
|
||||||
63
src/components/ui/spotlight.tsx
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
|
||||||
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
|
type SpotlightProps = {
|
||||||
|
className?: string;
|
||||||
|
fill?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const Spotlight = ({ className, fill }: SpotlightProps) => {
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
className={cn(
|
||||||
|
"animate-spotlight pointer-events-none absolute z-[1] h-[169%] w-[138%] lg:w-[84%] opacity-100 mix-blend-screen",
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 3787 2842"
|
||||||
|
fill="none"
|
||||||
|
>
|
||||||
|
<g filter="url(#filter)">
|
||||||
|
<ellipse
|
||||||
|
cx="1924.71"
|
||||||
|
cy="273.501"
|
||||||
|
rx="1924.71"
|
||||||
|
ry="273.501"
|
||||||
|
transform="matrix(-0.822377 -0.568943 -0.568943 0.822377 3631.88 2291.09)"
|
||||||
|
fill={fill || "url(#spotlightGradient)"}
|
||||||
|
fillOpacity="1"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<defs>
|
||||||
|
{/* ✅ Cyan radial gradient */}
|
||||||
|
<radialGradient
|
||||||
|
id="spotlightGradient"
|
||||||
|
cx="0"
|
||||||
|
cy="0"
|
||||||
|
r="1"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(2200 1600) rotate(90) scale(1800 2800)"
|
||||||
|
>
|
||||||
|
<stop offset="0%" stopColor="#00eaff" stopOpacity="0.95" />
|
||||||
|
<stop offset="40%" stopColor="#00eaff" stopOpacity="0.35" />
|
||||||
|
<stop offset="100%" stopColor="#00eaff" stopOpacity="0" />
|
||||||
|
</radialGradient>
|
||||||
|
|
||||||
|
<filter
|
||||||
|
id="filter"
|
||||||
|
x="0.860352"
|
||||||
|
y="0.838989"
|
||||||
|
width="3785.16"
|
||||||
|
height="2840.26"
|
||||||
|
filterUnits="userSpaceOnUse"
|
||||||
|
colorInterpolationFilters="sRGB"
|
||||||
|
>
|
||||||
|
<feFlood floodOpacity="0" result="BackgroundImageFix" />
|
||||||
|
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" />
|
||||||
|
<feGaussianBlur stdDeviation="151" result="effect1_foregroundBlur" />
|
||||||
|
</filter>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
};
|
||||||
139
src/components/ui/text-hover-effect.tsx
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
"use client";
|
||||||
|
import { useRef, useEffect, useState } from "react";
|
||||||
|
import { motion, useAnimation } from "motion/react";
|
||||||
|
|
||||||
|
export const TextHoverEffect = ({
|
||||||
|
text,
|
||||||
|
duration = 6, // loop duration
|
||||||
|
}: {
|
||||||
|
text: string;
|
||||||
|
duration?: number;
|
||||||
|
}) => {
|
||||||
|
const svgRef = useRef<SVGSVGElement>(null);
|
||||||
|
const controls = useAnimation();
|
||||||
|
const [hovered, setHovered] = useState(false);
|
||||||
|
|
||||||
|
// ✅ Animate mask looping automatically
|
||||||
|
useEffect(() => {
|
||||||
|
const loop = async () => {
|
||||||
|
while (true) {
|
||||||
|
await controls.start({
|
||||||
|
cx: ["20%", "80%", "50%"],
|
||||||
|
cy: ["20%", "80%", "50%"],
|
||||||
|
transition: {
|
||||||
|
duration,
|
||||||
|
ease: "easeInOut",
|
||||||
|
repeat: 0,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
loop();
|
||||||
|
}, [controls, duration]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
ref={svgRef}
|
||||||
|
width="100%"
|
||||||
|
height="100%"
|
||||||
|
viewBox="0 0 300 100"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
onMouseEnter={() => setHovered(true)}
|
||||||
|
onMouseLeave={() => setHovered(false)}
|
||||||
|
className="select-none"
|
||||||
|
>
|
||||||
|
<defs>
|
||||||
|
{/* ✅ Softer cyan gradient */}
|
||||||
|
<linearGradient id="textGradient" gradientUnits="userSpaceOnUse">
|
||||||
|
{hovered ? (
|
||||||
|
<>
|
||||||
|
<stop offset="0%" stopColor="#7df3ff" />
|
||||||
|
<stop offset="40%" stopColor="#4adffa" />
|
||||||
|
<stop offset="70%" stopColor="#18c5e8" />
|
||||||
|
<stop offset="100%" stopColor="#0aaecb" />
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<stop offset="0%" stopColor="#7df3ff33" />
|
||||||
|
<stop offset="100%" stopColor="#0aaecb33" />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</linearGradient>
|
||||||
|
|
||||||
|
{/* ✅ Mask with autoplay motion */}
|
||||||
|
<motion.radialGradient
|
||||||
|
id="revealMask"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
r="45%"
|
||||||
|
animate={controls}
|
||||||
|
initial={{ cx: "50%", cy: "50%" }}
|
||||||
|
>
|
||||||
|
<stop offset="0%" stopColor="white" />
|
||||||
|
<stop offset="100%" stopColor="black" />
|
||||||
|
</motion.radialGradient>
|
||||||
|
|
||||||
|
{/* ✅ Glow */}
|
||||||
|
<filter id="glow">
|
||||||
|
<feGaussianBlur stdDeviation="3.2" result="blur" />
|
||||||
|
<feMerge>
|
||||||
|
<feMergeNode in="blur" />
|
||||||
|
<feMergeNode in="SourceGraphic" />
|
||||||
|
</feMerge>
|
||||||
|
</filter>
|
||||||
|
|
||||||
|
<mask id="textMask">
|
||||||
|
<rect x="0" y="0" width="100%" height="100%" fill="url(#revealMask)" />
|
||||||
|
</mask>
|
||||||
|
</defs>
|
||||||
|
|
||||||
|
{/* ✅ Background faint stroke */}
|
||||||
|
<text
|
||||||
|
x="50%"
|
||||||
|
y="50%"
|
||||||
|
textAnchor="middle"
|
||||||
|
dominantBaseline="middle"
|
||||||
|
strokeWidth="0.15"
|
||||||
|
className="fill-transparent stroke-neutral-300 dark:stroke-neutral-800 font-[helvetica] text-7xl font-bold"
|
||||||
|
style={{ opacity: hovered ? 0.25 : 0.1 }}
|
||||||
|
>
|
||||||
|
{text}
|
||||||
|
</text>
|
||||||
|
|
||||||
|
{/* ✅ Line drawing animation always plays too */}
|
||||||
|
<motion.text
|
||||||
|
x="50%"
|
||||||
|
y="50%"
|
||||||
|
textAnchor="middle"
|
||||||
|
dominantBaseline="middle"
|
||||||
|
strokeWidth="0.25"
|
||||||
|
className="fill-transparent stroke-cyan-300 font-[helvetica] text-7xl font-bold"
|
||||||
|
initial={{ strokeDashoffset: 600, strokeDasharray: 600 }}
|
||||||
|
animate={{
|
||||||
|
strokeDashoffset: 0,
|
||||||
|
strokeDasharray: 600,
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 2.2,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{text}
|
||||||
|
</motion.text>
|
||||||
|
|
||||||
|
{/* ✅ Final filled glowing cyan text (mask reveals it) */}
|
||||||
|
<text
|
||||||
|
x="50%"
|
||||||
|
y="50%"
|
||||||
|
textAnchor="middle"
|
||||||
|
dominantBaseline="middle"
|
||||||
|
stroke="url(#textGradient)"
|
||||||
|
strokeWidth="1.1"
|
||||||
|
mask="url(#textMask)"
|
||||||
|
filter="url(#glow)"
|
||||||
|
className="font-[helvetica] text-7xl font-bold fill-[url(#textGradient)]"
|
||||||
|
>
|
||||||
|
{text}
|
||||||
|
</text>
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -14,152 +14,111 @@ interface MapProps {
|
|||||||
|
|
||||||
export default function WorldMap({
|
export default function WorldMap({
|
||||||
dots = [],
|
dots = [],
|
||||||
lineColor = "#06b6d4",
|
lineColor = "#06b6d4", // cyan-500
|
||||||
}: MapProps) {
|
}: MapProps) {
|
||||||
const svgRef = useRef<SVGSVGElement>(null);
|
const svgRef = useRef<SVGSVGElement>(null);
|
||||||
const map = new DottedMap({ height: 100, grid: "diagonal" });
|
|
||||||
|
|
||||||
|
// ✅ Force dark-dotted map theme
|
||||||
|
const map = new DottedMap({ height: 100, grid: "diagonal" });
|
||||||
const svgMap = map.getSVG({
|
const svgMap = map.getSVG({
|
||||||
radius: 0.22,
|
radius: 0.22,
|
||||||
color: "#FFFFFF40", // Hardcoded for dark theme
|
color: "#06b6d480", // cyan-500 at 50% opacity
|
||||||
shape: "circle",
|
shape: "circle",
|
||||||
backgroundColor: "black", // Hardcoded for dark theme
|
backgroundColor: "#111111",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// ✅ Point projection stays the same
|
||||||
const projectPoint = (lat: number, lng: number) => {
|
const projectPoint = (lat: number, lng: number) => {
|
||||||
const x = (lng + 180) * (800 / 360);
|
const x = (lng + 180) * (800 / 360);
|
||||||
const y = (90 - lat) * (400 / 180);
|
const y = (90 - lat) * (400 / 180);
|
||||||
return { x, y };
|
return { x, y };
|
||||||
};
|
};
|
||||||
|
|
||||||
const createCurvedPath = (
|
const createCurvedPath = (start: any, end: any) => {
|
||||||
start: { x: number; y: number },
|
|
||||||
end: { x: number; y: number }
|
|
||||||
) => {
|
|
||||||
const midX = (start.x + end.x) / 2;
|
const midX = (start.x + end.x) / 2;
|
||||||
const midY = Math.min(start.y, end.y) - 50;
|
const midY = Math.min(start.y, end.y) - 50;
|
||||||
return `M ${start.x} ${start.y} Q ${midX} ${midY} ${end.x} ${end.y}`;
|
return `M ${start.x} ${start.y} Q ${midX} ${midY} ${end.x} ${end.y}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full aspect-[2/1] dark:bg-black bg-white rounded-lg relative font-sans">
|
<div className="w-full aspect-[2/1] bg-[#111111] rounded-lg relative font-sans">
|
||||||
<img
|
<img
|
||||||
src={`data:image/svg+xml;utf8,${encodeURIComponent(svgMap)}`}
|
src={`data:image/svg+xml;utf8,${encodeURIComponent(svgMap)}`}
|
||||||
className="h-full w-full [mask-image:linear-gradient(to_bottom,transparent,white_10%,white_90%,transparent)] pointer-events-none select-none"
|
className="h-full w-full pointer-events-none select-none opacity-[0.6]"
|
||||||
alt="world map"
|
alt="world map"
|
||||||
height="495"
|
|
||||||
width="1056"
|
|
||||||
draggable={false}
|
draggable={false}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{/* ✅ Lines + points */}
|
||||||
<svg
|
<svg
|
||||||
ref={svgRef}
|
ref={svgRef}
|
||||||
viewBox="0 0 800 400"
|
viewBox="0 0 800 400"
|
||||||
className="w-full h-full absolute inset-0 pointer-events-none select-none"
|
className="w-full h-full absolute inset-0 pointer-events-none select-none"
|
||||||
>
|
>
|
||||||
|
{/* ✅ animated curved travel lines */}
|
||||||
{dots.map((dot, i) => {
|
{dots.map((dot, i) => {
|
||||||
const startPoint = projectPoint(dot.start.lat, dot.start.lng);
|
const startPoint = projectPoint(dot.start.lat, dot.start.lng);
|
||||||
const endPoint = projectPoint(dot.end.lat, dot.end.lng);
|
const endPoint = projectPoint(dot.end.lat, dot.end.lng);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<g key={`path-group-${i}`}>
|
|
||||||
<motion.path
|
<motion.path
|
||||||
|
key={`path-${i}`}
|
||||||
d={createCurvedPath(startPoint, endPoint)}
|
d={createCurvedPath(startPoint, endPoint)}
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="url(#path-gradient)"
|
stroke="url(#path-gradient)"
|
||||||
strokeWidth="1"
|
strokeWidth="1"
|
||||||
initial={{
|
initial={{ pathLength: 0 }}
|
||||||
pathLength: 0,
|
animate={{ pathLength: 1 }}
|
||||||
}}
|
|
||||||
animate={{
|
|
||||||
pathLength: 1,
|
|
||||||
}}
|
|
||||||
transition={{
|
transition={{
|
||||||
duration: 1,
|
duration: 1,
|
||||||
delay: 0.5 * i,
|
delay: 0.5 * i,
|
||||||
ease: "easeOut",
|
ease: "easeOut",
|
||||||
}}
|
}}
|
||||||
key={`start-upper-${i}`}
|
/>
|
||||||
></motion.path>
|
|
||||||
</g>
|
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
||||||
|
{/* ✅ glowing path gradient */}
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="path-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
<linearGradient id="path-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
||||||
<stop offset="0%" stopColor="white" stopOpacity="0" />
|
<stop offset="0%" stopColor="black" stopOpacity="0" />
|
||||||
<stop offset="5%" stopColor={lineColor} stopOpacity="1" />
|
<stop offset="5%" stopColor={lineColor} stopOpacity="1" />
|
||||||
<stop offset="95%" stopColor={lineColor} stopOpacity="1" />
|
<stop offset="95%" stopColor={lineColor} stopOpacity="1" />
|
||||||
<stop offset="100%" stopColor="white" stopOpacity="0" />
|
<stop offset="100%" stopColor="black" stopOpacity="0" />
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
</defs>
|
</defs>
|
||||||
|
|
||||||
{dots.map((dot, i) => (
|
{/* ✅ start & end points with pulsing cyan glow */}
|
||||||
<g key={`points-group-${i}`}>
|
{dots.map((dot, i) => {
|
||||||
<g key={`start-${i}`}>
|
const s = projectPoint(dot.start.lat, dot.start.lng);
|
||||||
<circle
|
const e = projectPoint(dot.end.lat, dot.end.lng);
|
||||||
cx={projectPoint(dot.start.lat, dot.start.lng).x}
|
|
||||||
cy={projectPoint(dot.start.lat, dot.start.lng).y}
|
return (
|
||||||
r="2"
|
<g key={`points-${i}`}>
|
||||||
fill={lineColor}
|
{[s, e].map((p, idx) => (
|
||||||
/>
|
<g key={idx}>
|
||||||
<circle
|
<circle cx={p.x} cy={p.y} r="2" fill={lineColor} />
|
||||||
cx={projectPoint(dot.start.lat, dot.start.lng).x}
|
<circle cx={p.x} cy={p.y} r="2" fill={lineColor} opacity="0.5">
|
||||||
cy={projectPoint(dot.start.lat, dot.start.lng).y}
|
|
||||||
r="2"
|
|
||||||
fill={lineColor}
|
|
||||||
opacity="0.5"
|
|
||||||
>
|
|
||||||
<animate
|
<animate
|
||||||
attributeName="r"
|
attributeName="r"
|
||||||
from="2"
|
from="2"
|
||||||
to="8"
|
to="7"
|
||||||
dur="1.5s"
|
dur="1.4s"
|
||||||
begin="0s"
|
|
||||||
repeatCount="indefinite"
|
repeatCount="indefinite"
|
||||||
/>
|
/>
|
||||||
<animate
|
<animate
|
||||||
attributeName="opacity"
|
attributeName="opacity"
|
||||||
from="0.5"
|
from="0.6"
|
||||||
to="0"
|
to="0"
|
||||||
dur="1.5s"
|
dur="1.4s"
|
||||||
begin="0s"
|
|
||||||
repeatCount="indefinite"
|
repeatCount="indefinite"
|
||||||
/>
|
/>
|
||||||
</circle>
|
</circle>
|
||||||
</g>
|
</g>
|
||||||
<g key={`end-${i}`}>
|
|
||||||
<circle
|
|
||||||
cx={projectPoint(dot.end.lat, dot.end.lng).x}
|
|
||||||
cy={projectPoint(dot.end.lat, dot.end.lng).y}
|
|
||||||
r="2"
|
|
||||||
fill={lineColor}
|
|
||||||
/>
|
|
||||||
<circle
|
|
||||||
cx={projectPoint(dot.end.lat, dot.end.lng).x}
|
|
||||||
cy={projectPoint(dot.end.lat, dot.end.lng).y}
|
|
||||||
r="2"
|
|
||||||
fill={lineColor}
|
|
||||||
opacity="0.5"
|
|
||||||
>
|
|
||||||
<animate
|
|
||||||
attributeName="r"
|
|
||||||
from="2"
|
|
||||||
to="8"
|
|
||||||
dur="1.5s"
|
|
||||||
begin="0s"
|
|
||||||
repeatCount="indefinite"
|
|
||||||
/>
|
|
||||||
<animate
|
|
||||||
attributeName="opacity"
|
|
||||||
from="0.5"
|
|
||||||
to="0"
|
|
||||||
dur="1.5s"
|
|
||||||
begin="0s"
|
|
||||||
repeatCount="indefinite"
|
|
||||||
/>
|
|
||||||
</circle>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
))}
|
))}
|
||||||
|
</g>
|
||||||
|
);
|
||||||
|
})}
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
import { StrictMode } from 'react'
|
import { StrictMode } from 'react'
|
||||||
import { createRoot } from 'react-dom/client'
|
import { createRoot } from 'react-dom/client'
|
||||||
|
import { ThemeProvider } from 'next-themes'
|
||||||
import './styles/tailwind.css'
|
import './styles/tailwind.css'
|
||||||
import App from './App.tsx'
|
import App from './App'
|
||||||
|
|
||||||
createRoot(document.getElementById('root')!).render(
|
createRoot(document.getElementById('root')!).render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
|
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
|
||||||
<App />
|
<App />
|
||||||
|
</ThemeProvider>
|
||||||
</StrictMode>,
|
</StrictMode>,
|
||||||
)
|
)
|
||||||
|
|||||||
166
src/pages/agents/AgentBento.tsx
Normal file
@@ -0,0 +1,166 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { Eyebrow, H3, P } from "@/components/Texts";
|
||||||
|
import AgentCoordination from "./animations/AgentCoordination";
|
||||||
|
import DeterministicExecution from "./animations/DeterministicExecution";
|
||||||
|
import Fungistor from "./animations/Fungistor";
|
||||||
|
import Herodb from "./animations/Herodb";
|
||||||
|
import MOSSandboxes from "./animations/MOSSandboxes";
|
||||||
|
import MyceliumMesh from "./animations/MyceliumMesh";
|
||||||
|
|
||||||
|
const bentos: {
|
||||||
|
id: string;
|
||||||
|
eyebrow?: string;
|
||||||
|
title: string;
|
||||||
|
subtitle?: string;
|
||||||
|
description: string;
|
||||||
|
animation: React.ComponentType | null;
|
||||||
|
colSpan: string;
|
||||||
|
rowSpan: string;
|
||||||
|
custom?: boolean;
|
||||||
|
noBorder?: boolean;
|
||||||
|
}[] = [
|
||||||
|
{
|
||||||
|
id: "core",
|
||||||
|
eyebrow: "ARCHITECTURE",
|
||||||
|
title: "Augmented Intelligence Fabric",
|
||||||
|
description:
|
||||||
|
"The sovereign substrate for autonomous AI. Stateless, geo-aware, end-to-end encrypted—and verifiable from intent to execution.",
|
||||||
|
animation: null,
|
||||||
|
colSpan: "lg:col-span-3",
|
||||||
|
rowSpan: "lg:row-span-1",
|
||||||
|
custom: true,
|
||||||
|
noBorder: true,
|
||||||
|
},
|
||||||
|
|
||||||
|
// ✅ Updated Bento Cards
|
||||||
|
{
|
||||||
|
id: "fungistor",
|
||||||
|
title: "FungiStor",
|
||||||
|
subtitle: "Long-Term AI Memory",
|
||||||
|
description:
|
||||||
|
"Erasure coding + compression slash storage bloat by up to 10× vs basic replication. Source-encrypted shards are geo-dispersed—lose pieces, rebuild perfectly from a quorum.",
|
||||||
|
animation: Fungistor,
|
||||||
|
colSpan: "lg:col-span-3",
|
||||||
|
rowSpan: "lg:row-span-1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "herodb",
|
||||||
|
title: "HeroDB",
|
||||||
|
subtitle: "Active AI Memory",
|
||||||
|
description:
|
||||||
|
"Multimodal vector+keyword retrieval makes RAG feel instant across text, image, audio. Time-aware, policy-guarded context keeps results fresh while access stays governed.",
|
||||||
|
animation: Herodb,
|
||||||
|
colSpan: "lg:col-span-3",
|
||||||
|
rowSpan: "lg:row-span-1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "mos",
|
||||||
|
title: "MOS Sandboxes",
|
||||||
|
subtitle: "Secure Agent Workspaces",
|
||||||
|
description:
|
||||||
|
"Attested, signed workspaces spin up ≈5s worldwide—ready to execute. Hardware isolation and scoped egress: run hard, tear down clean, zero residue.",
|
||||||
|
animation: MOSSandboxes,
|
||||||
|
colSpan: "lg:col-span-3",
|
||||||
|
rowSpan: "lg:row-span-1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "mesh",
|
||||||
|
title: "Mycelium Mesh",
|
||||||
|
subtitle: "Secure Communication Network",
|
||||||
|
description:
|
||||||
|
"A private, public-key fabric with self-healing multi-path routing. Glides through NATs and firewalls—direct, low-latency, no middlemen.",
|
||||||
|
animation: MyceliumMesh,
|
||||||
|
colSpan: "lg:col-span-2",
|
||||||
|
rowSpan: "lg:row-span-1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "deterministic",
|
||||||
|
title: "Deterministic Deployment",
|
||||||
|
subtitle: "Verifiable Code Execution",
|
||||||
|
description:
|
||||||
|
"Declare intent, get a hash; remote attestation proves that is what runs. Reproducible builds, signed artifacts, immutable logs—supply chain, sealed.",
|
||||||
|
animation: DeterministicExecution,
|
||||||
|
colSpan: "lg:col-span-2",
|
||||||
|
rowSpan: "lg:row-span-1",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "agent-coordination",
|
||||||
|
title: "Agent Coordination",
|
||||||
|
subtitle: "Sovereign Workflow Management",
|
||||||
|
description:
|
||||||
|
"Your private agent conducts swarms of specialists in parallel. Policies fan out work; human checkpoints keep you in command.",
|
||||||
|
animation: AgentCoordination,
|
||||||
|
colSpan: "lg:col-span-2",
|
||||||
|
rowSpan: "lg:row-span-1",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export function AgentBento() {
|
||||||
|
return (
|
||||||
|
<section className="relative w-full bg-[#121212] overflow-hidden">
|
||||||
|
<div className="max-w-7xl bg-[#121212] mx-auto py-6 border border-t-0 border-b-0 border-gray-800"></div>
|
||||||
|
<div className="w-full border-t border-l border-r border-gray-800" />
|
||||||
|
|
||||||
|
<div className="mx-auto bg-[#111111] max-w-2xl px-6 lg:max-w-7xl lg:px-10 border border-t-0 border-b-0 border-gray-800">
|
||||||
|
<div className="grid grid-cols-1 gap-6 pt-6 lg:grid-cols-6 lg:grid-rows-3 pb-6">
|
||||||
|
{bentos.map((card) => (
|
||||||
|
<div
|
||||||
|
key={card.id}
|
||||||
|
className={`relative ${card.colSpan} ${card.rowSpan} transition-transform duration-300 hover:scale-102 group`}
|
||||||
|
>
|
||||||
|
{!card.noBorder && (
|
||||||
|
<div
|
||||||
|
className={`absolute inset-0 rounded-md border border-gray-800 bg-[#111212] `}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<div
|
||||||
|
className={`relative flex lg:h-90 flex-col overflow-hidden rounded-[calc(var(--radius-lg)+1px)] `}
|
||||||
|
>
|
||||||
|
{card.animation ? (
|
||||||
|
<div className="lg:h-64 h-48 w-full overflow-hidden bg-transparent flex items-center">
|
||||||
|
<card.animation />
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<div className="h-48 w-full flex items-center justify-center bg-transparent" />
|
||||||
|
)}
|
||||||
|
|
||||||
|
<div className="px-8 pt-4 pb-6">
|
||||||
|
{card.custom ? (
|
||||||
|
<>
|
||||||
|
{card.eyebrow && <Eyebrow>{card.eyebrow}</Eyebrow>}
|
||||||
|
<H3 className="mt-2 text-white">{card.title}</H3>
|
||||||
|
<P className="mt-4 max-w-lg text-gray-200">{card.description}</P>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
{/* ✅ NEW SUBTITLE */}
|
||||||
|
<p className="text-sm text-cyan-400">{card.subtitle}</p>
|
||||||
|
|
||||||
|
<p className="mt-1 text-lg font-medium lg:text-xl tracking-tight text-white">
|
||||||
|
{card.title}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p className="mt-1 max-w-lg text-sm/6 text-gray-200">
|
||||||
|
{card.description}
|
||||||
|
</p>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{!card.noBorder && (
|
||||||
|
<div
|
||||||
|
className={`pointer-events-none absolute inset-0 rounded-lg shadow-sm outline outline-black/5 `}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -49,7 +49,7 @@ export function AgentComponents() {
|
|||||||
<div className="mx-auto mt-16 max-w-6xl overflow-x-auto">
|
<div className="mx-auto mt-16 max-w-6xl overflow-x-auto">
|
||||||
<table className="w-full table-auto border-collapse text-left text-sm text-gray-700">
|
<table className="w-full table-auto border-collapse text-left text-sm text-gray-700">
|
||||||
<thead>
|
<thead>
|
||||||
<tr className="bg-cyan-50 border-b border-gray-200">
|
<tr className="bg-cyan-50 border-b border-gray-100">
|
||||||
<th className="py-3 px-4 font-semibold text-gray-900">Component</th>
|
<th className="py-3 px-4 font-semibold text-gray-900">Component</th>
|
||||||
<th className="py-3 px-4 font-semibold text-gray-900">Purpose</th>
|
<th className="py-3 px-4 font-semibold text-gray-900">Purpose</th>
|
||||||
<th className="py-3 px-4 font-semibold text-gray-900">Backed By</th>
|
<th className="py-3 px-4 font-semibold text-gray-900">Backed By</th>
|
||||||
|
|||||||
56
src/pages/agents/AgentDesign.tsx
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
import {
|
||||||
|
ComputerDesktopIcon,
|
||||||
|
ArrowsRightLeftIcon,
|
||||||
|
CircleStackIcon,
|
||||||
|
} from '@heroicons/react/24/solid'
|
||||||
|
|
||||||
|
const benefits = [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
title: 'Each agent operates entirely inside your environment',
|
||||||
|
icon: ComputerDesktopIcon,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
title: 'They communicate peer-to-peer across trusted nodes',
|
||||||
|
icon: ArrowsRightLeftIcon,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
title: 'They access data locally without exposing it to external providers',
|
||||||
|
icon: CircleStackIcon,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
export function AgentDesign() {
|
||||||
|
return (
|
||||||
|
<section className="w-full max-w-8xl mx-auto bg-transparent">
|
||||||
|
|
||||||
|
{/* ✅ Top horizontal line with spacing */}
|
||||||
|
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-100"></div>
|
||||||
|
<div className="w-full border border-l border-r border-gray-100" />
|
||||||
|
|
||||||
|
{/* ✅ Main content */}
|
||||||
|
<div className="mx-auto max-w-7xl border-gray-100">
|
||||||
|
<dl className="grid grid-cols-1 gap-4 lg:gap-6 lg:grid-cols-3 text-center ">
|
||||||
|
{benefits.map((item) => (
|
||||||
|
<div
|
||||||
|
key={item.id}
|
||||||
|
className="flex flex-col items-center bg-white dark:bg-black/40 py-10 px-4 border border-gray-100 dark:border-gray-800 lg:border-t-0 lg:border-b-0"
|
||||||
|
>
|
||||||
|
<item.icon className="h-10 w-10 text-cyan-500 mb-4" />
|
||||||
|
<h3 className="text-base font-medium text-black dark:text-white max-w-xs">
|
||||||
|
{item.title}
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* ✅ Bottom horizontal line with spacing */}
|
||||||
|
<div className="w-full border border-gray-100" />
|
||||||
|
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-100"></div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -1,32 +1,31 @@
|
|||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import { Button } from '@/components/Button'
|
import { Button } from '@/components/Button'
|
||||||
import { Eyebrow, H3 } from '@/components/Texts'
|
import { Eyebrow, H3, P } from '@/components/Texts'
|
||||||
|
|
||||||
export function AgentHeroAlt() {
|
export function AgentHeroAlt() {
|
||||||
return (
|
return (
|
||||||
<div className="">
|
<div className="">
|
||||||
{/* Boxed container */}
|
{/* Boxed container */}
|
||||||
<div
|
<div
|
||||||
className="relative mx-auto max-w-7xl border border-t-0 border-b-0 border-gray-200 bg-white overflow-hidden bg-contain bg-right bg-no-repeat"
|
className="relative mx-auto max-w-7xl border border-t-0 border-b-0 border-gray-100 bg-white overflow-hidden bg-contain bg-right bg-no-repeat"
|
||||||
style={{ backgroundImage: "url('/images/agents.webp')", backgroundSize: "contain" }}
|
style={{ backgroundImage: "url('/images/agents.webp')", backgroundSize: "contain" }}
|
||||||
>
|
>
|
||||||
{/* Inner padding */}
|
{/* Inner padding */}
|
||||||
<div className="px-6 py-16 lg:py-16">
|
<div className="px-6 py-16 lg:py-16">
|
||||||
<div className="max-w-2xl lg:pl-6">
|
<div className="max-w-2xl lg:pl-6">
|
||||||
<Eyebrow>MYCELIUM AGENTS</Eyebrow>
|
<Eyebrow>MYCELIUM AGENTS - COMING IN 2026</Eyebrow>
|
||||||
<H3 as="h1" className="mt-4">
|
<H3 as="h1" className="mt-4">
|
||||||
Sovereign AI Agents, Coming Soon.
|
Private, Sovereign and Distributed AI You Control
|
||||||
</H3>
|
</H3>
|
||||||
<p className="mt-6 text-lg">
|
<P className="mt-6 text-gray-800">
|
||||||
The Agent layer will allow you to run autonomous, policy-governed AI that operates on infrastructure you control, with private memory, verifiable execution, and coordination across your personal or organizational environment.
|
Mycelium Agents let you deploy and run intelligent systems on your own infrastructure.
|
||||||
</p>
|
Private, local, and autonomous by design, they give you everything you need to build, host, and connect AI agents without relying on centralized clouds.
|
||||||
<p className="mt-4 lg:text-base italic text-gray-600 text-sm">
|
</P>
|
||||||
Works Alone. Works Together. Use Agents on top of any Mycelium Cloud deployment or pair them with the Mycelium Network for private, encrypted collaboration across users and systems.
|
|
||||||
</p>
|
|
||||||
<div className="mt-10 flex items-center gap-x-6">
|
<div className="mt-10 flex items-center gap-x-6">
|
||||||
<Button href="#" variant="solid" color="cyan">
|
<Button href="#" variant="solid" color="cyan">
|
||||||
Follow Deployment
|
Follow Development
|
||||||
</Button>
|
</Button>
|
||||||
<Button href="#" variant="outline">
|
<Button href="#" variant="outline">
|
||||||
Explore Docs <span aria-hidden="true">→</span>
|
Explore Docs <span aria-hidden="true">→</span>
|
||||||
@@ -36,8 +35,8 @@ export function AgentHeroAlt() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* ✅ Bottom horizontal line with spacing */}
|
{/* ✅ Bottom horizontal line with spacing */}
|
||||||
<div className="w-full border-b border-gray-200" />
|
<div className="w-full border-b border-gray-100" />
|
||||||
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-200"></div>
|
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-100"></div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
147
src/pages/agents/AgentUseCase.tsx
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useRef } from "react";
|
||||||
|
import { Eyebrow, SectionHeader, P } from "@/components/Texts";
|
||||||
|
import { IoArrowBackOutline, IoArrowForwardOutline } from "react-icons/io5";
|
||||||
|
|
||||||
|
import {
|
||||||
|
CpuChipIcon,
|
||||||
|
GlobeAltIcon,
|
||||||
|
LockClosedIcon,
|
||||||
|
ArrowPathIcon,
|
||||||
|
ShieldCheckIcon,
|
||||||
|
} from "@heroicons/react/24/solid";
|
||||||
|
|
||||||
|
const networkUseCases = [
|
||||||
|
{
|
||||||
|
isIntro: true,
|
||||||
|
eyebrow: "WHAT IT ENABLES",
|
||||||
|
title: "What It Enables",
|
||||||
|
description:
|
||||||
|
"The framework gives you full control over where agents live, how they connect, and what data they use.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Run agents on your own hardware",
|
||||||
|
description:
|
||||||
|
"Deploy AI processes on laptops, homelabs, edge nodes, or full clusters — no cloud dependency.",
|
||||||
|
icon: CpuChipIcon,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Connect them over the secure Mycelium network",
|
||||||
|
description:
|
||||||
|
"Agents communicate privately across homes, clouds, countries, and environments in one address space.",
|
||||||
|
icon: GlobeAltIcon,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Keep data and memory private by default",
|
||||||
|
description:
|
||||||
|
"Your datasets, tools, prompts, embeddings, and memory stay local unless you choose otherwise.",
|
||||||
|
icon: LockClosedIcon,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Build workflows across cloud + edge",
|
||||||
|
description:
|
||||||
|
"Orchestrate multi-node jobs, pipelines, and real-time systems that live anywhere in your infrastructure.",
|
||||||
|
icon: ArrowPathIcon,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Operate securely in regulated contexts",
|
||||||
|
description:
|
||||||
|
"Run agents in sectors requiring strict data residency, verified identity, and controlled connectivity.",
|
||||||
|
icon: ShieldCheckIcon,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export function AgentUsecase() {
|
||||||
|
const sliderRef = useRef<HTMLUListElement>(null);
|
||||||
|
|
||||||
|
const scrollLeft = () =>
|
||||||
|
sliderRef.current?.scrollBy({ left: -400, behavior: "smooth" });
|
||||||
|
|
||||||
|
const scrollRight = () =>
|
||||||
|
sliderRef.current?.scrollBy({ left: 400, behavior: "smooth" });
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="w-full max-w-8xl mx-auto bg-transparent">
|
||||||
|
|
||||||
|
{/* ✅ Top horizontal line with spacing */}
|
||||||
|
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-100"></div>
|
||||||
|
<div className="w-full border-t border-l border-r border-gray-100" />
|
||||||
|
|
||||||
|
<div className="relative mx-auto max-w-7xl border border-t-0 border-b-0 border-slate-200 bg-white overflow-hidden">
|
||||||
|
<ul
|
||||||
|
ref={sliderRef}
|
||||||
|
className="flex overflow-x-auto snap-x snap-mandatory scroll-smooth no-scrollbar"
|
||||||
|
>
|
||||||
|
{networkUseCases.map((item, idx) => (
|
||||||
|
<li
|
||||||
|
key={idx}
|
||||||
|
className={`snap-start shrink-0 w-[85%] sm:w-[50%] lg:w-[33%]
|
||||||
|
border border-slate-200 px-10 py-12 relative
|
||||||
|
${item.isIntro ? "bg-gray-50/80" : "bg-white"}`}
|
||||||
|
>
|
||||||
|
{/* INTRO CARD */}
|
||||||
|
{item.isIntro ? (
|
||||||
|
<div className="flex flex-col justify-between h-full">
|
||||||
|
<div>
|
||||||
|
<Eyebrow>{item.eyebrow}</Eyebrow>
|
||||||
|
<SectionHeader
|
||||||
|
as="h3"
|
||||||
|
className="mt-4 text-gray-900 text-xl lg:text-2xl"
|
||||||
|
>
|
||||||
|
{item.title}
|
||||||
|
</SectionHeader>
|
||||||
|
<P className="mt-4 text-gray-600 text-sm lg:text-base">
|
||||||
|
{item.description}
|
||||||
|
</P>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* slider buttons */}
|
||||||
|
<div className="flex items-center gap-x-4 mt-6">
|
||||||
|
<button
|
||||||
|
onClick={scrollLeft}
|
||||||
|
className="h-8 w-8 flex items-center justify-center
|
||||||
|
border border-slate-300 rounded-md
|
||||||
|
hover:border-cyan-500 transition-colors"
|
||||||
|
>
|
||||||
|
<IoArrowBackOutline className="text-gray-600" size={16} />
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button
|
||||||
|
onClick={scrollRight}
|
||||||
|
className="h-8 w-8 flex items-center justify-center
|
||||||
|
border border-slate-300 rounded-md
|
||||||
|
hover:border-cyan-500 transition-colors"
|
||||||
|
>
|
||||||
|
<IoArrowForwardOutline className="text-gray-600" size={16} />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
/* REGULAR CARD */
|
||||||
|
<div className="flex flex-col h-full">
|
||||||
|
{item.icon && (
|
||||||
|
<div className="h-12 w-12 flex items-center justify-center rounded-xl bg-gray-100 mb-6">
|
||||||
|
<item.icon className="h-6 w-6 text-cyan-600" />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<p className="text-lg font-semibold text-gray-900">
|
||||||
|
{item.title}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p className="mt-2 text-gray-600 leading-snug">
|
||||||
|
{item.description}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{/* ✅ Bottom horizontal line with spacing */}
|
||||||
|
<div className="w-full border-b border-gray-100" />
|
||||||
|
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-100"></div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
import { AnimatedSection } from '../../components/AnimatedSection'
|
import { AnimatedSection } from '../../components/AnimatedSection'
|
||||||
import { DeploySection } from './DeploySection'
|
import { DeploySection } from './DeploySection'
|
||||||
import { GallerySection } from './GallerySection'
|
|
||||||
import { Companies } from './Companies'
|
import { Companies } from './Companies'
|
||||||
import { BentoSection } from './BentoSection'
|
import { AgentBento } from './AgentBento'
|
||||||
import { AgentHeroAlt } from './AgentHeroAlt'
|
import { AgentHeroAlt } from './AgentHeroAlt'
|
||||||
import { CallToAction } from './CallToAction'
|
import { CallToAction } from './CallToAction'
|
||||||
import { AgentComponents } from './AgentComponents'
|
import { AgentUsecase } from './AgentUseCase'
|
||||||
|
import { AgentDesign } from './AgentDesign'
|
||||||
|
|
||||||
export default function AgentsPage() {
|
export default function AgentsPage() {
|
||||||
return (
|
return (
|
||||||
@@ -23,15 +23,15 @@ export default function AgentsPage() {
|
|||||||
</AnimatedSection>
|
</AnimatedSection>
|
||||||
|
|
||||||
<AnimatedSection>
|
<AnimatedSection>
|
||||||
<GallerySection />
|
<AgentUsecase />
|
||||||
</AnimatedSection>
|
</AnimatedSection>
|
||||||
|
|
||||||
<AnimatedSection>
|
<AnimatedSection>
|
||||||
<BentoSection />
|
<AgentBento />
|
||||||
</AnimatedSection>
|
</AnimatedSection>
|
||||||
|
|
||||||
<AnimatedSection>
|
<AnimatedSection>
|
||||||
<AgentComponents />
|
<AgentDesign />
|
||||||
</AnimatedSection>
|
</AnimatedSection>
|
||||||
|
|
||||||
<AnimatedSection>
|
<AnimatedSection>
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export function BentoSection() {
|
|||||||
whileInView={{ opacity: 1, y: 0 }}
|
whileInView={{ opacity: 1, y: 0 }}
|
||||||
viewport={{ once: true, amount: 0.2 }}
|
viewport={{ once: true, amount: 0.2 }}
|
||||||
transition={{ duration: 0.45, delay: index * 0.1, ease: 'easeOut' }}
|
transition={{ duration: 0.45, delay: index * 0.1, ease: 'easeOut' }}
|
||||||
className="overflow-hidden rounded-2xl border border-gray-800 bg-gray-900 p-6 transition-all duration-300 hover:scale-105 hover:border-cyan-500 hover:shadow-lg"
|
className="overflow-hidden rounded-2xl border border-gray-800 bg-[#121212] p-6 transition-all duration-300 hover:scale-105 hover:border-cyan-500 hover:shadow-lg"
|
||||||
>
|
>
|
||||||
<video
|
<video
|
||||||
src={item.video}
|
src={item.video}
|
||||||
|
|||||||
@@ -1,59 +1,60 @@
|
|||||||
import { CircleBackground } from '../../components/CircleBackground'
|
"use client";
|
||||||
import { Container } from '@/components/Container'
|
|
||||||
import { Button } from '@/components/Button'
|
import { Container } from "@/components/Container";
|
||||||
|
import { Button } from "@/components/Button";
|
||||||
|
|
||||||
export function CallToAction() {
|
export function CallToAction() {
|
||||||
return (
|
return (
|
||||||
<section
|
<section className="relative overflow-hidden bg-[#121212]">
|
||||||
id="get-started"
|
{/* ✅ Top horizontal line with spacing */}
|
||||||
className="relative overflow-hidden bg-gray-900 py-20 sm:py-28"
|
<div className="max-w-7xl bg-[#121212] mx-auto py-6 border border-t-0 border-b-0 border-gray-800"></div>
|
||||||
>
|
<div className="w-full border-t border-l border-r border-gray-800" />
|
||||||
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">
|
|
||||||
<CircleBackground color="#06b6d4" className="animate-spin-slower" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
{/* ✅ Main boxed area */}
|
||||||
|
<div
|
||||||
|
id="get-started"
|
||||||
|
className="relative py-18 max-w-7xl mx-auto bg-[#111111] border border-t-0 border-b-0 border-gray-800"
|
||||||
|
>
|
||||||
<Container className="relative">
|
<Container className="relative">
|
||||||
<div className="mx-auto max-w-2xl text-center">
|
<div className="mx-auto max-w-3xl text-center">
|
||||||
<h2 className="text-3xl lg:text-4xl font-medium tracking-tight text-white sm:text-4xl">
|
<h2 className="text-3xl lg:text-4xl font-medium tracking-tight text-white sm:text-4xl">
|
||||||
Start Building the Future of Sovereign AI
|
Start with Mycelium Today
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<p className="mt-6 text-lg text-gray-300">
|
<p className="mt-6 text-lg text-gray-300">
|
||||||
Use today’s components — models, storage, compute, mesh —
|
The Agent Framework launches in H1 2026, but the foundation is ready now.
|
||||||
and step into agents as they arrive.
|
</p>
|
||||||
|
<p className="mt-6 text-lg text-gray-300">
|
||||||
|
Use today’s components —models, storage, compute, and network— to deploy workloads, connect nodes, and prepare for the next generation of distributed AI.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="mt-10 flex flex-wrap justify-center gap-x-6 gap-y-4">
|
{/* ✅ Two cards, stacked center with spacing */}
|
||||||
<Button
|
<div className="mt-10 flex flex-wrap justify-center gap-x-10 gap-y-8">
|
||||||
as="a"
|
<div className="flex flex-col items-center text-center max-w-xs">
|
||||||
to="/deploy"
|
<Button to="/deploy" variant="solid" color="cyan" className="mt-4">
|
||||||
variant="solid"
|
|
||||||
color="white"
|
|
||||||
>
|
|
||||||
Deploy a Model
|
Deploy a Model
|
||||||
</Button>
|
</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<Button
|
<div className="flex flex-col items-center text-center max-w-xs">
|
||||||
as="a"
|
<Button to="/host" as="a" variant="outline" color="white" className="mt-4">
|
||||||
to="/host"
|
|
||||||
variant="outline"
|
|
||||||
color="white"
|
|
||||||
>
|
|
||||||
Host a Node
|
Host a Node
|
||||||
</Button>
|
</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<Button
|
<div className="flex flex-col items-center text-center max-w-xs">
|
||||||
as="a"
|
<Button to="https://threefold.info/mycelium_network/docs/" as="a" target="_blank" variant="outline" color="white" className="mt-4">
|
||||||
to="https://threefold.info/mycelium_network/docs/"
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
variant="outline"
|
|
||||||
color="white"
|
|
||||||
>
|
|
||||||
Follow Development
|
Follow Development
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* ✅ Bottom horizontal line with spacing */}
|
||||||
|
<div className="w-full border-b border-gray-800" />
|
||||||
|
<div className="max-w-7xl mx-auto py-6 border border-t-0 border-b-0 border-gray-800 bg-transparent" />
|
||||||
</section>
|
</section>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { motion } from "framer-motion";
|
|
||||||
import { P, Eyebrow } from "@/components/Texts";
|
|
||||||
import { InfiniteMovingCards } from "@/components/magicui/infinite-moving-cards";
|
import { InfiniteMovingCards } from "@/components/magicui/infinite-moving-cards";
|
||||||
|
|
||||||
|
|
||||||
@@ -39,25 +37,10 @@ const row2 = logos.slice(6);
|
|||||||
|
|
||||||
export function Companies() {
|
export function Companies() {
|
||||||
return (
|
return (
|
||||||
<div id="companies" className="relative bg-black flex flex-col items-center justify-center w-full overflow-hidden antialiased py-4 mb-12">
|
<div id="companies" className="relative bg-[#121212] flex flex-col items-center justify-center w-full overflow-hidden antialiased py-4">
|
||||||
<div className="relative z-10 mx-auto w-full max-w-6xl p-4">
|
<div className="relative z-10 mx-auto w-full max-w-7xl p-4">
|
||||||
|
|
||||||
{/* Heading */}
|
|
||||||
<motion.div
|
|
||||||
className="flex flex-col justify-center max-w-4xl items-center mb-8 mx-auto"
|
|
||||||
initial={{ opacity: 0, y: 20 }}
|
|
||||||
whileInView={{ opacity: 1, y: 0 }}
|
|
||||||
viewport={{ once: true, amount: 0.3 }}
|
|
||||||
transition={{ duration: 0.6, ease: "easeOut" }}
|
|
||||||
>
|
|
||||||
<Eyebrow color="accent"></Eyebrow>
|
|
||||||
<P className="hidden min-xl:text-gray-100 text-center mb-6">
|
|
||||||
Mycelium Cloud allows you to deploy and scale AI agents from top global providers on a decentralized, privacy-first infrastructure.
|
|
||||||
</P>
|
|
||||||
</motion.div>
|
|
||||||
|
|
||||||
{/* Logos grid */}
|
{/* Logos grid */}
|
||||||
<div className="flex flex-col items-center gap-y-6 text-white">
|
<div className="flex flex-col items-center gap-y-6 text-white ">
|
||||||
<InfiniteMovingCards
|
<InfiniteMovingCards
|
||||||
items={row1}
|
items={row1}
|
||||||
direction="right"
|
direction="right"
|
||||||
|
|||||||
@@ -46,8 +46,12 @@ const features = [
|
|||||||
|
|
||||||
export function DeploySection() {
|
export function DeploySection() {
|
||||||
return (
|
return (
|
||||||
<section id="benefits" className="relative bg-black px-4 pb-4 pt-12 text-white lg:px-12 lg:pt-24">
|
<section className="bg-[#121212] w-full max-w-8xl mx-auto">
|
||||||
<div className="relative px-6 lg:px-12">
|
{/* ✅ Top horizontal line with spacing */}
|
||||||
|
<div className="max-w-7xl mx-auto py-6 border border-t-0 border-b-0 border-gray-800" />
|
||||||
|
<div className="w-full border-t border-l border-r border-gray-800" />
|
||||||
|
|
||||||
|
<div className="relative px-6 lg:px-12 py-12 bg-[#111111] border border-t-0 border-b-0 border-gray-800 max-w-7xl mx-auto">
|
||||||
<motion.div
|
<motion.div
|
||||||
initial={{ opacity: 0, y: 20 }}
|
initial={{ opacity: 0, y: 20 }}
|
||||||
whileInView={{ opacity: 1, y: 0 }}
|
whileInView={{ opacity: 1, y: 0 }}
|
||||||
@@ -90,6 +94,8 @@ export function DeploySection() {
|
|||||||
))}
|
))}
|
||||||
</motion.ul>
|
</motion.ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="w-full border-b border-gray-800 bg-[#121212]" />
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ export function GallerySection() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Foreground pill (Desktop) */}
|
{/* Foreground pill (Desktop) */}
|
||||||
<div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-[60] hidden md:block">
|
<div className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-60 hidden md:block">
|
||||||
<div className="flex items-center justify-between w-[1040px] gap-6 rounded-2xl bg-gray-100/80 shadow-[0_8px_40px_rgba(0,0,0,0.15)] px-12 backdrop-blur">
|
<div className="flex items-center justify-between w-[1040px] gap-6 rounded-2xl bg-gray-100/80 shadow-[0_8px_40px_rgba(0,0,0,0.15)] px-12 backdrop-blur">
|
||||||
<CP as="h4" className="max-w-[820px] h-[72px] flex items-center" color="dark">
|
<CP as="h4" className="max-w-[820px] h-[72px] flex items-center" color="dark">
|
||||||
<TypeAnimation
|
<TypeAnimation
|
||||||
|
|||||||
264
src/pages/agents/animations/AgentCoordination.tsx
Normal file
@@ -0,0 +1,264 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { motion, useReducedMotion } from "framer-motion";
|
||||||
|
import clsx from "clsx";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
className?: string;
|
||||||
|
accent?: string;
|
||||||
|
bg?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
const W = 760;
|
||||||
|
const H = 420;
|
||||||
|
|
||||||
|
const AgentNode = ({
|
||||||
|
x,
|
||||||
|
y,
|
||||||
|
r = 12,
|
||||||
|
accent = "#00b8db",
|
||||||
|
pulse = false,
|
||||||
|
delay = 0,
|
||||||
|
}: {
|
||||||
|
x: number;
|
||||||
|
y: number;
|
||||||
|
r?: number;
|
||||||
|
accent?: string;
|
||||||
|
pulse?: boolean;
|
||||||
|
delay?: number;
|
||||||
|
}) => {
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<motion.circle
|
||||||
|
cx={x}
|
||||||
|
cy={y}
|
||||||
|
r={r + 10}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 0.7 }}
|
||||||
|
transition={{ delay, duration: 0.6 }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<motion.circle
|
||||||
|
cx={x}
|
||||||
|
cy={y}
|
||||||
|
r={r}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ opacity: 0, scale: 0.85 }}
|
||||||
|
animate={{
|
||||||
|
opacity: 1,
|
||||||
|
scale: pulse && !prefers ? [1, 1.12, 1] : 1,
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration: pulse ? 1.8 : 0.6,
|
||||||
|
repeat: pulse && !prefers ? Infinity : 0,
|
||||||
|
repeatType: "mirror",
|
||||||
|
ease: [0.22, 1, 0.36, 1],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const Packet = ({
|
||||||
|
path,
|
||||||
|
delay = 0,
|
||||||
|
accent = "#00b8db",
|
||||||
|
duration = 2.2,
|
||||||
|
reverse = false,
|
||||||
|
}: {
|
||||||
|
path: string;
|
||||||
|
delay?: number;
|
||||||
|
accent?: string;
|
||||||
|
duration?: number;
|
||||||
|
reverse?: boolean;
|
||||||
|
}) => {
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
return (
|
||||||
|
<motion.circle
|
||||||
|
r={4}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ offsetDistance: reverse ? "100%" : "0%", opacity: 0 }}
|
||||||
|
animate={{
|
||||||
|
offsetDistance: reverse ? ["100%", "0%"] : ["0%", "100%"],
|
||||||
|
opacity: [0, 1, 0],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration,
|
||||||
|
repeat: !prefers ? Infinity : 0,
|
||||||
|
repeatType: "loop",
|
||||||
|
ease: "linear",
|
||||||
|
}}
|
||||||
|
style={{
|
||||||
|
offsetPath: `path('${path}')`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
export default function AgentCoordination({
|
||||||
|
className,
|
||||||
|
accent = "#00b8db",
|
||||||
|
bg = "#0a0a0a",
|
||||||
|
}: Props) {
|
||||||
|
const center = { x: 380, y: 210 };
|
||||||
|
|
||||||
|
// Specialist agents placed in a controlled orbit
|
||||||
|
const agents = [
|
||||||
|
{ x: 200, y: 120 },
|
||||||
|
{ x: 560, y: 120 },
|
||||||
|
{ x: 620, y: 260 },
|
||||||
|
{ x: 500, y: 330 },
|
||||||
|
{ x: 260, y: 330 },
|
||||||
|
{ x: 140, y: 260 },
|
||||||
|
];
|
||||||
|
|
||||||
|
const paths = agents.map(
|
||||||
|
(a) => `M ${center.x} ${center.y} Q ${(center.x + a.x) / 2} ${(center.y + a.y) / 2 - 40} ${a.x} ${a.y}`
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className={clsx("relative overflow-hidden", className)}
|
||||||
|
aria-hidden="true"
|
||||||
|
role="img"
|
||||||
|
aria-label="Agent coordination and sovereign workflow management"
|
||||||
|
style={{ background: bg }}
|
||||||
|
>
|
||||||
|
<svg viewBox={`0 0 ${W} ${H}`} className="w-full h-full" preserveAspectRatio="xMidYMid slice">
|
||||||
|
|
||||||
|
{/* background */}
|
||||||
|
<defs>
|
||||||
|
<pattern id="grid-dark" width="28" height="28" patternUnits="userSpaceOnUse">
|
||||||
|
<path d="M 28 0 L 0 0 0 28" stroke="#0f0f0f" strokeWidth="1" />
|
||||||
|
</pattern>
|
||||||
|
|
||||||
|
<radialGradient id="glow" cx="50%" cy="50%" r="50%">
|
||||||
|
<stop offset="0%" stopColor={accent} stopOpacity="0.20" />
|
||||||
|
<stop offset="100%" stopColor={accent} stopOpacity="0" />
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
|
||||||
|
<rect width={W} height={H} fill="url(#grid-dark)" />
|
||||||
|
|
||||||
|
{/* global glow */}
|
||||||
|
<circle cx={center.x} cy={center.y} r={240} fill="url(#glow)" opacity={0.45} />
|
||||||
|
|
||||||
|
{/* POLICY RING */}
|
||||||
|
<motion.circle
|
||||||
|
cx={center.x}
|
||||||
|
cy={center.y}
|
||||||
|
r={110}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
strokeDasharray="14 10"
|
||||||
|
animate={{ opacity: [0.25, 0.7, 0.25] }}
|
||||||
|
transition={{
|
||||||
|
duration: 3,
|
||||||
|
repeat: Infinity,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* CHECKPOINT GATE */}
|
||||||
|
<motion.rect
|
||||||
|
x={center.x - 50}
|
||||||
|
y={center.y - 130}
|
||||||
|
width={100}
|
||||||
|
height={22}
|
||||||
|
rx={6}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
animate={{ opacity: [0.2, 0.7, 0.2] }}
|
||||||
|
transition={{
|
||||||
|
duration: 2.4,
|
||||||
|
repeat: Infinity,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* central conductor agent */}
|
||||||
|
<motion.circle
|
||||||
|
cx={center.x}
|
||||||
|
cy={center.y}
|
||||||
|
r={26}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ opacity: 0, scale: 0.85 }}
|
||||||
|
animate={{
|
||||||
|
opacity: 1,
|
||||||
|
scale: [1, 1.06, 1],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 1.8,
|
||||||
|
repeat: Infinity,
|
||||||
|
repeatType: "mirror",
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* inward → outward routing lines */}
|
||||||
|
{paths.map((p, i) => (
|
||||||
|
<motion.path
|
||||||
|
key={`p-${i}`}
|
||||||
|
d={p}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={3}
|
||||||
|
strokeLinecap="round"
|
||||||
|
fill="none"
|
||||||
|
initial={{ pathLength: 0, opacity: 0 }}
|
||||||
|
animate={{ pathLength: 1, opacity: 0.4 }}
|
||||||
|
transition={{
|
||||||
|
delay: i * 0.1,
|
||||||
|
duration: 0.8,
|
||||||
|
ease: [0.22, 1, 0.36, 1],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* OUTBOUND tasks */}
|
||||||
|
{paths.map((p, i) => (
|
||||||
|
<Packet
|
||||||
|
key={`out-${i}`}
|
||||||
|
path={p}
|
||||||
|
delay={0.3 * i}
|
||||||
|
accent={accent}
|
||||||
|
duration={2}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* INBOUND results */}
|
||||||
|
{paths.map((p, i) => (
|
||||||
|
<Packet
|
||||||
|
key={`in-${i}`}
|
||||||
|
path={p}
|
||||||
|
reverse
|
||||||
|
delay={0.5 * i}
|
||||||
|
accent={accent}
|
||||||
|
duration={2.2}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* specialist agents */}
|
||||||
|
{agents.map((a, i) => (
|
||||||
|
<AgentNode
|
||||||
|
key={`agent-${i}`}
|
||||||
|
x={a.x}
|
||||||
|
y={a.y}
|
||||||
|
pulse={i % 2 === 0}
|
||||||
|
delay={i * 0.1}
|
||||||
|
accent={accent}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
263
src/pages/agents/animations/DeterministicExecution.tsx
Normal file
@@ -0,0 +1,263 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { motion, useReducedMotion } from "framer-motion";
|
||||||
|
import clsx from "clsx";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
className?: string;
|
||||||
|
accent?: string;
|
||||||
|
bg?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
const W = 760;
|
||||||
|
const H = 420;
|
||||||
|
|
||||||
|
const PulseCircle = ({
|
||||||
|
x,
|
||||||
|
y,
|
||||||
|
r,
|
||||||
|
accent,
|
||||||
|
delay = 0,
|
||||||
|
}: {
|
||||||
|
x: number;
|
||||||
|
y: number;
|
||||||
|
r: number;
|
||||||
|
accent: string;
|
||||||
|
delay?: number;
|
||||||
|
}) => {
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
return (
|
||||||
|
<motion.circle
|
||||||
|
cx={x}
|
||||||
|
cy={y}
|
||||||
|
r={r}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
initial={{ scale: 0.8, opacity: 0 }}
|
||||||
|
animate={{
|
||||||
|
scale: !prefers ? [1, 1.25, 1] : 1,
|
||||||
|
opacity: !prefers ? [0.4, 0.9, 0.4] : 1,
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration: 2.2,
|
||||||
|
repeat: !prefers ? Infinity : 0,
|
||||||
|
repeatType: "mirror",
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const Packet = ({
|
||||||
|
path,
|
||||||
|
delay = 0,
|
||||||
|
duration = 2,
|
||||||
|
accent = "#00b8db",
|
||||||
|
}: {
|
||||||
|
path: string;
|
||||||
|
delay?: number;
|
||||||
|
duration?: number;
|
||||||
|
accent?: string;
|
||||||
|
}) => {
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
return (
|
||||||
|
<motion.circle
|
||||||
|
r={4}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ offsetDistance: "0%", opacity: 0 }}
|
||||||
|
animate={{
|
||||||
|
offsetDistance: ["0%", "100%"],
|
||||||
|
opacity: [0, 1, 0],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration,
|
||||||
|
repeat: !prefers ? Infinity : 0,
|
||||||
|
repeatType: "loop",
|
||||||
|
ease: "linear",
|
||||||
|
}}
|
||||||
|
style={{ offsetPath: `path('${path}')` }}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function DeterministicExecution({
|
||||||
|
className,
|
||||||
|
accent = "#00b8db",
|
||||||
|
bg = "#0a0a0a",
|
||||||
|
}: Props) {
|
||||||
|
const left = { x: 200, y: 210 };
|
||||||
|
const center = { x: 380, y: 210 };
|
||||||
|
const right = { x: 560, y: 210 };
|
||||||
|
|
||||||
|
const leftToCenter = `M ${left.x} ${left.y} L ${center.x} ${center.y}`;
|
||||||
|
const centerToRight = `M ${center.x} ${center.y} L ${right.x} ${right.y}`;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className={clsx("relative overflow-hidden", className)}
|
||||||
|
aria-hidden="true"
|
||||||
|
role="img"
|
||||||
|
aria-label="Deterministic deployment and verifiable code execution"
|
||||||
|
style={{ background: bg }}
|
||||||
|
>
|
||||||
|
<svg viewBox={`0 0 ${W} ${H}`} className="w-full h-full" preserveAspectRatio="xMidYMid slice">
|
||||||
|
|
||||||
|
{/* background grid */}
|
||||||
|
<defs>
|
||||||
|
<pattern id="grid-dark" width="28" height="28" patternUnits="userSpaceOnUse">
|
||||||
|
<path d="M 28 0 L 0 0 0 28" stroke="#0f0f0f" strokeWidth="1" />
|
||||||
|
</pattern>
|
||||||
|
|
||||||
|
<radialGradient id="glow" cx="50%" cy="50%" r="50%">
|
||||||
|
<stop offset="0%" stopColor={accent} stopOpacity="0.18" />
|
||||||
|
<stop offset="100%" stopColor={accent} stopOpacity="0" />
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
|
||||||
|
<rect width={W} height={H} fill="url(#grid-dark)" />
|
||||||
|
|
||||||
|
{/* global glow */}
|
||||||
|
<circle cx={center.x} cy={center.y} r={230} fill="url(#glow)" opacity={0.4} />
|
||||||
|
|
||||||
|
{/* LEFT: Declare Intent block */}
|
||||||
|
<motion.rect
|
||||||
|
x={left.x - 60}
|
||||||
|
y={left.y - 40}
|
||||||
|
width={120}
|
||||||
|
height={80}
|
||||||
|
rx={10}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={3}
|
||||||
|
fill="none"
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 0.8 }}
|
||||||
|
transition={{ duration: 0.6 }}
|
||||||
|
/>
|
||||||
|
<motion.rect
|
||||||
|
x={left.x - 45}
|
||||||
|
y={left.y - 25}
|
||||||
|
width={90}
|
||||||
|
height={50}
|
||||||
|
rx={6}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ opacity: 0, scale: 0.85 }}
|
||||||
|
animate={{ opacity: 1, scale: 1 }}
|
||||||
|
transition={{ duration: 0.8 }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* CENTER: Cryptographic hash */}
|
||||||
|
<motion.rect
|
||||||
|
x={center.x - 40}
|
||||||
|
y={center.y - 40}
|
||||||
|
width={80}
|
||||||
|
height={80}
|
||||||
|
rx={12}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
strokeDasharray="10 6"
|
||||||
|
fill="none"
|
||||||
|
animate={{ opacity: [0.4, 0.9, 0.4] }}
|
||||||
|
transition={{
|
||||||
|
duration: 2,
|
||||||
|
repeat: Infinity,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* hash print */}
|
||||||
|
<motion.text
|
||||||
|
x={center.x}
|
||||||
|
y={center.y + 5}
|
||||||
|
textAnchor="middle"
|
||||||
|
fill={accent}
|
||||||
|
fontFamily="monospace"
|
||||||
|
fontSize="14"
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 0.9 }}
|
||||||
|
transition={{ delay: 0.3 }}
|
||||||
|
>
|
||||||
|
9f1a..42c7
|
||||||
|
</motion.text>
|
||||||
|
|
||||||
|
{/* signature stamp */}
|
||||||
|
<motion.circle
|
||||||
|
cx={center.x + 55}
|
||||||
|
cy={center.y - 55}
|
||||||
|
r={14}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
initial={{ scale: 0, opacity: 0 }}
|
||||||
|
animate={{ scale: 1, opacity: 1 }}
|
||||||
|
transition={{ delay: 0.4, duration: 0.6 }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* RIGHT: Verified Execution Node */}
|
||||||
|
<motion.circle
|
||||||
|
cx={right.x}
|
||||||
|
cy={right.y}
|
||||||
|
r={24}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ opacity: 0, scale: 0.8 }}
|
||||||
|
animate={{
|
||||||
|
opacity: 1,
|
||||||
|
scale: [1, 1.06, 1],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 1.8,
|
||||||
|
repeat: Infinity,
|
||||||
|
repeatType: "mirror",
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* outer attestation ring */}
|
||||||
|
<PulseCircle x={right.x} y={right.y} r={40} accent={accent} delay={0.2} />
|
||||||
|
|
||||||
|
{/* immutable logs ring */}
|
||||||
|
<motion.circle
|
||||||
|
cx={right.x}
|
||||||
|
cy={right.y}
|
||||||
|
r={70}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
strokeDasharray="14 12"
|
||||||
|
fill="none"
|
||||||
|
animate={{ opacity: [0.2, 0.6, 0.2] }}
|
||||||
|
transition={{
|
||||||
|
duration: 3,
|
||||||
|
repeat: Infinity,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* deterministic path lines */}
|
||||||
|
<motion.path
|
||||||
|
d={leftToCenter}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={3}
|
||||||
|
fill="none"
|
||||||
|
initial={{ pathLength: 0 }}
|
||||||
|
animate={{ pathLength: 1 }}
|
||||||
|
transition={{ duration: 0.8 }}
|
||||||
|
/>
|
||||||
|
<motion.path
|
||||||
|
d={centerToRight}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={3}
|
||||||
|
fill="none"
|
||||||
|
initial={{ pathLength: 0 }}
|
||||||
|
animate={{ pathLength: 1 }}
|
||||||
|
transition={{ duration: 0.8, delay: 0.2 }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* active cryptographic pulses */}
|
||||||
|
<Packet path={leftToCenter} delay={0.4} accent={accent} duration={1.8} />
|
||||||
|
<Packet path={centerToRight} delay={0.8} accent={accent} duration={1.8} />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
238
src/pages/agents/animations/Fungistor.tsx
Normal file
@@ -0,0 +1,238 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { motion, useReducedMotion } from "framer-motion";
|
||||||
|
import clsx from "clsx";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
className?: string;
|
||||||
|
accent?: string;
|
||||||
|
bg?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
const W = 760;
|
||||||
|
const H = 420;
|
||||||
|
|
||||||
|
const Node = ({
|
||||||
|
x,
|
||||||
|
y,
|
||||||
|
r = 10,
|
||||||
|
accent = "#00b8db",
|
||||||
|
pulse = false,
|
||||||
|
delay = 0,
|
||||||
|
}: {
|
||||||
|
x: number;
|
||||||
|
y: number;
|
||||||
|
r?: number;
|
||||||
|
accent?: string;
|
||||||
|
pulse?: boolean;
|
||||||
|
delay?: number;
|
||||||
|
}) => {
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{/* outer faint ring */}
|
||||||
|
<motion.circle
|
||||||
|
cx={x}
|
||||||
|
cy={y}
|
||||||
|
r={r + 10}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 0.6 }}
|
||||||
|
transition={{ delay, duration: 0.6 }}
|
||||||
|
/>
|
||||||
|
{/* glowing shard node */}
|
||||||
|
<motion.circle
|
||||||
|
cx={x}
|
||||||
|
cy={y}
|
||||||
|
r={r}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ opacity: 0, scale: 0.8 }}
|
||||||
|
animate={{
|
||||||
|
opacity: 1,
|
||||||
|
scale: pulse && !prefers ? [1, 1.12, 1] : 1,
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration: pulse && !prefers ? 1.8 : 0.6,
|
||||||
|
repeat: pulse && !prefers ? Infinity : 0,
|
||||||
|
repeatType: "mirror",
|
||||||
|
ease: [0.22, 1, 0.36, 1],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const Shard = ({
|
||||||
|
path,
|
||||||
|
delay = 0,
|
||||||
|
accent = "#00b8db",
|
||||||
|
duration = 2,
|
||||||
|
}: {
|
||||||
|
path: string;
|
||||||
|
delay?: number;
|
||||||
|
accent?: string;
|
||||||
|
duration?: number;
|
||||||
|
}) => {
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
return (
|
||||||
|
<motion.circle
|
||||||
|
r={4}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ offsetDistance: "0%", opacity: 0 }}
|
||||||
|
animate={{
|
||||||
|
offsetDistance: ["0%", "100%"],
|
||||||
|
opacity: [0, 1, 0],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration,
|
||||||
|
repeat: !prefers ? Infinity : 0,
|
||||||
|
repeatType: "loop",
|
||||||
|
ease: "linear",
|
||||||
|
}}
|
||||||
|
style={{ offsetPath: `path('${path}')` }}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function FungiStor({
|
||||||
|
className,
|
||||||
|
accent = "#00b8db",
|
||||||
|
bg = "#0a0a0a",
|
||||||
|
}: Props) {
|
||||||
|
const center = { x: 380, y: 210 };
|
||||||
|
const shardNodes = [
|
||||||
|
{ x: 160, y: 100 },
|
||||||
|
{ x: 260, y: 70 },
|
||||||
|
{ x: 580, y: 100 },
|
||||||
|
{ x: 620, y: 250 },
|
||||||
|
{ x: 500, y: 330 },
|
||||||
|
{ x: 240, y: 320 },
|
||||||
|
];
|
||||||
|
|
||||||
|
// outgoing shard paths
|
||||||
|
const paths = shardNodes.map(
|
||||||
|
(n) => `M ${center.x} ${center.y} Q ${(n.x + center.x) / 2} ${(n.y + center.y) / 2 - 40} ${n.x} ${n.y}`
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className={clsx("relative overflow-hidden", className)}
|
||||||
|
aria-hidden="true"
|
||||||
|
role="img"
|
||||||
|
aria-label="FungiStor — distributed long-term AI memory"
|
||||||
|
style={{ background: bg }}
|
||||||
|
>
|
||||||
|
<svg viewBox={`0 0 ${W} ${H}`} className="w-full h-full" preserveAspectRatio="xMidYMid slice">
|
||||||
|
{/* Background grid */}
|
||||||
|
<defs>
|
||||||
|
<pattern id="grid-dark" width="28" height="28" patternUnits="userSpaceOnUse">
|
||||||
|
<path d="M 28 0 L 0 0 0 28" fill="none" stroke="#0f0f0f" strokeWidth="1" />
|
||||||
|
</pattern>
|
||||||
|
<radialGradient id="glow" cx="50%" cy="50%" r="50%">
|
||||||
|
<stop offset="0%" stopColor={accent} stopOpacity="0.15" />
|
||||||
|
<stop offset="100%" stopColor={accent} stopOpacity="0" />
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
|
||||||
|
<rect width={W} height={H} fill="url(#grid-dark)" />
|
||||||
|
|
||||||
|
{/* Soft global network glow */}
|
||||||
|
<circle cx={center.x} cy={center.y} r={180} fill="url(#glow)" opacity={0.4} />
|
||||||
|
|
||||||
|
{/* Source data core */}
|
||||||
|
<motion.rect
|
||||||
|
x={center.x - 40}
|
||||||
|
y={center.y - 40}
|
||||||
|
width={80}
|
||||||
|
height={80}
|
||||||
|
rx={12}
|
||||||
|
fill="none"
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
strokeDasharray="10 6"
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: [0.4, 0.9, 0.4] }}
|
||||||
|
transition={{ duration: 2, repeat: Infinity, ease: "easeInOut" }}
|
||||||
|
/>
|
||||||
|
<motion.rect
|
||||||
|
x={center.x - 20}
|
||||||
|
y={center.y - 20}
|
||||||
|
width={40}
|
||||||
|
height={40}
|
||||||
|
rx={6}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ opacity: 0, scale: 0.8 }}
|
||||||
|
animate={{
|
||||||
|
opacity: 1,
|
||||||
|
scale: [1, 1.08, 1],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 1.8,
|
||||||
|
repeat: Infinity,
|
||||||
|
repeatType: "mirror",
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* Outgoing shard connections */}
|
||||||
|
{paths.map((p, i) => (
|
||||||
|
<motion.path
|
||||||
|
key={`path-${i}`}
|
||||||
|
d={p}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
initial={{ pathLength: 0, opacity: 0 }}
|
||||||
|
animate={{ pathLength: 1, opacity: 0.4 }}
|
||||||
|
transition={{
|
||||||
|
delay: 0.05 * i,
|
||||||
|
duration: 0.8,
|
||||||
|
ease: [0.22, 1, 0.36, 1],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* Animated data shards traveling */}
|
||||||
|
{paths.map((p, i) => (
|
||||||
|
<Shard key={`shard-${i}`} path={p} delay={i * 0.4} accent={accent} duration={2.6} />
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* Destination storage nodes */}
|
||||||
|
{shardNodes.map((n, i) => (
|
||||||
|
<Node
|
||||||
|
key={`node-${i}`}
|
||||||
|
x={n.x}
|
||||||
|
y={n.y}
|
||||||
|
accent={accent}
|
||||||
|
pulse={i % 2 === 0}
|
||||||
|
delay={i * 0.1}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* “Reconstruction glow” pulse ring */}
|
||||||
|
<motion.circle
|
||||||
|
cx={center.x}
|
||||||
|
cy={center.y}
|
||||||
|
r={110}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
initial={{ scale: 0.9, opacity: 0 }}
|
||||||
|
animate={{
|
||||||
|
scale: [0.9, 1.2, 0.9],
|
||||||
|
opacity: [0.2, 0.6, 0.2],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 3.2,
|
||||||
|
repeat: Infinity,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
286
src/pages/agents/animations/Herodb.tsx
Normal file
@@ -0,0 +1,286 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { motion, useReducedMotion } from "framer-motion";
|
||||||
|
import clsx from "clsx";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
className?: string;
|
||||||
|
accent?: string;
|
||||||
|
bg?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
const W = 760;
|
||||||
|
const H = 420;
|
||||||
|
|
||||||
|
const Node = ({
|
||||||
|
x,
|
||||||
|
y,
|
||||||
|
r = 12,
|
||||||
|
accent = "#00b8db",
|
||||||
|
pulse = false,
|
||||||
|
delay = 0,
|
||||||
|
type = "dot",
|
||||||
|
}: {
|
||||||
|
x: number;
|
||||||
|
y: number;
|
||||||
|
r?: number;
|
||||||
|
accent?: string;
|
||||||
|
pulse?: boolean;
|
||||||
|
delay?: number;
|
||||||
|
type?: "dot" | "text" | "image" | "audio";
|
||||||
|
}) => {
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{/* faint ring */}
|
||||||
|
<motion.circle
|
||||||
|
cx={x}
|
||||||
|
cy={y}
|
||||||
|
r={r + 10}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 0.7 }}
|
||||||
|
transition={{ delay, duration: 0.6 }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* inner icon shape to represent modality */}
|
||||||
|
{type === "text" && (
|
||||||
|
<motion.rect
|
||||||
|
x={x - r}
|
||||||
|
y={y - r / 2}
|
||||||
|
width={r * 2}
|
||||||
|
height={r}
|
||||||
|
rx={3}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 1 }}
|
||||||
|
transition={{ delay }}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{type === "image" && (
|
||||||
|
<motion.path
|
||||||
|
d={`M ${x - r} ${y + r/2} L ${x - r} ${y - r/2} L ${x + r} ${y - r/2} L ${x + r} ${y + r/2} Z`}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 1 }}
|
||||||
|
transition={{ delay }}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{type === "audio" && (
|
||||||
|
<motion.path
|
||||||
|
d={`
|
||||||
|
M ${x - r/2} ${y - r/2}
|
||||||
|
L ${x - r/2} ${y + r/2}
|
||||||
|
M ${x} ${y - r/3}
|
||||||
|
L ${x} ${y + r/3}
|
||||||
|
M ${x + r/2} ${y - r/4}
|
||||||
|
L ${x + r/2} ${y + r/4}
|
||||||
|
`}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
strokeLinecap="round"
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 1 }}
|
||||||
|
transition={{ delay }}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* standard pulsing circle fallback */}
|
||||||
|
{type === "dot" && (
|
||||||
|
<motion.circle
|
||||||
|
cx={x}
|
||||||
|
cy={y}
|
||||||
|
r={r}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ opacity: 0, scale: 0.85 }}
|
||||||
|
animate={{
|
||||||
|
opacity: 1,
|
||||||
|
scale: pulse && !prefers ? [1, 1.12, 1] : 1,
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration: pulse && !prefers ? 1.6 : 0.6,
|
||||||
|
repeat: pulse && !prefers ? Infinity : 0,
|
||||||
|
repeatType: "mirror",
|
||||||
|
ease: [0.22, 1, 0.36, 1],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
// inward pulse particle
|
||||||
|
const Packet = ({
|
||||||
|
path,
|
||||||
|
delay = 0,
|
||||||
|
accent = "#00b8db",
|
||||||
|
duration = 1.8,
|
||||||
|
}: {
|
||||||
|
path: string;
|
||||||
|
delay?: number;
|
||||||
|
accent?: string;
|
||||||
|
duration?: number;
|
||||||
|
}) => {
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
return (
|
||||||
|
<motion.circle
|
||||||
|
r={4}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ offsetDistance: "100%", opacity: 0 }}
|
||||||
|
animate={{
|
||||||
|
offsetDistance: ["100%", "0%"],
|
||||||
|
opacity: [0, 1, 0],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration,
|
||||||
|
repeat: !prefers ? Infinity : 0,
|
||||||
|
repeatType: "loop",
|
||||||
|
ease: "linear",
|
||||||
|
}}
|
||||||
|
style={{ offsetPath: `path('${path}')` }}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function Herodb({
|
||||||
|
className,
|
||||||
|
accent = "#00b8db",
|
||||||
|
bg = "#0a0a0a",
|
||||||
|
}: Props) {
|
||||||
|
const center = { x: 380, y: 210 };
|
||||||
|
|
||||||
|
const shardNodes = [
|
||||||
|
{ x: 160, y: 100, type: "text" },
|
||||||
|
{ x: 580, y: 120, type: "image" },
|
||||||
|
{ x: 620, y: 280, type: "audio" },
|
||||||
|
{ x: 420, y: 330, type: "text" },
|
||||||
|
{ x: 240, y: 320, type: "image" },
|
||||||
|
{ x: 150, y: 220, type: "dot" },
|
||||||
|
];
|
||||||
|
|
||||||
|
const paths = shardNodes.map(
|
||||||
|
(n) =>
|
||||||
|
`M ${n.x} ${n.y} Q ${(n.x + center.x) / 2} ${(n.y + center.y) / 2 - 40} ${center.x} ${center.y}`
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className={clsx("relative overflow-hidden", className)}
|
||||||
|
aria-hidden="true"
|
||||||
|
role="img"
|
||||||
|
aria-label="HeroDB — active AI memory retrieval"
|
||||||
|
style={{ background: bg }}
|
||||||
|
>
|
||||||
|
<svg viewBox={`0 0 ${W} ${H}`} className="w-full h-full" preserveAspectRatio="xMidYMid slice">
|
||||||
|
{/* Background grid */}
|
||||||
|
<defs>
|
||||||
|
<pattern id="grid-dark" width="28" height="28" patternUnits="userSpaceOnUse">
|
||||||
|
<path d="M 28 0 L 0 0 0 28" fill="none" stroke="#0f0f0f" strokeWidth="1" />
|
||||||
|
</pattern>
|
||||||
|
<radialGradient id="glow" cx="50%" cy="50%" r="50%">
|
||||||
|
<stop offset="0%" stopColor={accent} stopOpacity="0.18" />
|
||||||
|
<stop offset="100%" stopColor={accent} stopOpacity="0" />
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
|
||||||
|
<rect width={W} height={H} fill="url(#grid-dark)" />
|
||||||
|
|
||||||
|
{/* global halo */}
|
||||||
|
<circle
|
||||||
|
cx={center.x}
|
||||||
|
cy={center.y}
|
||||||
|
r={200}
|
||||||
|
fill="url(#glow)"
|
||||||
|
opacity={0.45}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* core retrieval sphere */}
|
||||||
|
<motion.circle
|
||||||
|
cx={center.x}
|
||||||
|
cy={center.y}
|
||||||
|
r={22}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ opacity: 0, scale: 0.85 }}
|
||||||
|
animate={{
|
||||||
|
opacity: 1,
|
||||||
|
scale: [1, 1.05, 1],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 1.6,
|
||||||
|
repeat: Infinity,
|
||||||
|
repeatType: "mirror",
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* core aura ring */}
|
||||||
|
<motion.circle
|
||||||
|
cx={center.x}
|
||||||
|
cy={center.y}
|
||||||
|
r={40}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
animate={{
|
||||||
|
opacity: [0.2, 0.7, 0.2],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 2.2,
|
||||||
|
repeat: Infinity,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* inward paths */}
|
||||||
|
{paths.map((p, i) => (
|
||||||
|
<motion.path
|
||||||
|
key={`path-${i}`}
|
||||||
|
d={p}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
initial={{ pathLength: 0, opacity: 0 }}
|
||||||
|
animate={{ pathLength: 1, opacity: 0.4 }}
|
||||||
|
transition={{
|
||||||
|
delay: 0.05 * i,
|
||||||
|
duration: 0.7,
|
||||||
|
ease: [0.22, 1, 0.36, 1],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* packets flowing inward */}
|
||||||
|
{paths.map((p, i) => (
|
||||||
|
<Packet
|
||||||
|
key={`pkt-${i}`}
|
||||||
|
path={p}
|
||||||
|
delay={i * 0.3}
|
||||||
|
accent={accent}
|
||||||
|
duration={1.8}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* modality nodes */}
|
||||||
|
{shardNodes.map((n, i) => (
|
||||||
|
<Node
|
||||||
|
key={`node-${i}`}
|
||||||
|
x={n.x}
|
||||||
|
y={n.y}
|
||||||
|
type={n.type as any}
|
||||||
|
r={12}
|
||||||
|
accent={accent}
|
||||||
|
pulse={i % 2 === 0}
|
||||||
|
delay={i * 0.1}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
231
src/pages/agents/animations/MOSSandboxes.tsx
Normal file
@@ -0,0 +1,231 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { motion, useReducedMotion } from "framer-motion";
|
||||||
|
import clsx from "clsx";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
className?: string;
|
||||||
|
accent?: string;
|
||||||
|
bg?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
const W = 760;
|
||||||
|
const H = 420;
|
||||||
|
|
||||||
|
const PulseRing = ({
|
||||||
|
x,
|
||||||
|
y,
|
||||||
|
accent,
|
||||||
|
delay = 0,
|
||||||
|
}: {
|
||||||
|
x: number;
|
||||||
|
y: number;
|
||||||
|
accent: string;
|
||||||
|
delay?: number;
|
||||||
|
}) => {
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
return (
|
||||||
|
<motion.circle
|
||||||
|
cx={x}
|
||||||
|
cy={y}
|
||||||
|
r={42}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
initial={{ scale: 0.85, opacity: 0 }}
|
||||||
|
animate={{
|
||||||
|
scale: !prefers ? [1, 1.12, 1] : 1,
|
||||||
|
opacity: !prefers ? [0.15, 0.6, 0.15] : 0.4,
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration: 2,
|
||||||
|
repeat: !prefers ? Infinity : 0,
|
||||||
|
repeatType: "mirror",
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const Egress = ({
|
||||||
|
from,
|
||||||
|
to,
|
||||||
|
delay = 0,
|
||||||
|
accent = "#00b8db",
|
||||||
|
}: {
|
||||||
|
from: { x: number; y: number };
|
||||||
|
to: { x: number; y: number };
|
||||||
|
delay?: number;
|
||||||
|
accent?: string;
|
||||||
|
}) => {
|
||||||
|
const path = `M ${from.x} ${from.y} L ${to.x} ${to.y}`;
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<motion.path
|
||||||
|
d={path}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={3}
|
||||||
|
strokeLinecap="round"
|
||||||
|
fill="none"
|
||||||
|
initial={{ pathLength: 0, opacity: 0 }}
|
||||||
|
animate={{ pathLength: 1, opacity: 0.4 }}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration: 0.8,
|
||||||
|
ease: [0.22, 1, 0.36, 1],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<motion.circle
|
||||||
|
r={4}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ offsetDistance: "0%", opacity: 0 }}
|
||||||
|
animate={{
|
||||||
|
offsetDistance: ["0%", "100%"],
|
||||||
|
opacity: [0, 1, 0],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration: 1.6,
|
||||||
|
repeat: !prefers ? Infinity : 0,
|
||||||
|
repeatType: "loop",
|
||||||
|
ease: "linear",
|
||||||
|
}}
|
||||||
|
style={{
|
||||||
|
offsetPath: `path('${path}')`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function MOSSandboxes({
|
||||||
|
className,
|
||||||
|
accent = "#00b8db",
|
||||||
|
bg = "#0a0a0a",
|
||||||
|
}: Props) {
|
||||||
|
const center = { x: 380, y: 210 };
|
||||||
|
|
||||||
|
// scoped egress ports
|
||||||
|
const egress = [
|
||||||
|
{ from: center, to: { x: 520, y: 140 } },
|
||||||
|
{ from: center, to: { x: 520, y: 280 } },
|
||||||
|
{ from: center, to: { x: 260, y: 320 } },
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className={clsx("relative overflow-hidden", className)}
|
||||||
|
aria-hidden="true"
|
||||||
|
role="img"
|
||||||
|
aria-label="MOS Secure Agent Sandboxes"
|
||||||
|
style={{ background: bg }}
|
||||||
|
>
|
||||||
|
<svg viewBox={`0 0 ${W} ${H}`} className="w-full h-full" preserveAspectRatio="xMidYMid slice">
|
||||||
|
{/* BACKGROUND GRID */}
|
||||||
|
<defs>
|
||||||
|
<pattern id="grid-dark" width="28" height="28" patternUnits="userSpaceOnUse">
|
||||||
|
<path d="M 28 0 L 0 0 0 28" stroke="#0f0f0f" strokeWidth="1" />
|
||||||
|
</pattern>
|
||||||
|
|
||||||
|
<radialGradient id="glow" cx="50%" cy="50%" r="50%">
|
||||||
|
<stop offset="0%" stopColor={accent} stopOpacity="0.20" />
|
||||||
|
<stop offset="100%" stopColor={accent} stopOpacity="0" />
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
|
||||||
|
<rect width={W} height={H} fill="url(#grid-dark)" />
|
||||||
|
|
||||||
|
{/* GLOBAL GLOW */}
|
||||||
|
<circle cx={center.x} cy={center.y} r={200} fill="url(#glow)" opacity={0.45} />
|
||||||
|
|
||||||
|
{/* SANDBOX OUTER ENCLAVE */}
|
||||||
|
<motion.rect
|
||||||
|
x={center.x - 90}
|
||||||
|
y={center.y - 60}
|
||||||
|
width={180}
|
||||||
|
height={120}
|
||||||
|
rx={16}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={3}
|
||||||
|
fill="none"
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 0.7 }}
|
||||||
|
transition={{ duration: 0.6 }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* ATTESTATION RING */}
|
||||||
|
<PulseRing x={center.x} y={center.y} accent={accent} delay={0.3} />
|
||||||
|
|
||||||
|
{/* SIGNED WORKSPACE CORE */}
|
||||||
|
<motion.rect
|
||||||
|
x={center.x - 40}
|
||||||
|
y={center.y - 30}
|
||||||
|
width={80}
|
||||||
|
height={60}
|
||||||
|
rx={10}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2}
|
||||||
|
strokeDasharray="10 6"
|
||||||
|
fill="none"
|
||||||
|
initial={{ opacity: 0, scale: 0.8 }}
|
||||||
|
animate={{
|
||||||
|
opacity: [0.4, 0.9, 0.4],
|
||||||
|
scale: [1, 1.06, 1],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 2,
|
||||||
|
repeat: Infinity,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* SANDBOX ACTIVE PAYLOAD */}
|
||||||
|
<motion.circle
|
||||||
|
cx={center.x}
|
||||||
|
cy={center.y}
|
||||||
|
r={18}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ scale: 0.6, opacity: 0 }}
|
||||||
|
animate={{
|
||||||
|
opacity: 1,
|
||||||
|
scale: [1, 1.1, 1],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 1.8,
|
||||||
|
repeat: Infinity,
|
||||||
|
repeatType: "mirror",
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* EGRESS PATHS */}
|
||||||
|
{egress.map((e, i) => (
|
||||||
|
<Egress key={i} from={e.from} to={e.to} delay={i * 0.2} accent={accent} />
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* “TEAR DOWN” FADE — ephemeral sandbox lifecycle */}
|
||||||
|
<motion.rect
|
||||||
|
x={center.x - 90}
|
||||||
|
y={center.y - 60}
|
||||||
|
width={180}
|
||||||
|
height={120}
|
||||||
|
rx={16}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{
|
||||||
|
opacity: [0, 0, 0.12, 0],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 4,
|
||||||
|
repeat: Infinity,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
231
src/pages/agents/animations/MyceliumMesh.tsx
Normal file
@@ -0,0 +1,231 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { motion, useReducedMotion } from "framer-motion";
|
||||||
|
import clsx from "clsx";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
className?: string;
|
||||||
|
accent?: string;
|
||||||
|
bg?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
const W = 760;
|
||||||
|
const H = 420;
|
||||||
|
|
||||||
|
const Node = ({
|
||||||
|
x,
|
||||||
|
y,
|
||||||
|
r = 12,
|
||||||
|
accent = "#00b8db",
|
||||||
|
pulse = false,
|
||||||
|
delay = 0,
|
||||||
|
}: {
|
||||||
|
x: number;
|
||||||
|
y: number;
|
||||||
|
r?: number;
|
||||||
|
accent?: string;
|
||||||
|
pulse?: boolean;
|
||||||
|
delay?: number;
|
||||||
|
}) => {
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{/* Outer ring */}
|
||||||
|
<motion.circle
|
||||||
|
cx={x}
|
||||||
|
cy={y}
|
||||||
|
r={r + 8}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={2}
|
||||||
|
fill="none"
|
||||||
|
initial={{ opacity: 0 }}
|
||||||
|
animate={{ opacity: 0.8 }}
|
||||||
|
transition={{ duration: 0.6, delay }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
{/* Core node */}
|
||||||
|
<motion.circle
|
||||||
|
cx={x}
|
||||||
|
cy={y}
|
||||||
|
r={r}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ opacity: 0, scale: 0.85 }}
|
||||||
|
animate={{
|
||||||
|
opacity: 1,
|
||||||
|
scale: pulse && !prefers ? [1, 1.1, 1] : 1,
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: pulse ? 1.6 : 0.6,
|
||||||
|
repeat: pulse && !prefers ? Infinity : 0,
|
||||||
|
repeatType: "mirror",
|
||||||
|
ease: [0.22, 1, 0.36, 1],
|
||||||
|
delay,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Animated encrypted packet */
|
||||||
|
const Packet = ({
|
||||||
|
path,
|
||||||
|
delay = 0,
|
||||||
|
accent = "#00b8db",
|
||||||
|
duration = 2.4,
|
||||||
|
}: {
|
||||||
|
path: string;
|
||||||
|
delay?: number;
|
||||||
|
accent?: string;
|
||||||
|
duration?: number;
|
||||||
|
}) => {
|
||||||
|
const prefers = useReducedMotion();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<motion.circle
|
||||||
|
r={5}
|
||||||
|
fill={accent}
|
||||||
|
initial={{ offsetDistance: "0%", opacity: 0 }}
|
||||||
|
animate={{
|
||||||
|
offsetDistance: ["0%", "100%"],
|
||||||
|
opacity: [0, 1, 0],
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
delay,
|
||||||
|
duration,
|
||||||
|
repeat: !prefers ? Infinity : 0,
|
||||||
|
repeatType: "loop",
|
||||||
|
ease: "linear",
|
||||||
|
}}
|
||||||
|
style={{ offsetPath: `path('${path}')` }}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function MyceliumMesh({
|
||||||
|
className,
|
||||||
|
accent = "#00b8db",
|
||||||
|
bg = "#0a0a0a",
|
||||||
|
}: Props) {
|
||||||
|
const center = { x: 380, y: 210 };
|
||||||
|
|
||||||
|
// Peer nodes forming a mesh
|
||||||
|
const nodes = [
|
||||||
|
{ x: 180, y: 120 },
|
||||||
|
{ x: 580, y: 100 },
|
||||||
|
{ x: 620, y: 260 },
|
||||||
|
{ x: 460, y: 330 },
|
||||||
|
{ x: 240, y: 320 },
|
||||||
|
{ x: 140, y: 240 },
|
||||||
|
];
|
||||||
|
|
||||||
|
// Multi-path routing (3 routes to illustrate "self-healing")
|
||||||
|
const routes = [
|
||||||
|
[nodes[0], nodes[1], nodes[2]], // path A→B→C
|
||||||
|
[nodes[0], nodes[5], nodes[4], nodes[3]], // path A→F→E→D
|
||||||
|
[nodes[1], nodes[4], nodes[3]], // path B→E→D
|
||||||
|
];
|
||||||
|
|
||||||
|
// Convert list of nodes → SVG path
|
||||||
|
const toPath = (list: any[]) =>
|
||||||
|
list
|
||||||
|
.map((p: any, i: number) =>
|
||||||
|
i === 0 ? `M ${p.x} ${p.y}` : `L ${p.x} ${p.y}`
|
||||||
|
)
|
||||||
|
.join(" ");
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className={clsx(
|
||||||
|
"relative overflow-hidden",
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
aria-hidden="true"
|
||||||
|
role="img"
|
||||||
|
aria-label="Mycelium Mesh — secure communication network"
|
||||||
|
style={{ background: bg }}
|
||||||
|
>
|
||||||
|
<svg viewBox={`0 0 ${W} ${H}`} className="w-full h-full" preserveAspectRatio="xMidYMid slice">
|
||||||
|
{/* Background grid */}
|
||||||
|
<defs>
|
||||||
|
<pattern id="grid-dark" width="28" height="28" patternUnits="userSpaceOnUse">
|
||||||
|
<path d="M 28 0 L 0 0 0 28" stroke="#0f0f0f" strokeWidth="1" />
|
||||||
|
</pattern>
|
||||||
|
|
||||||
|
<radialGradient id="glow" cx="50%" cy="50%" r="50%">
|
||||||
|
<stop offset="0%" stopColor={accent} stopOpacity="0.18" />
|
||||||
|
<stop offset="100%" stopColor={accent} stopOpacity="0" />
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
|
||||||
|
<rect width={W} height={H} fill="url(#grid-dark)" />
|
||||||
|
|
||||||
|
{/* Wide ambient glow */}
|
||||||
|
<circle cx={center.x} cy={center.y} r={240} fill="url(#glow)" opacity={0.45} />
|
||||||
|
|
||||||
|
{/* Multi-path routing lines */}
|
||||||
|
{routes.map((pathNodes, i) => (
|
||||||
|
<motion.path
|
||||||
|
key={`line-${i}`}
|
||||||
|
d={toPath(pathNodes)}
|
||||||
|
stroke="#1F2937"
|
||||||
|
strokeWidth={3}
|
||||||
|
fill="none"
|
||||||
|
strokeLinecap="round"
|
||||||
|
initial={{ pathLength: 0, opacity: 0 }}
|
||||||
|
animate={{ pathLength: 1, opacity: 0.4 }}
|
||||||
|
transition={{
|
||||||
|
delay: 0.2 * i,
|
||||||
|
duration: 1,
|
||||||
|
ease: [0.22, 1, 0.36, 1],
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* Cyan “active” encrypted routing */}
|
||||||
|
{routes.map((pathNodes, i) => (
|
||||||
|
<motion.path
|
||||||
|
key={`signal-${i}`}
|
||||||
|
d={toPath(pathNodes)}
|
||||||
|
stroke={accent}
|
||||||
|
strokeWidth={2.5}
|
||||||
|
strokeDasharray="12 10"
|
||||||
|
strokeLinecap="round"
|
||||||
|
fill="none"
|
||||||
|
animate={{ opacity: [0.25, 0.8, 0.25] }}
|
||||||
|
transition={{
|
||||||
|
duration: 2.4,
|
||||||
|
repeat: Infinity,
|
||||||
|
delay: i * 0.3,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* Moving encrypted packets */}
|
||||||
|
{routes.map((pathNodes, i) => (
|
||||||
|
<Packet
|
||||||
|
key={`pkt-${i}`}
|
||||||
|
path={toPath(pathNodes)}
|
||||||
|
delay={i * 0.5}
|
||||||
|
duration={2.6}
|
||||||
|
accent={accent}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
|
||||||
|
{/* Pulse nodes */}
|
||||||
|
{nodes.map((n, i) => (
|
||||||
|
<Node
|
||||||
|
key={`node-${i}`}
|
||||||
|
x={n.x}
|
||||||
|
y={n.y}
|
||||||
|
r={12}
|
||||||
|
accent={accent}
|
||||||
|
pulse={i % 2 === 0}
|
||||||
|
delay={i * 0.15}
|
||||||
|
/>
|
||||||
|
))}
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -5,15 +5,15 @@ import { Button } from "@/components/Button";
|
|||||||
|
|
||||||
export function CallToAction() {
|
export function CallToAction() {
|
||||||
return (
|
return (
|
||||||
<section className="relative overflow-hidden bg-gray-900">
|
<section className="relative overflow-hidden bg-[#121212]">
|
||||||
{/* ✅ Top horizontal line with spacing */}
|
{/* ✅ Top horizontal line with spacing */}
|
||||||
<div className="max-w-7xl bg-[#090909] mx-auto py-6 border border-t-0 border-b-0 border-gray-700"></div>
|
<div className="max-w-7xl bg-[#121212] mx-auto py-6 border border-t-0 border-b-0 border-gray-800"></div>
|
||||||
<div className="w-full border-t border-l border-r border-gray-700" />
|
<div className="w-full border-t border-l border-r border-gray-800" />
|
||||||
|
|
||||||
{/* ✅ Main boxed area */}
|
{/* ✅ Main boxed area */}
|
||||||
<div
|
<div
|
||||||
id="get-started"
|
id="get-started"
|
||||||
className="relative py-18 max-w-7xl mx-auto bg-[#090909] border border-t-0 border-b-0 border-gray-700"
|
className="relative py-18 max-w-7xl mx-auto bg-[#111111] border border-t-0 border-b-0 border-gray-800"
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
||||||
@@ -48,8 +48,8 @@ export function CallToAction() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* ✅ Bottom horizontal line with spacing */}
|
{/* ✅ Bottom horizontal line with spacing */}
|
||||||
<div className="w-full border-b border-gray-700" />
|
<div className="w-full border-b border-gray-800" />
|
||||||
<div className="max-w-7xl mx-auto py-6 border border-t-0 border-b-0 border-gray-700 bg-transparent" />
|
<div className="max-w-7xl mx-auto py-6 border border-t-0 border-b-0 border-gray-800 bg-transparent" />
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export function CloudBluePrint() {
|
|||||||
<section className="w-full max-w-8xl mx-auto bg-transparent">
|
<section className="w-full max-w-8xl mx-auto bg-transparent">
|
||||||
|
|
||||||
{/* ✅ Boxed container */}
|
{/* ✅ Boxed container */}
|
||||||
<div className="max-w-7xl bg-white mx-auto pb-12 border border-t-0 border-b-0 border-gray-200">
|
<div className="max-w-7xl bg-white mx-auto py-12 border border-t-0 border-b-0 border-gray-100">
|
||||||
<Container>
|
<Container>
|
||||||
<div className="mx-auto max-w-4xl sm:text-center">
|
<div className="mx-auto max-w-4xl sm:text-center">
|
||||||
<Eyebrow className="text-cyan-500">Featured Blueprint</Eyebrow>
|
<Eyebrow className="text-cyan-500">Featured Blueprint</Eyebrow>
|
||||||
@@ -54,8 +54,8 @@ export function CloudBluePrint() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* ✅ Bottom line + bottom spacer */}
|
{/* ✅ Bottom line + bottom spacer */}
|
||||||
<div className="w-full border-b border-gray-200" />
|
<div className="w-full border-b border-gray-100" />
|
||||||
<div className="max-w-7xl mx-auto py-6 border border-t-0 border-b-0 border-gray-200 bg-transparent" />
|
<div className="max-w-7xl mx-auto py-6 border border-t-0 border-b-0 border-gray-100 bg-transparent" />
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -406,7 +406,7 @@ export function CloudFeatures() {
|
|||||||
<section
|
<section
|
||||||
id="overview"
|
id="overview"
|
||||||
aria-label="Features for investing all your money"
|
aria-label="Features for investing all your money"
|
||||||
className="bg-gray-900 py-20 sm:py-32"
|
className="bg-[#121212] py-20 sm:py-32"
|
||||||
>
|
>
|
||||||
<Container>
|
<Container>
|
||||||
<div className="mx-auto max-w-2xl lg:mx-0 lg:max-w-3xl">
|
<div className="mx-auto max-w-2xl lg:mx-0 lg:max-w-3xl">
|
||||||
|
|||||||
@@ -243,11 +243,11 @@ export function CloudFeaturesLight() {
|
|||||||
return (
|
return (
|
||||||
<div className="">
|
<div className="">
|
||||||
{/* ✅ Top horizontal line with spacing */}
|
{/* ✅ Top horizontal line with spacing */}
|
||||||
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-200"></div>
|
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-100"></div>
|
||||||
<div className="w-full border-t border-l border-r border-gray-200" />
|
<div className="w-full border-t border-l border-r border-gray-100" />
|
||||||
|
|
||||||
{/* ✅ Boxed container (border-x only) */}
|
{/* ✅ Boxed container (border-x only) */}
|
||||||
<div className="relative mx-auto max-w-7xl border border-t-0 border-b-0 border-gray-200 bg-white">
|
<div className="relative mx-auto max-w-7xl border border-t-0 border-b-0 border-gray-100 bg-white">
|
||||||
<section className="px-6 py-16 lg:py-16">
|
<section className="px-6 py-16 lg:py-16">
|
||||||
<Container>
|
<Container>
|
||||||
<div className="max-w-4xl mx-auto items-center text-center">
|
<div className="max-w-4xl mx-auto items-center text-center">
|
||||||
@@ -274,10 +274,10 @@ export function CloudFeaturesLight() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* ✅ Bottom horizontal line */}
|
{/* ✅ Bottom horizontal line */}
|
||||||
<div className="w-full border-b border-gray-200" />
|
<div className="w-full border-b border-gray-100" />
|
||||||
|
|
||||||
{/* ✅ Bottom spacer matching hero */}
|
{/* ✅ Bottom spacer matching hero */}
|
||||||
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-200"></div>
|
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-100"></div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export function CloudHeroNew({ onGetStartedClick = () => {} }: { onGetStartedCli
|
|||||||
<div className="">
|
<div className="">
|
||||||
{/* Boxed container */}
|
{/* Boxed container */}
|
||||||
<div
|
<div
|
||||||
className="relative mx-auto max-w-7xl border border-t-0 border-b-0 border-gray-200 bg-white overflow-hidden bg-contain bg-right bg-no-repeat"
|
className="relative mx-auto max-w-7xl border border-t-0 border-b-0 border-gray-100 bg-white overflow-hidden bg-contain bg-right bg-no-repeat"
|
||||||
style={{ backgroundImage: "url('/images/cloudhero4.webp')", backgroundSize: "contain" }}
|
style={{ backgroundImage: "url('/images/cloudhero4.webp')", backgroundSize: "contain" }}
|
||||||
>
|
>
|
||||||
{/* Inner padding */}
|
{/* Inner padding */}
|
||||||
@@ -44,8 +44,8 @@ export function CloudHeroNew({ onGetStartedClick = () => {} }: { onGetStartedCli
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/* ✅ Bottom horizontal line with spacing */}
|
{/* ✅ Bottom horizontal line with spacing */}
|
||||||
<div className="w-full border-b border-gray-200" />
|
<div className="w-full border-b border-gray-100" />
|
||||||
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-200"></div>
|
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-100"></div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
} from '@headlessui/react'
|
} from '@headlessui/react'
|
||||||
import { MinusIcon, PlusIcon } from '@heroicons/react/24/outline'
|
import { MinusIcon, PlusIcon } from '@heroicons/react/24/outline'
|
||||||
|
|
||||||
import { Eyebrow, H3 } from "@/components/Texts"
|
import { Eyebrow, H3, H4 } from "@/components/Texts"
|
||||||
|
|
||||||
|
|
||||||
const product = {
|
const product = {
|
||||||
@@ -42,33 +42,35 @@ export function CloudHostingNew() {
|
|||||||
return (
|
return (
|
||||||
<div className="bg-[#121212] text-white">
|
<div className="bg-[#121212] text-white">
|
||||||
{/* ✅ Top horizontal line with spacing */}
|
{/* ✅ Top horizontal line with spacing */}
|
||||||
<div className="max-w-7xl bg-[#111111] mx-auto py-6 border border-t-0 border-b-0 border-gray-600"></div>
|
<div className="max-w-7xl bg-[#111111] mx-auto py-6 border border-t-0 border-b-0 border-gray-800"></div>
|
||||||
<div className="w-full border-t border-l border-r border-gray-600" />
|
<div className="w-full border-t border-l border-r border-gray-800" />
|
||||||
{/* ✅ MAIN CONTENT */}
|
{/* ✅ MAIN CONTENT */}
|
||||||
<main className="mx-auto max-w-7xl px-6 lg:px-12 py-12 border border-t-0 border-b-0 border-gray-600">
|
<main className="mx-auto max-w-7xl px-6 lg:px-12 py-12 border border-t-0 border-b-0 border-gray-800">
|
||||||
<div className="mx-auto max-w-2xl lg:max-w-none">
|
<div className="mx-auto max-w-2xl lg:max-w-none">
|
||||||
|
|
||||||
{/* ✅ Product Section */}
|
{/* ✅ Product Section */}
|
||||||
<div className="lg:grid lg:grid-cols-2 lg:items-start lg:gap-x-8">
|
<div className="lg:grid lg:grid-cols-5 lg:items-start lg:gap-x-8">
|
||||||
|
|
||||||
{/* ✅ Image */}
|
{/* ✅ Image */}
|
||||||
<img alt="Mycelium Cloud" src="/images/cloudhosting.webp" className="aspect-square w-[600px] object-cover" />
|
<div className="lg:col-span-2 lg:mt-8 mt-2">
|
||||||
|
<img alt="Mycelium Cloud" src="/images/cloudhosting.webp" className="aspect-square w-full object-cover" />
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* ✅ Product info */}
|
{/* ✅ Product info */}
|
||||||
<div className="mt-10 px-4 sm:mt-16 sm:px-0 lg:mt-0">
|
<div className="mt-8 px-4 sm:px-0 lg:mt-0 lg:col-span-3">
|
||||||
<Eyebrow>{product.subtitle}</Eyebrow>
|
<Eyebrow>{product.subtitle}</Eyebrow>
|
||||||
<h3 className="lg:text-4xl text-3xl text-white">{product.name}</h3>
|
<H4 className=" text-white">{product.name}</H4>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div className="mt-6 text-gray-300 text-xl"
|
<div className="mt-4 text-gray-300 text-xl"
|
||||||
dangerouslySetInnerHTML={{ __html: product.description }}
|
dangerouslySetInnerHTML={{ __html: product.description }}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
{/* ✅ Details accordion */}
|
{/* ✅ Details accordion */}
|
||||||
<section className="mt-8">
|
<section className="mt-6">
|
||||||
<div className="divide-y divide-gray-800 border-t border-cyan-500">
|
<div className="divide-y divide-gray-800 border-t border-cyan-500">
|
||||||
{product.details.map((detail) => (
|
{product.details.map((detail) => (
|
||||||
<Disclosure key={detail.name} as="div">
|
<Disclosure key={detail.name} as="div">
|
||||||
@@ -96,8 +98,8 @@ export function CloudHostingNew() {
|
|||||||
</main>
|
</main>
|
||||||
|
|
||||||
{/* ✅ Bottom horizontal line with spacing */}
|
{/* ✅ Bottom horizontal line with spacing */}
|
||||||
<div className="w-full border-b border-gray-600" />
|
<div className="w-full border-b border-gray-800" />
|
||||||
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-600"></div>
|
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-800"></div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||