Compare commits
119 Commits
developmen
...
c3b171e3b2
| Author | SHA1 | Date | |
|---|---|---|---|
| c3b171e3b2 | |||
| 7d8ae1d26d | |||
| 3c4da26ecb | |||
| 023921a6cc | |||
| 8e033a3c21 | |||
| 01b1c20b60 | |||
| c962743737 | |||
| e62c4a5688 | |||
| 6b735b5a40 | |||
| 7b9cf135e4 | |||
| 544d7d541b | |||
| b21f874a05 | |||
| e6b194e8c7 | |||
| a8105a0551 | |||
| de5d990fc9 | |||
| 29d2b76db9 | |||
| a0beec808e | |||
| 96c445aa41 | |||
| ce4b4b3360 | |||
| c849c74a53 | |||
| 7bc895d8be | |||
| c0b84fd578 | |||
| 6d96ff9ea8 | |||
| f1e1721b25 | |||
| aed3e8ed25 | |||
| f126287018 | |||
| 9f1e78e116 | |||
| d469bb7b99 | |||
| 97fdf3aa4f | |||
| c1ca5e35f0 | |||
| e5ed88b676 | |||
| 6beb9c1432 | |||
| a9f53224cf | |||
| 3df73ec418 | |||
| c6efc29ab6 | |||
| bec52e7185 | |||
| 29f713cd2f | |||
| d8a7a7331a | |||
| 3f89d1c441 | |||
| fa30aeff43 | |||
| cbbc87cc29 | |||
| 8dfc46cabe | |||
| 00c5f7f880 | |||
| 2dbcda4997 | |||
| 979d151537 | |||
| 252e2335c2 | |||
| 9b2c406e9e | |||
| 791216433c | |||
| a4a6c95612 | |||
| da5cf2d4a2 | |||
| d2e2e87a0c | |||
| a8d91a1624 | |||
| f9ee299362 | |||
| 8509b80f47 | |||
| 7d6bbc2763 | |||
| 4cf6f63139 | |||
| ef9865862b | |||
| 8fdcf1777d | |||
| 503fe26303 | |||
| 39b20f30a4 | |||
| d53f2d943f | |||
| 3213179ff6 | |||
| c289c63856 | |||
| 6329d2dcac | |||
| 3604b47137 | |||
| fe0e231204 | |||
| da539a5e55 | |||
| b7e003a680 | |||
| 0324b2e8ad | |||
| 49d9c22de3 | |||
| 828fe93f46 | |||
| 8b04b668b6 | |||
| 618e1b0f5b | |||
| e46848b98d | |||
| 1fb08e83f2 | |||
| fb35ede79d | |||
| 1a34508699 | |||
| 97da7ba907 | |||
| 2b7559ab47 | |||
| 3ab559aa84 | |||
| 57c39a8b2b | |||
| 6ff539b3fc | |||
| 29e2d942de | |||
| def0972762 | |||
| 1c37cc08ee | |||
| 0eef2cd013 | |||
| 3cd41ab1d9 | |||
| 3121251272 | |||
| 56ceac1319 | |||
| a3028ff448 | |||
| 33821987aa | |||
| 678da4b66c | |||
| 326efc9fbd | |||
| 3a656ef5e9 | |||
| 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 |
@@ -4,8 +4,8 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Project Mycelium - Unleash the Power of Decentralized Networks</title>
|
<title>Project Mycelium - Built for Digital Sovereignty</title>
|
||||||
<meta name="description" content="Project Mycelium's technology enables anyone to deploy their own Internet infrastructure, anywhere." />
|
<meta name="description" content="Discover Project Mycelium. A sovereign peer-to-peer network for private communication, storage, and compute. Build and run your digital environment on infrastructure you control." />
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;700&display=swap" rel="stylesheet" />
|
<link href="https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;700&display=swap" rel="stylesheet" />
|
||||||
|
|||||||
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",
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
BIN
public/images/6b080b431e628e15126de0893db49e1a.webp
Normal file
|
After Width: | Height: | Size: 65 KiB |
BIN
public/images/Modern Metallic Home Symbol.png
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
BIN
public/images/agent1.png
Normal file
|
After Width: | Height: | Size: 618 KiB |
BIN
public/images/ainode.png
Normal file
|
After Width: | Height: | Size: 508 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 |
BIN
public/images/autonomous.png
Normal file
|
After Width: | Height: | Size: 63 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 |
BIN
public/images/cons.png
Normal file
|
After Width: | Height: | Size: 793 KiB |
BIN
public/images/dev.png
Normal file
|
After Width: | Height: | Size: 801 KiB |
BIN
public/images/edge.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
public/images/edgenode.png
Normal file
|
After Width: | Height: | Size: 792 KiB |
BIN
public/images/encryptednode.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
public/images/energy.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
public/images/fullstack.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
public/images/mainlogo.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
public/images/mobile/agents.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/images/mobile/cloudpage.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/images/mobile/homepage.jpg
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/mobile/nodes.jpg
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/images/mobile/pods.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
public/images/pod1.png
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
BIN
public/images/podsimg.png
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
public/images/seekers.png
Normal file
|
After Width: | Height: | Size: 990 KiB |
BIN
public/images/uptime.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 156 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);
|
||||||
}
|
}
|
||||||
|
|||||||
26
src/App.tsx
@@ -1,6 +1,6 @@
|
|||||||
import { HashRouter, Routes, Route } from 'react-router-dom';
|
import { HashRouter, Routes, Route, useLocation } from 'react-router-dom';
|
||||||
import { Layout } from './components/Layout';
|
import { Layout } from './components/Layout';
|
||||||
import { lazy, Suspense } from 'react';
|
import { lazy, Suspense, useEffect } from 'react';
|
||||||
|
|
||||||
const HomePage = lazy(() => import('./pages/home/HomePage'));
|
const HomePage = lazy(() => import('./pages/home/HomePage'));
|
||||||
const CloudPage = lazy(() => import('./pages/cloud/CloudPage'));
|
const CloudPage = lazy(() => import('./pages/cloud/CloudPage'));
|
||||||
@@ -11,10 +11,31 @@ 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 PodsPage = lazy(() => import('./pages/pods/PodsPage'));
|
||||||
|
const NodesPage = lazy(() => import('./pages/nodes/NodesPage'));
|
||||||
|
|
||||||
|
function ScrollToTop() {
|
||||||
|
const { pathname, hash } = useLocation();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (hash) {
|
||||||
|
const id = hash.replace('#', '');
|
||||||
|
const element = document.getElementById(id);
|
||||||
|
if (element) {
|
||||||
|
element.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
window.scrollTo({ top: 0, left: 0, behavior: 'auto' });
|
||||||
|
}, [pathname, hash]);
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<HashRouter>
|
<HashRouter>
|
||||||
|
<ScrollToTop />
|
||||||
<Suspense fallback={<div>Loading...</div>}>
|
<Suspense fallback={<div>Loading...</div>}>
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<Layout />}>
|
<Route path="/" element={<Layout />}>
|
||||||
@@ -27,6 +48,7 @@ function App() {
|
|||||||
<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="pods" element={<PodsPage />} />
|
||||||
|
<Route path="nodes" element={<NodesPage />} />
|
||||||
</Route>
|
</Route>
|
||||||
</Routes>
|
</Routes>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
|
|||||||
@@ -3,9 +3,11 @@ import clsx from 'clsx'
|
|||||||
|
|
||||||
const baseStyles = {
|
const baseStyles = {
|
||||||
solid:
|
solid:
|
||||||
'inline-flex justify-center rounded-full py-2 px-5 text-base font-semibold transition-colors',
|
'inline-flex justify-center rounded-full py-2 px-5 text-sm md:text-base font-semibold transition-colors',
|
||||||
outline:
|
outline:
|
||||||
'inline-flex justify-center bg-transparent rounded-full border py-[calc(--spacing(2)-1px)] px-[calc(--spacing(5)-1px)] text-base transition-colors',
|
'inline-flex justify-center bg-transparent font-semibold rounded-full border border-2 py-[calc(--spacing(2)-1px)] px-[calc(--spacing(5)-1px)] text-sm md:text-base transition-colors',
|
||||||
|
link:
|
||||||
|
'inline-flex items-center text-sm md:text-base font-semibold transition-colors',
|
||||||
}
|
}
|
||||||
|
|
||||||
const variantStyles = {
|
const variantStyles = {
|
||||||
@@ -18,8 +20,13 @@ const variantStyles = {
|
|||||||
},
|
},
|
||||||
outline: {
|
outline: {
|
||||||
cyan: 'border-cyan-500 text-cyan-500',
|
cyan: 'border-cyan-500 text-cyan-500',
|
||||||
gray: 'border-gray-300 text-gray-700 hover:border-cyan-500 active:border-cyan-500',
|
gray: 'border-gray-200 text-gray-600 hover:text-cyan-500 hover:border-cyan-500 active:border-cyan-500',
|
||||||
white: 'border-gray-300 text-white hover:border-cyan-500 active:border-cyan-500',
|
white: 'border-gray-300 text-white hover:text-cyan-500 hover:border-cyan-500 active:border-cyan-500',
|
||||||
|
},
|
||||||
|
link: {
|
||||||
|
cyan: 'text-cyan-400 underline hover:text-cyan-300',
|
||||||
|
white: 'text-white underline hover:text-cyan-300',
|
||||||
|
dark: 'text-gray-900 underline hover:text-cyan-500',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,7 +37,11 @@ type ButtonProps = (
|
|||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
variant: 'outline'
|
variant: 'outline'
|
||||||
color?: (keyof typeof variantStyles.outline) | 'cyan'
|
color?: keyof typeof variantStyles.outline
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
variant: 'link'
|
||||||
|
color?: keyof typeof variantStyles.link
|
||||||
}
|
}
|
||||||
) &
|
) &
|
||||||
(
|
(
|
||||||
@@ -43,16 +54,33 @@ type ButtonProps = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
export function Button({ className, as, ...props }: ButtonProps) {
|
export function Button({ className, as, ...props }: ButtonProps) {
|
||||||
props.variant ??= 'solid'
|
// Set safe defaults per variant so color always matches a valid palette key
|
||||||
props.color ??= 'gray'
|
if (!props.variant) {
|
||||||
|
props.variant = 'solid'
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!props.color) {
|
||||||
|
if (props.variant === 'solid') {
|
||||||
|
props.color = 'gray'
|
||||||
|
} else if (props.variant === 'outline') {
|
||||||
|
props.color = 'gray'
|
||||||
|
} else if (props.variant === 'link') {
|
||||||
|
props.color = 'cyan'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const variant = props.variant
|
||||||
|
const color = props.color as string
|
||||||
|
|
||||||
className = clsx(
|
className = clsx(
|
||||||
baseStyles[props.variant],
|
baseStyles[variant],
|
||||||
props.variant === 'outline'
|
variant === 'outline'
|
||||||
? variantStyles.outline[props.color]
|
? variantStyles.outline[color as keyof typeof variantStyles.outline]
|
||||||
: props.variant === 'solid'
|
: variant === 'solid'
|
||||||
? variantStyles.solid[props.color]
|
? variantStyles.solid[color as keyof typeof variantStyles.solid]
|
||||||
: undefined,
|
: variant === 'link'
|
||||||
|
? variantStyles.link[color as keyof typeof variantStyles.link]
|
||||||
|
: undefined,
|
||||||
className,
|
className,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,27 +8,27 @@ 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="/images/logomark.svg" alt="Mycelium Logomark" className="h-15 w-15 flex-none" />
|
<img src="/images/logomark.svg" alt="Mycelium Logomark" className="h-13 w-13 flex-none" />
|
||||||
<div className="ml-4">
|
<div className="ml-4">
|
||||||
<p className="text-base font-semibold">Project Mycelium</p>
|
<p className="text-base lg:text-lg font-semibold">Project Mycelium</p>
|
||||||
<p className="mt-1 text-sm">Unleash the Power of Decentralization</p>
|
<p className="mt-1 text-sm">Built for Digital Sovereignty</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="/pods" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
|
<Link to="/nodes" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
|
||||||
Pods
|
Nodes
|
||||||
</Link>
|
</Link>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,11 +49,11 @@ export function Footer() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<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">
|
<div className="flex flex-col items-center border-t border-gray-100 py-8 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://ourworld.tf/" target="_blank" rel="noopener noreferrer" className="font-semibold hover:text-cyan-500 transition-colors">
|
||||||
ThreeFold
|
OurWorld
|
||||||
</a>{' '}
|
</a>{' '}
|
||||||
{new Date().getFullYear()}. All rights reserved.
|
{new Date().getFullYear()}. All rights reserved.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -1,32 +1,14 @@
|
|||||||
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/mainlogo.svg'
|
||||||
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';
|
|
||||||
return 'Cloud';
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className="bg-white">
|
<header className="bg-white">
|
||||||
<nav className="border-b border-gray-100">
|
<nav className="border-b border-gray-100">
|
||||||
@@ -36,28 +18,24 @@ export function Header() {
|
|||||||
<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={
|
|
||||||
<>
|
|
||||||
{['Compute', 'Storage', 'GPU'].includes(getCurrentPageName()) ? (
|
|
||||||
<>
|
|
||||||
<span className="text-gray-500">Cloud {' >'} </span>
|
|
||||||
<span>{getCurrentPageName()}</span>
|
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
'Cloud'
|
|
||||||
)}
|
|
||||||
<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"
|
||||||
@@ -65,10 +43,10 @@ export function Header() {
|
|||||||
Agents
|
Agents
|
||||||
</Link>
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
to="/pods"
|
to="/nodes"
|
||||||
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"
|
||||||
>
|
>
|
||||||
Pods
|
Nodes
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -124,16 +102,6 @@ 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"
|
|
||||||
onClick={() => setMobileMenuOpen(false)}
|
|
||||||
>
|
|
||||||
{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"
|
||||||
@@ -141,6 +109,20 @@ export function Header() {
|
|||||||
>
|
>
|
||||||
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"
|
||||||
@@ -149,11 +131,11 @@ export function Header() {
|
|||||||
Agents
|
Agents
|
||||||
</Link>
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
to="/pods"
|
to="/nodes"
|
||||||
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)}
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
>
|
>
|
||||||
Pods
|
Nodes
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="py-6">
|
<div className="py-6">
|
||||||
|
|||||||
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/mainlogo.svg'
|
||||||
|
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="/nodes"
|
||||||
|
className="text-base/7 tracking-tight text-gray-300 hover:text-cyan-400 transition-colors"
|
||||||
|
>
|
||||||
|
Nodes
|
||||||
|
</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="/nodes"
|
||||||
|
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)}
|
||||||
|
>
|
||||||
|
Nodes
|
||||||
|
</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>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,8 +1,42 @@
|
|||||||
|
import { useEffect } from 'react'
|
||||||
import { Outlet } from 'react-router-dom'
|
import { Outlet } from 'react-router-dom'
|
||||||
import { Footer } from './Footer'
|
import { Footer } from './Footer'
|
||||||
import { Header } from './Header'
|
import { Header } from './Header'
|
||||||
|
|
||||||
export function Layout() {
|
export function Layout() {
|
||||||
|
useEffect(() => {
|
||||||
|
if (typeof window === 'undefined') return
|
||||||
|
|
||||||
|
if (document.getElementById('mailerlite-universal')) return
|
||||||
|
|
||||||
|
const script = document.createElement('script')
|
||||||
|
script.id = 'mailerlite-universal'
|
||||||
|
script.innerHTML = `
|
||||||
|
(function(m,a,i,l,e,r){
|
||||||
|
m['MailerLiteObject']=e;
|
||||||
|
function f(){
|
||||||
|
var c={a:arguments,q:[]};
|
||||||
|
var r=this.push(c);
|
||||||
|
return "number"!=typeof r?r:f.bind(c.q);
|
||||||
|
}
|
||||||
|
f.q=f.q||[];
|
||||||
|
m[e]=m[e]||f.bind(f.q);
|
||||||
|
m[e].q=m[e].q||f.q;
|
||||||
|
r=a.createElement(i);
|
||||||
|
var _=a.getElementsByTagName(i)[0];
|
||||||
|
r.async=1;
|
||||||
|
r.src=l+'?v'+(~~(new Date().getTime()/1000000));
|
||||||
|
_.parentNode.insertBefore(r,_);
|
||||||
|
})(window, document, 'script', 'https://static.mailerlite.com/js/universal.js', 'ml');
|
||||||
|
window.ml_account = ml('accounts', '1778010', 'x2d3d9f8n1', 'load');
|
||||||
|
`
|
||||||
|
|
||||||
|
document.body.appendChild(script)
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
script.remove()
|
||||||
|
}
|
||||||
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-[#fdfdfd] antialiased relative" style={{ fontFamily: 'var(--font-inter)' }}>
|
<div className="bg-[#fdfdfd] antialiased relative" style={{ fontFamily: 'var(--font-inter)' }}>
|
||||||
|
|||||||
@@ -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-base lg:text-lg font-medium')
|
export const CT = createTextComponent('span', 'text-base lg:text-lg leading-normal 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-normal font-light')
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import React, { useCallback, useEffect, useState } from "react";
|
import React, { useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
export const InfiniteMovingCards = ({
|
export const InfiniteMovingCards = ({
|
||||||
items,
|
items,
|
||||||
direction = "left",
|
direction = "left",
|
||||||
speed = "fast",
|
speed = "slow",
|
||||||
pauseOnHover = true,
|
pauseOnHover = true,
|
||||||
className,
|
className,
|
||||||
}: {
|
}: {
|
||||||
@@ -15,43 +15,39 @@ export const InfiniteMovingCards = ({
|
|||||||
speed?: "fast" | "normal" | "slow";
|
speed?: "fast" | "normal" | "slow";
|
||||||
pauseOnHover?: boolean;
|
pauseOnHover?: boolean;
|
||||||
className?: string;
|
className?: string;
|
||||||
}): JSX.Element => {
|
}) => {
|
||||||
const containerRef = React.useRef<HTMLDivElement>(null);
|
const containerRef = useRef<HTMLDivElement>(null);
|
||||||
const scrollerRef = React.useRef<HTMLUListElement>(null);
|
const scrollerRef = useRef<HTMLUListElement>(null);
|
||||||
const [start, setStart] = useState(false);
|
const [isReady, setIsReady] = useState(false);
|
||||||
|
|
||||||
|
|
||||||
const getSpeed = useCallback(() => {
|
|
||||||
if (containerRef.current) {
|
|
||||||
if (speed === "fast") {
|
|
||||||
containerRef.current.style.setProperty("--animation-duration", "20s");
|
|
||||||
} else if (speed === "normal") {
|
|
||||||
containerRef.current.style.setProperty("--animation-duration", "40s");
|
|
||||||
} else {
|
|
||||||
containerRef.current.style.setProperty("--animation-duration", "80s");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, [speed]);
|
|
||||||
|
|
||||||
const addAnimation = useCallback(() => {
|
|
||||||
if (containerRef.current && scrollerRef.current) {
|
|
||||||
const scrollerContent = Array.from(scrollerRef.current.children);
|
|
||||||
|
|
||||||
scrollerContent.forEach((item) => {
|
|
||||||
const duplicatedItem = item.cloneNode(true);
|
|
||||||
if (scrollerRef.current) {
|
|
||||||
scrollerRef.current.appendChild(duplicatedItem);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
getSpeed();
|
|
||||||
setStart(true);
|
|
||||||
}
|
|
||||||
}, [getSpeed]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
addAnimation();
|
if (!scrollerRef.current) return;
|
||||||
}, [addAnimation]);
|
|
||||||
|
const children = Array.from(scrollerRef.current.children);
|
||||||
|
|
||||||
|
// duplicate each item ONCE
|
||||||
|
children.forEach((item) => {
|
||||||
|
const clone = item.cloneNode(true);
|
||||||
|
scrollerRef.current!.appendChild(clone);
|
||||||
|
});
|
||||||
|
|
||||||
|
// set speed variable
|
||||||
|
const duration =
|
||||||
|
speed === "fast" ? "20s" : speed === "normal" ? "40s" : "80s";
|
||||||
|
|
||||||
|
containerRef.current?.style.setProperty(
|
||||||
|
"--animation-duration",
|
||||||
|
duration
|
||||||
|
);
|
||||||
|
|
||||||
|
// set direction variable
|
||||||
|
containerRef.current?.style.setProperty(
|
||||||
|
"--animation-direction",
|
||||||
|
direction === "left" ? "forwards" : "reverse"
|
||||||
|
);
|
||||||
|
|
||||||
|
setIsReady(true);
|
||||||
|
}, [direction, speed]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
@@ -61,16 +57,16 @@ export const InfiniteMovingCards = ({
|
|||||||
<ul
|
<ul
|
||||||
ref={scrollerRef}
|
ref={scrollerRef}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex min-w-full shrink-0 gap-16 py-4 w-max flex-nowrap",
|
"flex w-max shrink-0 gap-16 py-4",
|
||||||
start && "animate-scroll",
|
isReady &&
|
||||||
pauseOnHover && "hover:[animation-play-state:paused]",
|
(direction === "left"
|
||||||
|
? "animate-infinite-scroll"
|
||||||
|
: "animate-infinite-scroll-right"),
|
||||||
|
pauseOnHover && "hover:[animation-play-state:paused]"
|
||||||
)}
|
)}
|
||||||
style={{
|
|
||||||
"--animation-direction": direction === "left" ? "forwards" : "reverse",
|
|
||||||
} as React.CSSProperties}
|
|
||||||
>
|
>
|
||||||
{items.map((item, idx) => (
|
{items.map((item, i) => (
|
||||||
<li className="relative flex-shrink-0" key={idx}>
|
<li key={i} className="flex-shrink-0">
|
||||||
{item}
|
{item}
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
|
|||||||
122
src/components/ui/DynamicMapContainer.tsx
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
import { useState, useEffect } from 'react';
|
||||||
|
import WorldMap from './world-map';
|
||||||
|
import { motion } from 'framer-motion';
|
||||||
|
|
||||||
|
// Interface for the simplified data passed to WorldMap
|
||||||
|
interface GeoNode {
|
||||||
|
lat: number;
|
||||||
|
lng: number;
|
||||||
|
label?: string;
|
||||||
|
color?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Interface for the raw data structure expected from the gridproxy API
|
||||||
|
interface RawNode {
|
||||||
|
node_id: number;
|
||||||
|
location: {
|
||||||
|
latitude: string; // API often returns these as strings
|
||||||
|
longitude: string; // API often returns these as strings
|
||||||
|
city: string;
|
||||||
|
country: string;
|
||||||
|
};
|
||||||
|
// ... other raw fields you don't need
|
||||||
|
}
|
||||||
|
|
||||||
|
const clusterNodes = (nodeList: GeoNode[], cellSize = 2) => {
|
||||||
|
const buckets = new Map<
|
||||||
|
string,
|
||||||
|
{ latSum: number; lngSum: number; count: number }
|
||||||
|
>();
|
||||||
|
|
||||||
|
nodeList.forEach((node) => {
|
||||||
|
const latBucket = Math.round(node.lat / cellSize) * cellSize;
|
||||||
|
const lngBucket = Math.round(node.lng / cellSize) * cellSize;
|
||||||
|
const key = `${latBucket}|${lngBucket}`;
|
||||||
|
|
||||||
|
const bucket = buckets.get(key);
|
||||||
|
if (bucket) {
|
||||||
|
bucket.latSum += node.lat;
|
||||||
|
bucket.lngSum += node.lng;
|
||||||
|
bucket.count += 1;
|
||||||
|
} else {
|
||||||
|
buckets.set(key, {
|
||||||
|
latSum: node.lat,
|
||||||
|
lngSum: node.lng,
|
||||||
|
count: 1,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return Array.from(buckets.values()).map((bucket) => {
|
||||||
|
const avgLat = bucket.latSum / bucket.count;
|
||||||
|
const avgLng = bucket.lngSum / bucket.count;
|
||||||
|
const count = bucket.count;
|
||||||
|
|
||||||
|
let color = "#06b6d4";
|
||||||
|
if (count > 20) {
|
||||||
|
color = "#0891b2";
|
||||||
|
} else if (count > 5) {
|
||||||
|
color = "#22d3ee";
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
lat: avgLat,
|
||||||
|
lng: avgLng,
|
||||||
|
color,
|
||||||
|
label: `${count} nodes`,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
function DynamicMapContainer() {
|
||||||
|
const [loading, setLoading] = useState(true);
|
||||||
|
const [nodes, setNodes] = useState<GeoNode[]>([]);
|
||||||
|
const API_URL = "https://gridproxy.grid.tf/nodes?healthy=true&size=500";
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
async function fetchNodeData() {
|
||||||
|
try {
|
||||||
|
const response = await fetch(API_URL);
|
||||||
|
const data: RawNode[] = await response.json();
|
||||||
|
|
||||||
|
const geoNodes: GeoNode[] = data
|
||||||
|
.filter((node: RawNode) => node.location && node.location.latitude && node.location.longitude)
|
||||||
|
.map((node: RawNode) => ({
|
||||||
|
lat: parseFloat(node.location.latitude),
|
||||||
|
lng: parseFloat(node.location.longitude),
|
||||||
|
label: `${node.location.city}, ${node.location.country} (${node.node_id})`,
|
||||||
|
}));
|
||||||
|
|
||||||
|
const clusteredNodes = clusterNodes(geoNodes);
|
||||||
|
setNodes(clusteredNodes);
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Failed to fetch node data:", error);
|
||||||
|
} finally {
|
||||||
|
setLoading(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fetchNodeData();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
// While fetching, show a loading state
|
||||||
|
if (loading) {
|
||||||
|
return (
|
||||||
|
<div className="flex justify-center items-center w-full aspect-[2/1] bg-[#111111] rounded-lg text-cyan-500">
|
||||||
|
<motion.span
|
||||||
|
animate={{ rotate: 360 }}
|
||||||
|
transition={{ duration: 1, repeat: Infinity, ease: "linear" }}
|
||||||
|
className="text-4xl"
|
||||||
|
>
|
||||||
|
🌎
|
||||||
|
</motion.span>
|
||||||
|
<p className="ml-4">Loading nodes...</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// After data is loaded, render the map
|
||||||
|
return <WorldMap nodes={nodes} />;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default DynamicMapContainer;
|
||||||
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>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useRef } from "react";
|
import { useRef } from "react";
|
||||||
import { motion } from "motion/react";
|
import { motion } from "framer-motion";
|
||||||
import DottedMap from "dotted-map";
|
import DottedMap from "dotted-map";
|
||||||
|
|
||||||
interface MapProps {
|
interface MapProps {
|
||||||
@@ -9,158 +9,152 @@ interface MapProps {
|
|||||||
start: { lat: number; lng: number; label?: string };
|
start: { lat: number; lng: number; label?: string };
|
||||||
end: { lat: number; lng: number; label?: string };
|
end: { lat: number; lng: number; label?: string };
|
||||||
}>;
|
}>;
|
||||||
|
// New prop for dynamic standalone nodes
|
||||||
|
nodes?: Array<{ lat: number; lng: number; label?: string; color?: string }>;
|
||||||
lineColor?: string;
|
lineColor?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function WorldMap({
|
export default function WorldMap({
|
||||||
dots = [],
|
dots = [],
|
||||||
|
nodes = [],
|
||||||
lineColor = "#06b6d4",
|
lineColor = "#06b6d4",
|
||||||
}: 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",
|
||||||
shape: "circle",
|
shape: "circle",
|
||||||
backgroundColor: "black", // Hardcoded for dark theme
|
backgroundColor: "#111111",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// ✅ Point projection stays the same
|
||||||
|
// Projects lat/lng to the SVG's 800x400 viewBox coordinates
|
||||||
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) + 45;
|
||||||
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;
|
// Creates an arc that bows upward by 50 units
|
||||||
|
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 + new standalone nodes */}
|
||||||
<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"
|
||||||
>
|
>
|
||||||
{dots.map((dot, i) => {
|
{/* Glowing path gradient DEFS */}
|
||||||
const startPoint = projectPoint(dot.start.lat, dot.start.lng);
|
<defs>
|
||||||
const endPoint = projectPoint(dot.end.lat, dot.end.lng);
|
<linearGradient id="path-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
||||||
|
<stop offset="0%" stopColor="black" stopOpacity="0" />
|
||||||
|
<stop offset="5%" stopColor={lineColor} stopOpacity="1" />
|
||||||
|
<stop offset="95%" stopColor={lineColor} stopOpacity="1" />
|
||||||
|
<stop offset="100%" stopColor="black" stopOpacity="0" />
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
|
||||||
|
{/* ✅ DYNAMIC STANDALONE NODE DOTS (New Section) */}
|
||||||
|
{nodes.map((node, i) => {
|
||||||
|
const p = projectPoint(node.lat, node.lng);
|
||||||
|
const dotColor = node.color || lineColor;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<g key={`path-group-${i}`}>
|
<g key={`node-${i}`}>
|
||||||
<motion.path
|
{/* Outer pulsing circle */}
|
||||||
d={createCurvedPath(startPoint, endPoint)}
|
<circle cx={p.x} cy={p.y} r="2" fill={dotColor} opacity="0.5">
|
||||||
fill="none"
|
<animate
|
||||||
stroke="url(#path-gradient)"
|
attributeName="r"
|
||||||
strokeWidth="1"
|
from="2"
|
||||||
initial={{
|
to="7"
|
||||||
pathLength: 0,
|
dur="1.4s"
|
||||||
}}
|
repeatCount="indefinite"
|
||||||
animate={{
|
/>
|
||||||
pathLength: 1,
|
<animate
|
||||||
}}
|
attributeName="opacity"
|
||||||
transition={{
|
from="0.6"
|
||||||
duration: 1,
|
to="0"
|
||||||
delay: 0.5 * i,
|
dur="1.4s"
|
||||||
ease: "easeOut",
|
repeatCount="indefinite"
|
||||||
}}
|
/>
|
||||||
key={`start-upper-${i}`}
|
</circle>
|
||||||
></motion.path>
|
{/* Inner fixed circle */}
|
||||||
|
<circle cx={p.x} cy={p.y} r="2" fill={dotColor} />
|
||||||
</g>
|
</g>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
||||||
<defs>
|
{/* ✅ Animated curved travel lines (Existing Logic) */}
|
||||||
<linearGradient id="path-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
{dots.map((dot, i) => {
|
||||||
<stop offset="0%" stopColor="white" stopOpacity="0" />
|
const startPoint = projectPoint(dot.start.lat, dot.start.lng);
|
||||||
<stop offset="5%" stopColor={lineColor} stopOpacity="1" />
|
const endPoint = projectPoint(dot.end.lat, dot.end.lng);
|
||||||
<stop offset="95%" stopColor={lineColor} stopOpacity="1" />
|
|
||||||
<stop offset="100%" stopColor="white" stopOpacity="0" />
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
|
|
||||||
{dots.map((dot, i) => (
|
return (
|
||||||
<g key={`points-group-${i}`}>
|
<motion.path
|
||||||
<g key={`start-${i}`}>
|
key={`path-${i}`}
|
||||||
<circle
|
d={createCurvedPath(startPoint, endPoint)}
|
||||||
cx={projectPoint(dot.start.lat, dot.start.lng).x}
|
fill="none"
|
||||||
cy={projectPoint(dot.start.lat, dot.start.lng).y}
|
stroke="url(#path-gradient)"
|
||||||
r="2"
|
strokeWidth="1"
|
||||||
fill={lineColor}
|
initial={{ pathLength: 0 }}
|
||||||
/>
|
animate={{ pathLength: 1 }}
|
||||||
<circle
|
transition={{
|
||||||
cx={projectPoint(dot.start.lat, dot.start.lng).x}
|
duration: 1,
|
||||||
cy={projectPoint(dot.start.lat, dot.start.lng).y}
|
delay: 0.5 * i,
|
||||||
r="2"
|
ease: "easeOut",
|
||||||
fill={lineColor}
|
}}
|
||||||
opacity="0.5"
|
/>
|
||||||
>
|
);
|
||||||
<animate
|
})}
|
||||||
attributeName="r"
|
|
||||||
from="2"
|
{/* ✅ Start & end points with pulsing cyan glow (Existing Logic) */}
|
||||||
to="8"
|
{dots.map((dot, i) => {
|
||||||
dur="1.5s"
|
const s = projectPoint(dot.start.lat, dot.start.lng);
|
||||||
begin="0s"
|
const e = projectPoint(dot.end.lat, dot.end.lng);
|
||||||
repeatCount="indefinite"
|
|
||||||
/>
|
return (
|
||||||
<animate
|
<g key={`points-${i}`}>
|
||||||
attributeName="opacity"
|
{[s, e].map((p, idx) => (
|
||||||
from="0.5"
|
<g key={idx}>
|
||||||
to="0"
|
<circle cx={p.x} cy={p.y} r="2" fill={lineColor} />
|
||||||
dur="1.5s"
|
<circle cx={p.x} cy={p.y} r="2" fill={lineColor} opacity="0.5">
|
||||||
begin="0s"
|
<animate
|
||||||
repeatCount="indefinite"
|
attributeName="r"
|
||||||
/>
|
from="2"
|
||||||
</circle>
|
to="7"
|
||||||
|
dur="1.4s"
|
||||||
|
repeatCount="indefinite"
|
||||||
|
/>
|
||||||
|
<animate
|
||||||
|
attributeName="opacity"
|
||||||
|
from="0.6"
|
||||||
|
to="0"
|
||||||
|
dur="1.4s"
|
||||||
|
repeatCount="indefinite"
|
||||||
|
/>
|
||||||
|
</circle>
|
||||||
|
</g>
|
||||||
|
))}
|
||||||
</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>
|
|
||||||
))}
|
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
1
src/images/logos/logomark.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="77" zoomAndPan="magnify" viewBox="0 0 57.75 54" height="72" preserveAspectRatio="xMidYMid meet" version="1.0"><defs><clipPath id="6b820d2194"><path d="M 0.402344 0 L 57.101562 0 L 57.101562 6 L 0.402344 6 Z M 0.402344 0 " clip-rule="nonzero"/></clipPath><clipPath id="3794aac157"><path d="M 0.402344 23 L 57 23 L 57 30 L 0.402344 30 Z M 0.402344 23 " clip-rule="nonzero"/></clipPath><clipPath id="a8068b094c"><path d="M 0.402344 46 L 57.101562 46 L 57.101562 53 L 0.402344 53 Z M 0.402344 46 " clip-rule="nonzero"/></clipPath></defs><g clip-path="url(#6b820d2194)"><path stroke-linecap="butt" transform="matrix(0.736364, 0, 0, 0.736364, 0.402273, 0.00000196364)" fill="none" stroke-linejoin="miter" d="M 0.000096737 3.999805 L 76.537522 3.999805 " stroke="#43d7ff" stroke-width="8" stroke-opacity="1" stroke-miterlimit="4"/></g><g clip-path="url(#3794aac157)"><path fill="#43d7ff" d="M 0.402344 23.136719 L 35.746094 23.136719 L 35.746094 29.027344 L 0.402344 29.027344 M 41.636719 23.136719 L 56.761719 23.136719 L 56.761719 29.027344 L 41.636719 29.027344 " fill-opacity="1" fill-rule="nonzero"/></g><g clip-path="url(#a8068b094c)"><path stroke-linecap="butt" transform="matrix(0.736364, 0, 0, 0.736364, 0.402273, 46.951043)" fill="none" stroke-linejoin="miter" d="M 0.000096737 4.002635 L 76.537522 4.002635 " stroke="#43d7ff" stroke-width="8" stroke-opacity="1" stroke-miterlimit="4"/></g></svg>
|
||||||
|
After Width: | Height: | Size: 1.5 KiB |
1
src/images/logos/mainlogo.svg
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
@@ -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'
|
import App from './App'
|
||||||
|
|
||||||
createRoot(document.getElementById('root')!).render(
|
createRoot(document.getElementById('root')!).render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
<App />
|
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
|
||||||
|
<App />
|
||||||
|
</ThemeProvider>
|
||||||
</StrictMode>,
|
</StrictMode>,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,15 +1,32 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { Eyebrow, H3, P } from "@/components/Texts";
|
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 = [
|
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",
|
id: "core",
|
||||||
eyebrow: "ARCHITECTURE",
|
eyebrow: "ARCHITECTURE",
|
||||||
title: "Deterministic by Design",
|
title: "Intelligence Fabric",
|
||||||
description:
|
description:
|
||||||
"Every workload runs exactly as declared: no drift, no hidden state, no surprises.",
|
"The sovereign substrate for autonomous AI. Stateless, geo-aware, end-to-end encrypted—and verifiable from intent to execution.",
|
||||||
video: null,
|
animation: null,
|
||||||
colSpan: "lg:col-span-3",
|
colSpan: "lg:col-span-3",
|
||||||
rowSpan: "lg:row-span-1",
|
rowSpan: "lg:row-span-1",
|
||||||
custom: true,
|
custom: true,
|
||||||
@@ -23,7 +40,7 @@ const bentos = [
|
|||||||
subtitle: "Long-Term AI Memory",
|
subtitle: "Long-Term AI Memory",
|
||||||
description:
|
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.",
|
"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.",
|
||||||
video: "/videos/fungistor.mp4",
|
animation: Fungistor,
|
||||||
colSpan: "lg:col-span-3",
|
colSpan: "lg:col-span-3",
|
||||||
rowSpan: "lg:row-span-1",
|
rowSpan: "lg:row-span-1",
|
||||||
},
|
},
|
||||||
@@ -33,7 +50,7 @@ const bentos = [
|
|||||||
subtitle: "Active AI Memory",
|
subtitle: "Active AI Memory",
|
||||||
description:
|
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.",
|
"Multimodal vector+keyword retrieval makes RAG feel instant across text, image, audio. Time-aware, policy-guarded context keeps results fresh while access stays governed.",
|
||||||
video: "/videos/herodb.mp4",
|
animation: Herodb,
|
||||||
colSpan: "lg:col-span-3",
|
colSpan: "lg:col-span-3",
|
||||||
rowSpan: "lg:row-span-1",
|
rowSpan: "lg:row-span-1",
|
||||||
},
|
},
|
||||||
@@ -43,7 +60,7 @@ const bentos = [
|
|||||||
subtitle: "Secure Agent Workspaces",
|
subtitle: "Secure Agent Workspaces",
|
||||||
description:
|
description:
|
||||||
"Attested, signed workspaces spin up ≈5s worldwide—ready to execute. Hardware isolation and scoped egress: run hard, tear down clean, zero residue.",
|
"Attested, signed workspaces spin up ≈5s worldwide—ready to execute. Hardware isolation and scoped egress: run hard, tear down clean, zero residue.",
|
||||||
video: "/videos/herodb.mp4",
|
animation: MOSSandboxes,
|
||||||
colSpan: "lg:col-span-3",
|
colSpan: "lg:col-span-3",
|
||||||
rowSpan: "lg:row-span-1",
|
rowSpan: "lg:row-span-1",
|
||||||
},
|
},
|
||||||
@@ -53,7 +70,7 @@ const bentos = [
|
|||||||
subtitle: "Secure Communication Network",
|
subtitle: "Secure Communication Network",
|
||||||
description:
|
description:
|
||||||
"A private, public-key fabric with self-healing multi-path routing. Glides through NATs and firewalls—direct, low-latency, no middlemen.",
|
"A private, public-key fabric with self-healing multi-path routing. Glides through NATs and firewalls—direct, low-latency, no middlemen.",
|
||||||
video: "/videos/mesh.mp4",
|
animation: MyceliumMesh,
|
||||||
colSpan: "lg:col-span-2",
|
colSpan: "lg:col-span-2",
|
||||||
rowSpan: "lg:row-span-1",
|
rowSpan: "lg:row-span-1",
|
||||||
},
|
},
|
||||||
@@ -63,7 +80,7 @@ const bentos = [
|
|||||||
subtitle: "Verifiable Code Execution",
|
subtitle: "Verifiable Code Execution",
|
||||||
description:
|
description:
|
||||||
"Declare intent, get a hash; remote attestation proves that is what runs. Reproducible builds, signed artifacts, immutable logs—supply chain, sealed.",
|
"Declare intent, get a hash; remote attestation proves that is what runs. Reproducible builds, signed artifacts, immutable logs—supply chain, sealed.",
|
||||||
video: "/videos/deterministic.mp4",
|
animation: DeterministicExecution,
|
||||||
colSpan: "lg:col-span-2",
|
colSpan: "lg:col-span-2",
|
||||||
rowSpan: "lg:row-span-1",
|
rowSpan: "lg:row-span-1",
|
||||||
},
|
},
|
||||||
@@ -73,7 +90,7 @@ const bentos = [
|
|||||||
subtitle: "Sovereign Workflow Management",
|
subtitle: "Sovereign Workflow Management",
|
||||||
description:
|
description:
|
||||||
"Your private agent conducts swarms of specialists in parallel. Policies fan out work; human checkpoints keep you in command.",
|
"Your private agent conducts swarms of specialists in parallel. Policies fan out work; human checkpoints keep you in command.",
|
||||||
video: "/videos/agent.mp4",
|
animation: AgentCoordination,
|
||||||
colSpan: "lg:col-span-2",
|
colSpan: "lg:col-span-2",
|
||||||
rowSpan: "lg:row-span-1",
|
rowSpan: "lg:row-span-1",
|
||||||
},
|
},
|
||||||
@@ -101,20 +118,12 @@ export function AgentBento() {
|
|||||||
<div
|
<div
|
||||||
className={`relative flex lg:h-90 flex-col overflow-hidden rounded-[calc(var(--radius-lg)+1px)] `}
|
className={`relative flex lg:h-90 flex-col overflow-hidden rounded-[calc(var(--radius-lg)+1px)] `}
|
||||||
>
|
>
|
||||||
{/* ✅ VIDEO instead of animation */}
|
{card.animation ? (
|
||||||
{card.video ? (
|
<div className="lg:h-64 h-48 w-full overflow-hidden bg-transparent flex items-center justify-center">
|
||||||
<div className="lg:h-64 h-48 w-full overflow-hidden bg-transparent flex items-center">
|
<div className="w-full h-full object-cover"><card.animation /></div>
|
||||||
<video
|
|
||||||
src={card.video}
|
|
||||||
autoPlay
|
|
||||||
loop
|
|
||||||
muted
|
|
||||||
playsInline
|
|
||||||
className="w-full h-full object-cover"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="h-48 w-full flex items-center justify-center bg-transparent" />
|
<div className="hidden md:flex md:h-48 w-full items-center justify-center bg-transparent" />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="px-8 pt-4 pb-6">
|
<div className="px-8 pt-4 pb-6">
|
||||||
@@ -127,7 +136,7 @@ export function AgentBento() {
|
|||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
{/* ✅ NEW SUBTITLE */}
|
{/* ✅ NEW SUBTITLE */}
|
||||||
<p className="text-sm text-cyan-400">{card.subtitle}</p>
|
<p className="text-sm text-cyan-500">{card.subtitle}</p>
|
||||||
|
|
||||||
<p className="mt-1 text-lg font-medium lg:text-xl tracking-tight text-white">
|
<p className="mt-1 text-lg font-medium lg:text-xl tracking-tight text-white">
|
||||||
{card.title}
|
{card.title}
|
||||||
@@ -152,6 +161,9 @@ export function AgentBento() {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{/* ✅ Bottom horizontal line with spacing */}
|
||||||
|
<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-800"></div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
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 py-10 px-4 border border-gray-100 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 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,36 +1,38 @@
|
|||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import { Button } from '@/components/Button'
|
import { Eyebrow, H3, P } from '@/components/Texts'
|
||||||
import { Eyebrow, H3 } 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-100 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 md:bg-[url('/images/agents.webp')] md:bg-contain md:bg-right md:bg-no-repeat"
|
||||||
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 pt-4 pb-12 lg:py-24">
|
||||||
<div className="max-w-2xl lg:pl-6">
|
{/* Mobile-only hero image */}
|
||||||
<Eyebrow>MYCELIUM AGENTS</Eyebrow>
|
<img
|
||||||
|
src="/images/mobile/agents.jpg"
|
||||||
|
alt="Mycelium Agents visual"
|
||||||
|
className="mb-8 w-full object-cover md:hidden"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div className="max-w-xl lg:pl-6">
|
||||||
|
<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-600">
|
||||||
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>
|
</P>
|
||||||
<p className="mt-4 lg:text-base italic text-gray-600 text-sm">
|
<P className="mt-4 text-gray-600">
|
||||||
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.
|
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>
|
</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">
|
{/* TODO: Hero CTAs (Follow Development / Explore Docs) to be added when links are ready.
|
||||||
Follow Deployment
|
Previously two Buttons here with href="#". */}
|
||||||
</Button>
|
|
||||||
<Button href="#" variant="outline">
|
|
||||||
Explore Docs <span aria-hidden="true">→</span>
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
90
src/pages/agents/AgentPro.tsx
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
import { Small } from "@/components/Texts";
|
||||||
|
import { Eyebrow, H3, P } from "@/components/Texts";
|
||||||
|
|
||||||
|
const highlights = [
|
||||||
|
{
|
||||||
|
label: "Local Execution",
|
||||||
|
title: "Agents run entirely inside your environment.",
|
||||||
|
description:
|
||||||
|
"Models, logic, and memory stay within your own trusted hardware, never behind third-party APIs.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Mesh Connectivity",
|
||||||
|
title: "They communicate peer-to-peer across trusted nodes.",
|
||||||
|
description:
|
||||||
|
"Agents form direct encrypted paths between environments, without relays or central servers.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Private Data Access",
|
||||||
|
title: "They use your data without sending it elsewhere.",
|
||||||
|
description:
|
||||||
|
"Your datasets, embeddings, and context never leave your boundaries. Processing stays local.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Portability",
|
||||||
|
title: "They move with you, not with a cloud provider.",
|
||||||
|
description:
|
||||||
|
"Agents follow your devices, networks, and workflows, remaining sovereign across every location.",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export function AgentPro() {
|
||||||
|
return (
|
||||||
|
<section className="relative w-full bg-[#FDFDFD] overflow-hidden">
|
||||||
|
{/* Top spacing line */}
|
||||||
|
<div className="max-w-7xl bg-[#FDFDFD] 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" />
|
||||||
|
|
||||||
|
{/* Intro Block */}
|
||||||
|
<div className="bg-white w-full max-w-7xl mx-auto border border-t-0 border-b-0 border-gray-100">
|
||||||
|
<div className="px-8 py-12 max-w-4xl mx-auto flex flex-col items-center justify-center min-h-[220px] text-center">
|
||||||
|
<Eyebrow className="text-cyan-500">
|
||||||
|
Advantages
|
||||||
|
</Eyebrow>
|
||||||
|
|
||||||
|
<H3 className="mt-4 text-black">
|
||||||
|
Why It’s Different
|
||||||
|
</H3>
|
||||||
|
|
||||||
|
<P className="mt-4 text-gray-700 text-base leading-relaxed">
|
||||||
|
Most AI systems run on centralized clouds, where the models, data, and
|
||||||
|
logic operate behind third-party APIs. Mycelium Agents flip that
|
||||||
|
architecture, it runs entirely inside your environment so control,
|
||||||
|
privacy, and autonomy stay with you.
|
||||||
|
</P>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Grid */}
|
||||||
|
<div className="grid lg:grid-cols-4">
|
||||||
|
{highlights.map((item) => (
|
||||||
|
<div
|
||||||
|
key={item.title}
|
||||||
|
className="group relative overflow-hidden border border-gray-100 bg-white p-8 transition hover:border-cyan-400/40 hover:bg-white"
|
||||||
|
>
|
||||||
|
{/* Glow */}
|
||||||
|
<div className="absolute inset-0 bg-linear-to-br from-cyan-200/0 via-cyan-100/20 to-cyan-300/20 opacity-0 transition group-hover:opacity-100" />
|
||||||
|
|
||||||
|
<div className="relative">
|
||||||
|
<Small className="text-xs uppercase tracking-[0.16em] text-cyan-600">
|
||||||
|
{item.label}
|
||||||
|
</Small>
|
||||||
|
|
||||||
|
<h3 className="mt-4 text-lg font-semibold leading-tight text-black">
|
||||||
|
{item.title}
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<p className="mt-4 text-base leading-relaxed text-gray-600">
|
||||||
|
{item.description}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Bottom spacing */}
|
||||||
|
<div className="w-full border-b border-gray-100 bg-[#FDFDFD]" />
|
||||||
|
<div className="max-w-7xl mx-auto py-6 border border-t-0 border-b-0 border-gray-100" />
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
120
src/pages/agents/AgentUseCase.tsx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { Eyebrow, P, CT, CP, H3} from "@/components/Texts";
|
||||||
|
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 with 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,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Blend local + remote intelligence",
|
||||||
|
description:
|
||||||
|
"Let lightweight agents run locally while offloading heavy tasks to trusted nodes, maintaining privacy and performance balance.",
|
||||||
|
icon: CpuChipIcon,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export function AgentUsecase() {
|
||||||
|
return (
|
||||||
|
<section className="w-full max-w-8xl mx-auto bg-transparent">
|
||||||
|
{/* Top horizontal spacing line */}
|
||||||
|
<div className="max-w-7xl 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" />
|
||||||
|
|
||||||
|
{/* Main framed section */}
|
||||||
|
<div className="max-w-7xl bg-white mx-auto py-12 border border-t-0 border-b-0 border-gray-100">
|
||||||
|
<div className="mx-auto max-w-3xl sm:text-center px-6 lg:px-8">
|
||||||
|
{/* Intro block (from isIntro item) */}
|
||||||
|
{networkUseCases[0].isIntro && (
|
||||||
|
<>
|
||||||
|
<Eyebrow className="text-cyan-500">{networkUseCases[0].eyebrow}</Eyebrow>
|
||||||
|
<H3
|
||||||
|
className="mt-4 text-gray-900"
|
||||||
|
>
|
||||||
|
{networkUseCases[0].title}
|
||||||
|
</H3>
|
||||||
|
<P className="mt-4 text-lg text-gray-600">
|
||||||
|
{networkUseCases[0].description}
|
||||||
|
</P>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Grid of features (excluding intro) */}
|
||||||
|
<ul
|
||||||
|
role="list"
|
||||||
|
className="mx-auto mt-8 max-w-6xl grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-y-10 px-6"
|
||||||
|
>
|
||||||
|
{networkUseCases.slice(1).map((item, idx) => (
|
||||||
|
<li
|
||||||
|
key={idx}
|
||||||
|
className="rounded-2xl border border-gray-200 p-8 transition-all duration-300 ease-in-out hover:scale-[1.03] hover:border-cyan-500 hover:shadow-lg hover:shadow-cyan-500/20 bg-white"
|
||||||
|
>
|
||||||
|
{/* Icon */}
|
||||||
|
{item.icon && (
|
||||||
|
<div className="h-10 w-10 mb-2 flex items-center justify-center rounded-xl bg-gray-100">
|
||||||
|
<item.icon className="h-6 w-6 text-cyan-500" />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* Title */}
|
||||||
|
<CT className="leading-normal text-gray-900">
|
||||||
|
{item.title}
|
||||||
|
</CT>
|
||||||
|
|
||||||
|
{/* Description */}
|
||||||
|
<CP className="mt-2 text-gray-600 text-sm leading-snug">
|
||||||
|
{item.description}
|
||||||
|
</CP>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Bottom horizontal line */}
|
||||||
|
<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-100"></div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
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 { AgentBento } from './AgentBento'
|
import { AgentBento } from './AgentBento'
|
||||||
import { AgentHeroAlt } from './AgentHeroAlt'
|
import { AgentHeroAlt } from './AgentHeroAlt'
|
||||||
import { CallToAction } from './CallToAction'
|
import { CallToAction } from './CallToAction'
|
||||||
|
import { AgentUsecase } from './AgentUseCase'
|
||||||
|
|
||||||
|
import { AgentPro } from './AgentPro'
|
||||||
|
|
||||||
export default function AgentsPage() {
|
export default function AgentsPage() {
|
||||||
return (
|
return (
|
||||||
@@ -22,13 +24,17 @@ export default function AgentsPage() {
|
|||||||
</AnimatedSection>
|
</AnimatedSection>
|
||||||
|
|
||||||
<AnimatedSection>
|
<AnimatedSection>
|
||||||
<GallerySection />
|
<AgentUsecase />
|
||||||
</AnimatedSection>
|
</AnimatedSection>
|
||||||
|
|
||||||
<AnimatedSection>
|
<AnimatedSection>
|
||||||
<AgentBento />
|
<AgentBento />
|
||||||
</AnimatedSection>
|
</AnimatedSection>
|
||||||
|
|
||||||
|
<AnimatedSection>
|
||||||
|
<AgentPro />
|
||||||
|
</AnimatedSection>
|
||||||
|
|
||||||
<AnimatedSection>
|
<AnimatedSection>
|
||||||
<CallToAction />
|
<CallToAction />
|
||||||
</AnimatedSection>
|
</AnimatedSection>
|
||||||
|
|||||||
@@ -13,37 +13,70 @@ export function CallToAction() {
|
|||||||
{/* ✅ Main boxed area */}
|
{/* ✅ Main boxed area */}
|
||||||
<div
|
<div
|
||||||
id="get-started"
|
id="get-started"
|
||||||
className="relative py-18 max-w-7xl mx-auto bg-[#111111] border border-t-0 border-b-0 border-gray-800"
|
className="relative py-18 max-w-7xl mx-auto overflow-hidden bg-[#111111] border border-t-0 border-b-0 border-gray-800"
|
||||||
>
|
>
|
||||||
|
{/* ✅ Cyan Radial Glow */}
|
||||||
|
<svg
|
||||||
|
viewBox="0 0 1024 1024"
|
||||||
|
aria-hidden="true"
|
||||||
|
className="absolute top-full left-1/2 w-7xl h-320 -translate-x-1/2 -translate-y-1/2 mask-image mask-[radial-gradient(circle,white,transparent)]"
|
||||||
|
>
|
||||||
|
<circle
|
||||||
|
r={512}
|
||||||
|
cx={512}
|
||||||
|
cy={512}
|
||||||
|
fill="url(#mycelium-cyan-glow)"
|
||||||
|
fillOpacity="0.3"
|
||||||
|
/>
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="mycelium-cyan-glow">
|
||||||
|
<stop stopColor="#00e5ff" />
|
||||||
|
<stop offset="1" stopColor="transparent" />
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
<Container className="relative">
|
<Container className="relative">
|
||||||
<div className="mx-auto max-w-3xl 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 lg:text-lg text-base leading-normal text-gray-300">
|
||||||
Use today’s components — models, storage, compute, mesh — and step into agents as they arrive.
|
The Agent Framework launches in H1 2026, but the foundation is ready now.
|
||||||
|
</p>
|
||||||
|
<p className="mt-2 lg:text-lg text-base leading-normal 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>
|
||||||
|
|
||||||
{/* ✅ Two cards, stacked center with spacing */}
|
{/* ✅ Button row – same structure as homepage CTA */}
|
||||||
<div className="mt-10 flex flex-wrap justify-center gap-x-10 gap-y-8">
|
<div className="mt-10 flex flex-wrap justify-center items-center gap-x-6 gap-y-4">
|
||||||
<div className="flex flex-col items-center text-center max-w-xs">
|
<Button
|
||||||
<Button to="/deploy" variant="solid" color="cyan" className="mt-4">
|
as="a"
|
||||||
Deploy a Model
|
to="https://myceliumcloud.tf"
|
||||||
</Button>
|
variant="solid"
|
||||||
</div>
|
color="cyan"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
Deploy a Model
|
||||||
|
</Button>
|
||||||
|
|
||||||
<div className="flex flex-col items-center text-center max-w-xs">
|
<Button to="/nodes" variant="outline" color="white">
|
||||||
<Button to="/host" as="a" variant="outline" color="white" className="mt-4">
|
Host a Node
|
||||||
Host a Node
|
</Button>
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="flex flex-col items-center text-center max-w-xs">
|
<Button
|
||||||
<Button to="https://threefold.info/mycelium_network/docs/" as="a" target="_blank" variant="outline" color="white" className="mt-4">
|
as="a"
|
||||||
Follow Development
|
to="https://threefold.info/mycelium_network/docs/"
|
||||||
</Button>
|
variant="link"
|
||||||
</div>
|
color="white"
|
||||||
|
className="inline-flex items-center gap-1.5"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
Follow Development
|
||||||
|
<span aria-hidden="true">→</span>
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ const row2 = logos.slice(6);
|
|||||||
|
|
||||||
export function Companies() {
|
export function Companies() {
|
||||||
return (
|
return (
|
||||||
<div id="companies" className="relative bg-[#121212] 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-7xl p-4">
|
<div className="relative z-10 mx-auto w-full max-w-7xl p-4">
|
||||||
{/* 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 ">
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import { useEffect, useMemo, useState } from 'react'
|
|||||||
import { useResponsiveCarousel } from '@/hooks/useResponsiveCarousel';
|
import { useResponsiveCarousel } from '@/hooks/useResponsiveCarousel';
|
||||||
import { motion, AnimatePresence } from 'framer-motion'
|
import { motion, AnimatePresence } from 'framer-motion'
|
||||||
import { wrap } from 'popmotion'
|
import { wrap } from 'popmotion'
|
||||||
import { Button } from '@/components/Button';
|
|
||||||
import { SectionHeader, P, Eyebrow, CP } from '@/components/Texts';
|
import { SectionHeader, P, Eyebrow, CP } from '@/components/Texts';
|
||||||
import { TypeAnimation } from 'react-type-animation'
|
import { TypeAnimation } from 'react-type-animation'
|
||||||
import { FadeIn } from '@/components/FadeIn';
|
import { FadeIn } from '@/components/FadeIn';
|
||||||
@@ -147,9 +146,8 @@ export function GallerySection() {
|
|||||||
repeat={0}
|
repeat={0}
|
||||||
/>
|
/>
|
||||||
</CP>
|
</CP>
|
||||||
<Button href="#" color="cyan" className="text-sm px-4 py-2 lg:text-base whitespace-nowrap">
|
{/* TODO: Desktop CTA (Start) button to be added when link target is defined.
|
||||||
Start
|
Previously: <Button href="#" color="cyan">Start</Button> */}
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -166,9 +164,8 @@ export function GallerySection() {
|
|||||||
repeat={0}
|
repeat={0}
|
||||||
/>
|
/>
|
||||||
</CP>
|
</CP>
|
||||||
<Button href="#" color="cyan" className="text-xs px-3 py-1.5 whitespace-nowrap">
|
{/* TODO: Mobile CTA (Start) button to be added when link target is defined.
|
||||||
Start
|
Previously: <Button href="#" color="cyan">Start</Button> */}
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</FadeIn>
|
</FadeIn>
|
||||||
|
|||||||
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 lg:-translate-y-6" 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 lg:-translate-y-6" 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, a distributed long-term AI memory"
|
||||||
|
style={{ background: bg }}
|
||||||
|
>
|
||||||
|
<svg viewBox={`0 0 ${W} ${H}`} className="w-full h-full lg:-translate-y-16" 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 lg:-translate-y-18" 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 lg:-translate-y-16" 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, a secure communication network"
|
||||||
|
style={{ background: bg }}
|
||||||
|
>
|
||||||
|
<svg viewBox={`0 0 ${W} ${H}`} className="w-full h-full lg:-translate-y-4" 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>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -13,8 +13,28 @@ export function CallToAction() {
|
|||||||
{/* ✅ Main boxed area */}
|
{/* ✅ Main boxed area */}
|
||||||
<div
|
<div
|
||||||
id="get-started"
|
id="get-started"
|
||||||
className="relative py-18 max-w-7xl mx-auto bg-[#111111] border border-t-0 border-b-0 border-gray-800"
|
className="relative py-18 max-w-7xl overflow-hidden mx-auto bg-[#111111] border border-t-0 border-b-0 border-gray-800"
|
||||||
>
|
>
|
||||||
|
{/* ✅ Cyan Radial Glow */}
|
||||||
|
<svg
|
||||||
|
viewBox="0 0 1024 1024"
|
||||||
|
aria-hidden="true"
|
||||||
|
className="absolute top-full left-1/2 w-7xl h-320 -translate-x-1/2 -translate-y-1/2 mask-image mask-[radial-gradient(circle,white,transparent)]"
|
||||||
|
>
|
||||||
|
<circle
|
||||||
|
r={512}
|
||||||
|
cx={512}
|
||||||
|
cy={512}
|
||||||
|
fill="url(#mycelium-cyan-glow)"
|
||||||
|
fillOpacity="0.3"
|
||||||
|
/>
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="mycelium-cyan-glow">
|
||||||
|
<stop stopColor="#00e5ff" />
|
||||||
|
<stop offset="1" stopColor="transparent" />
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
|
||||||
|
|
||||||
<Container className="relative">
|
<Container className="relative">
|
||||||
@@ -32,13 +52,21 @@ export function CallToAction() {
|
|||||||
{/* ✅ Two cards, stacked center with spacing */}
|
{/* ✅ Two cards, stacked center with spacing */}
|
||||||
<div className="mt-10 flex flex-wrap justify-center gap-x-10 gap-y-8">
|
<div className="mt-10 flex flex-wrap justify-center gap-x-10 gap-y-8">
|
||||||
<div className="flex flex-col items-center text-center max-w-xs">
|
<div className="flex flex-col items-center text-center max-w-xs">
|
||||||
<Button to="/host" variant="solid" color="cyan" className="mt-4">
|
<Button to="/nodes" variant="solid" color="cyan" className="mt-4">
|
||||||
Host a Node
|
Host a Node
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-col items-center text-center max-w-xs">
|
<div className="flex flex-col items-center text-center max-w-xs">
|
||||||
<Button to="/cloud" variant="outline" color="white" className="mt-4">
|
<Button
|
||||||
|
as="a"
|
||||||
|
to="https://myceliumcloud.tf"
|
||||||
|
variant="outline"
|
||||||
|
color="white"
|
||||||
|
className="mt-4"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
Start Deploying
|
Start Deploying
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export function CloudArchitecture() {
|
|||||||
<div className="relative mx-auto max-w-7xl border border-t-0 border-b-0 border-gray-800 bg-[#111111] py-12">
|
<div className="relative mx-auto max-w-7xl border border-t-0 border-b-0 border-gray-800 bg-[#111111] py-12">
|
||||||
<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-400">ARCHITECTURE</Eyebrow>
|
<Eyebrow className="">ARCHITECTURE</Eyebrow>
|
||||||
|
|
||||||
<H3 className="text-3xl lg:text-4xl font-medium tracking-tight text-white">
|
<H3 className="text-3xl lg:text-4xl font-medium tracking-tight text-white">
|
||||||
How Mycelium Cloud Works
|
How Mycelium Cloud Works
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export function CloudBluePrint() {
|
|||||||
</H3>
|
</H3>
|
||||||
|
|
||||||
<P className="mt-6 text-lg text-gray-600">
|
<P className="mt-6 text-lg text-gray-600">
|
||||||
Digital Me is an example environment built to demonstrate what’s possible on top of the Mycelium Stack — a full personal cloud you can deploy, customize, or extend. Your files, communication, apps, and optional AI agent, all running privately on infrastructure you choose.
|
Digital Me is an example environment built to demonstrate what’s possible on top of the Mycelium Stack, which is a full personal cloud you can deploy, customize, or extend. Your files, communication, apps, and optional AI agent, all running privately on infrastructure you choose.
|
||||||
</P>
|
</P>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
112
src/pages/cloud/CloudCodeTabs.tsx
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useState } from "react";
|
||||||
|
|
||||||
|
const files = [
|
||||||
|
{
|
||||||
|
id: "kube",
|
||||||
|
label: "kubernetes.yaml",
|
||||||
|
code: `apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: mycelium-app
|
||||||
|
spec:
|
||||||
|
replicas: 3
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: mycelium-app
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: mycelium-app`,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
id: "vdc",
|
||||||
|
label: "vdc.tf",
|
||||||
|
code: `provider "mycelium" {
|
||||||
|
identity = "~/.mycelium/id"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "mycelium_vdc" "production" {
|
||||||
|
name = "prod-vdc"
|
||||||
|
region = "eu-central"
|
||||||
|
nodes = 6
|
||||||
|
cpu_cores = 24
|
||||||
|
ram_gb = 128
|
||||||
|
storage = "10TB"
|
||||||
|
|
||||||
|
network_policies = ["private", "encrypted"]
|
||||||
|
}`,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
id: "qsfs",
|
||||||
|
label: "qsfs.py",
|
||||||
|
code: `from qsfs import QSFS
|
||||||
|
|
||||||
|
# mount encrypted distributed filesystem
|
||||||
|
fs = QSFS.mount("/mnt/secure", key="my-private-key")
|
||||||
|
|
||||||
|
# write protected research data
|
||||||
|
with fs.open("dataset/raw-images/img001.png", "wb") as f:
|
||||||
|
f.write(b"...binary data...")
|
||||||
|
|
||||||
|
# list stored files via S3/IPFS/WebDAV compatibility layer
|
||||||
|
files = fs.list("dataset/raw-images/")
|
||||||
|
print("Stored files:", files)`,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export function CloudCodeTabs() {
|
||||||
|
const [active, setActive] = useState("kube");
|
||||||
|
const file = files.find((f) => f.id === active)!;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="sm:px-6 lg:px-0">
|
||||||
|
<div className="relative isolate overflow-hidden bg-cyan-600 px-6 pt-8 sm:mx-auto sm:max-w-2xl sm:rounded-md sm:pt-16 sm:pr-0 sm:pl-16 lg:mx-0 lg:max-w-none">
|
||||||
|
|
||||||
|
{/* Cyan skew background */}
|
||||||
|
<div
|
||||||
|
aria-hidden="true"
|
||||||
|
className="absolute -inset-y-px -left-3 -z-10 w-full origin-bottom-left skew-x-[-30deg] bg-cyan-500 opacity-20 ring-1 ring-white ring-inset"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div className="mx-auto max-w-2xl sm:mx-0 sm:max-w-none">
|
||||||
|
<div className="w-screen overflow-hidden rounded-tl-xl bg-[#121212] ring-1 ring-white/10">
|
||||||
|
|
||||||
|
{/* File Tabs */}
|
||||||
|
<div className="flex bg-gray-800/40 ring-1 ring-white/5">
|
||||||
|
<div className="-mb-px flex text-sm font-medium text-gray-400">
|
||||||
|
{files.map((f) => (
|
||||||
|
<button
|
||||||
|
key={f.id}
|
||||||
|
onClick={() => setActive(f.id)}
|
||||||
|
className={`px-4 py-2 border-r border-white/10 transition ${
|
||||||
|
active === f.id
|
||||||
|
? "border-b border-b-white/20 bg-white/5 text-white"
|
||||||
|
: "hover:text-white"
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
{f.label}
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Code Block */}
|
||||||
|
<div className="px-6 pt-6 pb-14 font-mono text-xs leading-relaxed text-gray-200 whitespace-pre overflow-x-auto">
|
||||||
|
{file.code}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Outer ring */}
|
||||||
|
<div
|
||||||
|
aria-hidden="true"
|
||||||
|
className="pointer-events-none absolute inset-0 ring-1 ring-white/10 ring-inset sm:rounded-3xl"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -257,7 +257,7 @@ export function CloudFeaturesLight() {
|
|||||||
</SectionHeader>
|
</SectionHeader>
|
||||||
<P className="mt-6 text-gray-600">
|
<P className="mt-6 text-gray-600">
|
||||||
Mycelium Cloud runs Kubernetes on a sovereign, self-healing network
|
Mycelium Cloud runs Kubernetes on a sovereign, self-healing network
|
||||||
with compute, storage, and networking built in — so you don’t need
|
with compute, storage, and networking built in, so you don’t need
|
||||||
external cloud dependencies.
|
external cloud dependencies.
|
||||||
</P>
|
</P>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,49 +1,59 @@
|
|||||||
import { H3, Eyebrow } from "@/components/Texts"
|
import { H3, Eyebrow, P } from "@/components/Texts"
|
||||||
import { Button } from "@/components/Button"
|
import { Button } from "@/components/Button"
|
||||||
|
|
||||||
export function CloudHeroNew({ onGetStartedClick = () => {} }: { onGetStartedClick?: () => void }) {
|
export function CloudHeroNew() {
|
||||||
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-100 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 md:bg-[url('/images/cloudhero4.webp')] md:bg-contain md:bg-right md:bg-no-repeat"
|
||||||
style={{ backgroundImage: "url('/images/cloudhero4.webp')", backgroundSize: "contain" }}
|
|
||||||
>
|
>
|
||||||
{/* Inner padding */}
|
{/* Inner padding */}
|
||||||
<div className="px-6 py-16 lg:py-16">
|
<div className="px-6 pt-4 pb-12 lg:py-24">
|
||||||
|
{/* Mobile-only hero image */}
|
||||||
|
<img
|
||||||
|
src="/images/mobile/cloudpage.jpg"
|
||||||
|
alt="Mycelium Cloud page visual"
|
||||||
|
className="mb-8 w-full object-cover md:hidden"
|
||||||
|
/>
|
||||||
|
|
||||||
<div className="max-w-2xl lg:pl-6">
|
<div className="max-w-2xl lg:pl-6">
|
||||||
<Eyebrow>
|
<Eyebrow>
|
||||||
Mycelium Cloud
|
MYCELIUM CLOUD
|
||||||
</Eyebrow>
|
</Eyebrow>
|
||||||
<H3 className="mt-4">
|
<H3 className="mt-4">
|
||||||
Run Kubernetes on the Sovereign Agentic Cloud
|
Sovereign Edge Cloud Infrastructure
|
||||||
</H3>
|
</H3>
|
||||||
<p className="mt-6 text-lg">
|
<P className="mt-6 text-gray-600">
|
||||||
Deploy K3s clusters on a global, self-healing mesh network.
|
Run compute, storage, and AI resources on infrastructure you control.
|
||||||
Your workloads run on sovereign, encrypted infrastructure, without centralized cloud control.
|
The Mycelium Cloud runs on a distributed grid of independent nodes,
|
||||||
</p>
|
delivering secure, scalable performance wherever your users or data live.
|
||||||
<p className="mt-4 lg:text-base italic text-gray-600 text-sm">
|
</P>
|
||||||
Works Alone. Works Together.
|
|
||||||
Mycelium Cloud can run on any network fabric, or pair with Mycelium Network
|
|
||||||
for sovereign connectivity.
|
|
||||||
</p>
|
|
||||||
<div className="mt-10 flex items-center gap-x-6">
|
<div className="mt-10 flex items-center gap-x-6">
|
||||||
<Button
|
<Button
|
||||||
onClick={onGetStartedClick}
|
as="a"
|
||||||
|
to="https://myceliumcloud.tf"
|
||||||
variant="solid"
|
variant="solid"
|
||||||
color="cyan"
|
color="cyan"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
Get started
|
Deploy Workloads
|
||||||
</Button>
|
</Button>
|
||||||
<Button to="#" variant="outline">
|
<Button
|
||||||
Documentation <span aria-hidden="true">→</span>
|
as="a"
|
||||||
|
to="https://myceliumcloud.tf/docs"
|
||||||
|
variant="outline"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
Explore Docs <span aria-hidden="true">→</span>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/* ✅ Bottom horizontal line with spacing */}
|
{/* Bottom horizontal line with spacing */}
|
||||||
<div className="w-full border-b border-gray-100" />
|
<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>
|
<div className="max-w-7xl bg-transparent mx-auto py-6 border border-t-0 border-b-0 border-gray-100"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import { Eyebrow, H3, H4 } from "@/components/Texts"
|
|||||||
const product = {
|
const product = {
|
||||||
subtitle: 'capabilities',
|
subtitle: 'capabilities',
|
||||||
name: 'What You Can Run on Mycelium Cloud',
|
name: 'What You Can Run on Mycelium Cloud',
|
||||||
description: '<p>Host nodes, deploy workloads, or build private AI systems, all on infrastructure you own and control.</p>',
|
|
||||||
details: [
|
details: [
|
||||||
{
|
{
|
||||||
name: 'Kubernetes Clusters',
|
name: 'Kubernetes Clusters',
|
||||||
@@ -64,9 +63,6 @@ export function CloudHostingNew() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div className="mt-4 text-gray-300 text-xl"
|
|
||||||
dangerouslySetInnerHTML={{ __html: product.description }}
|
|
||||||
/>
|
|
||||||
|
|
||||||
|
|
||||||
{/* ✅ Details accordion */}
|
{/* ✅ Details accordion */}
|
||||||
|
|||||||