Merge branch 'development' into development_sasha
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: 497 KiB |
|
Before Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 1.7 MiB |
BIN
public/images/agents.webp
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
BIN
public/images/audience/1.jpg
Normal file
|
After Width: | Height: | Size: 306 KiB |
BIN
public/images/audience/2.jpg
Normal file
|
After Width: | Height: | Size: 205 KiB |
BIN
public/images/audience/3.jpg
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
public/images/audience/4.jpg
Normal file
|
After Width: | Height: | Size: 147 KiB |
BIN
public/images/audience/5.jpg
Normal file
|
After Width: | Height: | Size: 128 KiB |
BIN
public/images/audience/6.jpg
Normal file
|
After Width: | Height: | Size: 234 KiB |
BIN
public/images/audience/7.jpg
Normal file
|
After Width: | Height: | Size: 152 KiB |
BIN
public/images/audience/8.jpg
Normal file
|
After Width: | Height: | Size: 228 KiB |
BIN
public/images/audiences/1.jpg
Normal file
|
After Width: | Height: | Size: 229 KiB |
BIN
public/images/audiences/2.jpg
Normal file
|
After Width: | Height: | Size: 164 KiB |
BIN
public/images/audiences/3.jpg
Normal file
|
After Width: | Height: | Size: 147 KiB |
BIN
public/images/audiences/4.jpg
Normal file
|
After Width: | Height: | Size: 117 KiB |
BIN
public/images/audiences/5.jpg
Normal file
|
After Width: | Height: | Size: 102 KiB |
BIN
public/images/audiences/6.jpg
Normal file
|
After Width: | Height: | Size: 184 KiB |
BIN
public/images/audiences/7.jpg
Normal file
|
After Width: | Height: | Size: 124 KiB |
BIN
public/images/audiences/8.jpg
Normal file
|
After Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 5.6 KiB |
BIN
public/images/bento-agent.jpg
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
public/images/bento-cloud.jpg
Normal file
|
After Width: | Height: | Size: 85 KiB |
BIN
public/images/bento-compute.png
Normal file
|
After Width: | Height: | Size: 895 KiB |
BIN
public/images/bento-gpu.jpg
Normal file
|
After Width: | Height: | Size: 179 KiB |
BIN
public/images/bento-network.png
Normal file
|
After Width: | Height: | Size: 151 KiB |
BIN
public/images/bento-storage.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 223 KiB |
|
Before Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 111 KiB |
BIN
public/images/cloud.png
Normal file
|
After Width: | Height: | Size: 723 KiB |
|
Before Width: | Height: | Size: 878 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 938 KiB |
BIN
public/images/cloudhosting.webp
Normal file
|
After Width: | Height: | Size: 1.8 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 316 KiB |
|
Before Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.3 MiB |
BIN
public/images/dark-bento-01-integrations.png
Normal file
|
After Width: | Height: | Size: 355 KiB |
|
Before Width: | Height: | Size: 327 KiB |
|
Before Width: | Height: | Size: 140 KiB |
BIN
public/images/encrypted.png
Normal file
|
After Width: | Height: | Size: 888 KiB |
BIN
public/images/filesystem.png
Normal file
|
After Width: | Height: | Size: 910 KiB |
4
public/images/github.svg
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" aria-label="GitHub" viewBox="0 0 512 512" id="github">
|
||||||
|
<rect width="512" height="512" fill="#1B1817" rx="15%"></rect>
|
||||||
|
<path fill="#fff" d="M335 499c14 0 12 17 12 17H165s-2-17 12-17c13 0 16-6 16-12l-1-50c-71 16-86-28-86-28-12-30-28-37-28-37-24-16 1-16 1-16 26 2 40 26 40 26 22 39 59 28 74 22 2-17 9-28 16-35-57-6-116-28-116-126 0-28 10-51 26-69-3-6-11-32 3-67 0 0 21-7 70 26 42-12 86-12 128 0 49-33 70-26 70-26 14 35 6 61 3 67 16 18 26 41 26 69 0 98-60 120-117 126 10 8 18 24 18 48l-1 70c0 6 3 12 16 12z"></path>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 563 B |
BIN
public/images/iot-gdb6f0c390_1280-1024x706.webp
Normal file
|
After Width: | Height: | Size: 103 KiB |
BIN
public/images/ipfs.png
Normal file
|
After Width: | Height: | Size: 834 KiB |
BIN
public/images/kubernetes.webp
Normal file
|
After Width: | Height: | Size: 90 KiB |
BIN
public/images/linux.png
Normal file
|
After Width: | Height: | Size: 150 KiB |
BIN
public/images/logo/1_eVqphQ2aNKxqHPMPxjRzAA (1).png
Normal file
|
After Width: | Height: | Size: 286 KiB |
BIN
public/images/logo/1_eVqphQ2aNKxqHPMPxjRzAA.png
Normal file
|
After Width: | Height: | Size: 286 KiB |
BIN
public/images/logo/cryptpad.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
public/images/logo/gitea.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
public/images/logo/images.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
public/images/logo/lifekit.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/images/logo/matrix.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/images/logo/nextcloud.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
public/images/logo/stalwart.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/images/pods.png
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
BIN
public/images/s3.png
Normal file
|
After Width: | Height: | Size: 1007 KiB |
BIN
public/images/testpic.png
Normal file
|
After Width: | Height: | Size: 87 KiB |
BIN
public/images/vm.webp
Normal file
|
After Width: | Height: | Size: 78 KiB |
@@ -14,6 +14,8 @@
|
|||||||
.logo:hover {
|
.logo:hover {
|
||||||
filter: drop-shadow(0 0 2em #646cffaa);
|
filter: drop-shadow(0 0 2em #646cffaa);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.logo.react:hover {
|
.logo.react:hover {
|
||||||
filter: drop-shadow(0 0 2em #61dafbaa);
|
filter: drop-shadow(0 0 2em #61dafbaa);
|
||||||
}
|
}
|
||||||
|
|||||||
10
src/App.tsx
@@ -1,4 +1,4 @@
|
|||||||
import { BrowserRouter, Routes, Route } from 'react-router-dom';
|
import { HashRouter, Routes, Route } from 'react-router-dom';
|
||||||
import { Layout } from './components/Layout';
|
import { Layout } from './components/Layout';
|
||||||
import { lazy, Suspense } from 'react';
|
import { lazy, Suspense } from 'react';
|
||||||
|
|
||||||
@@ -10,10 +10,11 @@ const DownloadPage = lazy(() => import('./pages/download/DownloadPage'));
|
|||||||
const ComputePage = lazy(() => import('./pages/compute/ComputePage'));
|
const ComputePage = lazy(() => import('./pages/compute/ComputePage'));
|
||||||
const StoragePage = lazy(() => import('./pages/storage/StoragePage'));
|
const StoragePage = lazy(() => import('./pages/storage/StoragePage'));
|
||||||
const GpuPage = lazy(() => import('./pages/gpu/GpuPage'));
|
const GpuPage = lazy(() => import('./pages/gpu/GpuPage'));
|
||||||
|
const PodsPage = lazy(() => import('./pages/pods/PodsPage'));
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<BrowserRouter>
|
<HashRouter>
|
||||||
<Suspense fallback={<div>Loading...</div>}>
|
<Suspense fallback={<div>Loading...</div>}>
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<Layout />}>
|
<Route path="/" element={<Layout />}>
|
||||||
@@ -24,11 +25,12 @@ function App() {
|
|||||||
<Route path="download" element={<DownloadPage />} />
|
<Route path="download" element={<DownloadPage />} />
|
||||||
<Route path="compute" element={<ComputePage />} />
|
<Route path="compute" element={<ComputePage />} />
|
||||||
<Route path="storage" element={<StoragePage />} />
|
<Route path="storage" element={<StoragePage />} />
|
||||||
<Route path="gpu" element={<GpuPage />} />
|
<Route path="gpu" element={<GpuPage />} />
|
||||||
|
<Route path="pods" element={<PodsPage />} />
|
||||||
</Route>
|
</Route>
|
||||||
</Routes>
|
</Routes>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
</BrowserRouter>
|
</HashRouter>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import clsx from 'clsx'
|
|||||||
|
|
||||||
const baseStyles = {
|
const baseStyles = {
|
||||||
solid:
|
solid:
|
||||||
'inline-flex justify-center rounded-full py-2 px-4 text-sm font-semibold transition-colors',
|
'inline-flex justify-center rounded-full py-2 px-5 text-base font-semibold transition-colors',
|
||||||
outline:
|
outline:
|
||||||
'inline-flex justify-center rounded-full border py-[calc(--spacing(2)-1px)] px-[calc(--spacing(4)-1px)] text-sm transition-colors',
|
'inline-flex justify-center bg-transparent rounded-full border py-[calc(--spacing(2)-1px)] px-[calc(--spacing(5)-1px)] text-base transition-colors',
|
||||||
}
|
}
|
||||||
|
|
||||||
const variantStyles = {
|
const variantStyles = {
|
||||||
@@ -17,7 +17,7 @@ const variantStyles = {
|
|||||||
green: 'bg-green-500 text-white hover:bg-green-600',
|
green: 'bg-green-500 text-white hover:bg-green-600',
|
||||||
},
|
},
|
||||||
outline: {
|
outline: {
|
||||||
cyan: 'border-cyan-500 text-cyan-500 hover:bg-cyan-50',
|
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-300 text-gray-700 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:border-cyan-500 active:border-cyan-500',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ import { Container } from './Container'
|
|||||||
|
|
||||||
export function Footer() {
|
export function Footer() {
|
||||||
return (
|
return (
|
||||||
<footer className="border-t border-gray-200">
|
<footer className="">
|
||||||
<Container>
|
<Container>
|
||||||
<div className="flex flex-col items-start justify-between gap-y-12 pt-16 pb-6 lg:flex-row lg:items-center lg:py-8">
|
<div className="flex flex-col items-start justify-between gap-y-12 pt-16 pb-6 lg:flex-row lg:items-center lg:py-8">
|
||||||
<div>
|
<div>
|
||||||
<div className="flex items-center text-gray-900">
|
<div className="flex items-center text-gray-900">
|
||||||
<img src="/src/images/logomark.svg" alt="Mycelium Logomark" className="h-15 w-15 flex-none" />
|
<img src="/images/logomark.svg" alt="Mycelium Logomark" className="h-15 w-15 flex-none" />
|
||||||
<div className="ml-4">
|
<div className="ml-4">
|
||||||
<p className="text-base font-semibold">Project Mycelium</p>
|
<p className="text-base font-semibold">Project Mycelium</p>
|
||||||
<p className="mt-1 text-sm">Unleash the Power of Decentralization</p>
|
<p className="mt-1 text-sm">Unleash the Power of Decentralization</p>
|
||||||
@@ -27,11 +27,14 @@ export function Footer() {
|
|||||||
<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">
|
||||||
|
Pods
|
||||||
|
</Link>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div className="group relative -mx-4 flex items-center self-stretch p-4 transition-colors hover:bg-gray-100 sm:self-auto sm:rounded-2xl lg:mx-0 lg:self-auto lg:p-6">
|
<div className="group relative -mx-4 flex items-center self-stretch p-4 transition-colors hover:bg-gray-100 sm:self-auto sm:rounded-2xl lg:mx-0 lg:self-auto lg:p-6">
|
||||||
<div className="relative flex h-16 w-16 flex-none items-center justify-center">
|
<div className="relative flex h-16 w-16 flex-none items-center justify-center">
|
||||||
<img src="/src/images/github.svg" alt="GitHub" className="h-16 w-16" />
|
<img src="/images/github.svg" alt="GitHub" className="h-16 w-16" />
|
||||||
</div>
|
</div>
|
||||||
<div className="ml-4 lg:w-72">
|
<div className="ml-4 lg:w-72">
|
||||||
<p className="text-base font-semibold text-gray-900">
|
<p className="text-base font-semibold text-gray-900">
|
||||||
@@ -46,7 +49,7 @@ export function Footer() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col items-center border-t border-gray-200 pt-8 pb-12 md:flex-row-reverse md:justify-between md:pt-6">
|
<div className="flex flex-col items-center border-t border-gray-100 pt-8 pb-12 md:flex-row-reverse md:justify-between md:pt-6">
|
||||||
<p className="mt-6 text-sm text-gray-500 md:mt-0">
|
<p className="mt-6 text-sm text-gray-500 md:mt-0">
|
||||||
© Copyright{' '}
|
© Copyright{' '}
|
||||||
<a href="https://www.threefold.io" target="_blank" rel="noopener noreferrer" className="hover:text-cyan-500 transition-colors">
|
<a href="https://www.threefold.io" target="_blank" rel="noopener noreferrer" className="hover:text-cyan-500 transition-colors">
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
|
import { useState } from 'react'
|
||||||
import { Link, useLocation } from 'react-router-dom'
|
import { Link, useLocation } from 'react-router-dom'
|
||||||
import { Dropdown } from './ui/Dropdown'
|
import { Dropdown } from './ui/Dropdown'
|
||||||
import { ChevronDownIcon } from '@heroicons/react/20/solid'
|
import { ChevronDownIcon } from '@heroicons/react/20/solid'
|
||||||
import { Container } from './Container'
|
import { Container } from './Container'
|
||||||
import { Button } from './Button'
|
import { Button } from './Button'
|
||||||
import pmyceliumLogo from '../images/logos/logo_1.png'
|
import pmyceliumLogo from '../images/logos/logo_1.png'
|
||||||
|
import { Dialog } from '@headlessui/react'
|
||||||
|
import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'
|
||||||
|
|
||||||
const cloudNavItems = [
|
const cloudNavItems = [
|
||||||
{ name: 'Cloud', href: '/cloud' },
|
{ name: 'Cloud', href: '/cloud' },
|
||||||
@@ -15,20 +17,20 @@ const cloudNavItems = [
|
|||||||
|
|
||||||
export function Header() {
|
export function Header() {
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
|
const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
|
||||||
|
|
||||||
const getCurrentPageName = () => {
|
const getCurrentPageName = () => {
|
||||||
const currentPath = location.pathname;
|
const currentPath = location.pathname;
|
||||||
if (currentPath.startsWith('/compute')) return 'Compute';
|
if (currentPath.startsWith('/compute')) return 'Compute';
|
||||||
if (currentPath.startsWith('/storage')) return 'Storage';
|
if (currentPath.startsWith('/storage')) return 'Storage';
|
||||||
if (currentPath.startsWith('/gpu')) return 'GPU';
|
if (currentPath.startsWith('/gpu')) return 'GPU';
|
||||||
if (currentPath.startsWith('/cloud')) return 'Cloud';
|
return 'Cloud';
|
||||||
return 'Cloud';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header>
|
<header className="bg-white">
|
||||||
<nav>
|
<nav className="border-b border-gray-100">
|
||||||
<Container className="relative z-50 flex justify-between py-4">
|
<Container className="flex bg-transparent justify-between py-4">
|
||||||
<div className="relative z-10 flex items-center gap-16">
|
<div className="relative z-10 flex items-center gap-16">
|
||||||
<Link to="/" aria-label="Home">
|
<Link to="/" aria-label="Home">
|
||||||
<img src={pmyceliumLogo} alt="Mycelium" className="h-8 w-auto" />
|
<img src={pmyceliumLogo} alt="Mycelium" className="h-8 w-auto" />
|
||||||
@@ -37,7 +39,14 @@ export function Header() {
|
|||||||
<Dropdown
|
<Dropdown
|
||||||
buttonContent={
|
buttonContent={
|
||||||
<>
|
<>
|
||||||
{getCurrentPageName()}
|
{['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" />
|
<ChevronDownIcon className="h-5 w-5" aria-hidden="true" />
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
@@ -55,6 +64,12 @@ export function Header() {
|
|||||||
>
|
>
|
||||||
Agents
|
Agents
|
||||||
</Link>
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/pods"
|
||||||
|
className="text-base/7 tracking-tight text-gray-700 hover:text-cyan-500 transition-colors"
|
||||||
|
>
|
||||||
|
Pods
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-6">
|
<div className="flex items-center gap-6">
|
||||||
@@ -66,15 +81,101 @@ export function Header() {
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
Start Deployment
|
Deploy Now
|
||||||
</Button>
|
</Button>
|
||||||
<Button to="/download" variant="solid" color="cyan">
|
<Button to="/download" variant="solid" color="cyan">
|
||||||
Get Mycelium Connector
|
Get Mycelium Connector
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</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-700 hover:text-cyan-500 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>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</nav>
|
</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 lg:bg-transparent lg:bg-transparent bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10">
|
||||||
|
<div className="flex items-center justify-between">
|
||||||
|
<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-700 hover:text-cyan-500 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/10">
|
||||||
|
<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
|
||||||
|
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"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
Network
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
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"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
Agents
|
||||||
|
</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>
|
||||||
|
</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>
|
</header>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
181
src/components/HeaderDark.tsx
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
import { useState } from 'react'
|
||||||
|
import { Link, useLocation } from 'react-router-dom'
|
||||||
|
import { Dropdown } from './ui/Dropdown'
|
||||||
|
import { ChevronDownIcon } from '@heroicons/react/20/solid'
|
||||||
|
import { Container } from './Container'
|
||||||
|
import { Button } from './Button'
|
||||||
|
import pmyceliumLogo from '../images/logos/logo_1.png'
|
||||||
|
import { Dialog } from '@headlessui/react'
|
||||||
|
import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'
|
||||||
|
|
||||||
|
const cloudNavItems = [
|
||||||
|
{ name: 'Cloud', href: '/cloud' },
|
||||||
|
{ name: 'Compute', href: '/compute' },
|
||||||
|
{ name: 'Storage', href: '/storage' },
|
||||||
|
{ name: 'GPU', href: '/gpu' },
|
||||||
|
]
|
||||||
|
|
||||||
|
export function HeaderDark() {
|
||||||
|
const location = useLocation()
|
||||||
|
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 (
|
||||||
|
<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">
|
||||||
|
<Dropdown
|
||||||
|
buttonContent={
|
||||||
|
<>
|
||||||
|
{['Compute', 'Storage', 'GPU'].includes(getCurrentPageName()) ? (
|
||||||
|
<>
|
||||||
|
<span className="text-gray-400">Cloud {' >'} </span>
|
||||||
|
<span className="text-white">{getCurrentPageName()}</span>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<span className="text-white">Cloud</span>
|
||||||
|
)}
|
||||||
|
<ChevronDownIcon className="h-5 w-5 text-white" aria-hidden="true" />
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
items={cloudNavItems}
|
||||||
|
/>
|
||||||
|
<Link
|
||||||
|
to="/network"
|
||||||
|
className="text-base/7 tracking-tight text-gray-300 hover:text-cyan-400 transition-colors"
|
||||||
|
>
|
||||||
|
Network
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/agents"
|
||||||
|
className="text-base/7 tracking-tight text-gray-300 hover:text-cyan-400 transition-colors"
|
||||||
|
>
|
||||||
|
Agents
|
||||||
|
</Link>
|
||||||
|
<Link
|
||||||
|
to="/pods"
|
||||||
|
className="text-base/7 tracking-tight text-gray-300 hover:text-cyan-400 transition-colors"
|
||||||
|
>
|
||||||
|
Pods
|
||||||
|
</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">
|
||||||
|
{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-white hover:bg-gray-800"
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
|
>
|
||||||
|
{item.name}
|
||||||
|
</Link>
|
||||||
|
))}
|
||||||
|
<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="/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="/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>
|
||||||
|
</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>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -5,12 +5,14 @@ import { Header } from './Header'
|
|||||||
export function Layout() {
|
export function Layout() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-white antialiased" style={{ fontFamily: 'var(--font-inter)' }}>
|
<div className="bg-[#fdfdfd] antialiased relative" style={{ fontFamily: 'var(--font-inter)' }}>
|
||||||
<Header />
|
<div className="relative z-10">
|
||||||
<main className="">
|
<Header />
|
||||||
<Outlet />
|
<main>
|
||||||
</main>
|
<Outlet />
|
||||||
<Footer />
|
</main>
|
||||||
|
<Footer />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ export const H5 = createTextComponent(
|
|||||||
)
|
)
|
||||||
export const Eyebrow = createTextComponent(
|
export const Eyebrow = createTextComponent(
|
||||||
'h2',
|
'h2',
|
||||||
'text-base/7 font-semibold tracking-[0.18em] uppercase',
|
'text-base/7 font-semibold uppercase tracking-[0.16em]',
|
||||||
{ color: 'accent' }
|
{ color: 'accent' }
|
||||||
)
|
)
|
||||||
export const SectionHeader = createTextComponent(
|
export const SectionHeader = createTextComponent(
|
||||||
@@ -162,5 +162,5 @@ export const DownloadCardDescription = createTextComponent(
|
|||||||
'text-base/7 leading-normal tracking-normal'
|
'text-base/7 leading-normal tracking-normal'
|
||||||
)
|
)
|
||||||
|
|
||||||
export const CT = createTextComponent('span', 'text-lg lg:text-xl font-semibold')
|
export const CT = createTextComponent('span', 'text-base lg:text-lg font-medium')
|
||||||
export const CP = createTextComponent('p', 'text-sm lg:text-base tracking-wide leading-tight font-light')
|
export const CP = createTextComponent('p', 'text-sm lg:text-base tracking-wide leading-tight font-light')
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export default function FeaturesSectionDemo() {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
return (
|
return (
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 relative z-10 py-10 max-w-7xl mx-auto">
|
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 relative z-10 py-8 max-w-7xl mx-auto">
|
||||||
{features.map((feature, index) => (
|
{features.map((feature, index) => (
|
||||||
<Feature key={feature.title} {...feature} index={index} />
|
<Feature key={feature.title} {...feature} index={index} />
|
||||||
))}
|
))}
|
||||||
@@ -81,7 +81,7 @@ const Feature = ({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex flex-col lg:border-r py-10 relative group/feature dark:border-neutral-800",
|
"flex flex-col lg:border-r py-8 relative group/feature dark:border-neutral-800",
|
||||||
(index === 0 || index === 4) && "lg:border-l dark:border-neutral-800",
|
(index === 0 || index === 4) && "lg:border-l dark:border-neutral-800",
|
||||||
index < 4 && "lg:border-b dark:border-neutral-800"
|
index < 4 && "lg:border-b dark:border-neutral-800"
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export default function FeaturesSectionDemo() {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
return (
|
return (
|
||||||
<div className="relative z-20 py-10 lg:py-40 max-w-7xl mx-auto">
|
<div className="relative z-20 py-8 lg:py-40 max-w-7xl mx-auto">
|
||||||
<div className="px-8">
|
<div className="px-8">
|
||||||
<h4 className="text-3xl lg:text-5xl lg:leading-tight max-w-5xl mx-auto text-center tracking-tight font-medium text-black dark:text-white">
|
<h4 className="text-3xl lg:text-5xl lg:leading-tight max-w-5xl mx-auto text-center tracking-tight font-medium text-black dark:text-white">
|
||||||
Packed with thousands of features
|
Packed with thousands of features
|
||||||
|
|||||||
@@ -20,15 +20,6 @@ export const InfiniteMovingCards = ({
|
|||||||
const scrollerRef = React.useRef<HTMLUListElement>(null);
|
const scrollerRef = React.useRef<HTMLUListElement>(null);
|
||||||
const [start, setStart] = useState(false);
|
const [start, setStart] = useState(false);
|
||||||
|
|
||||||
const getDirection = useCallback(() => {
|
|
||||||
if (containerRef.current) {
|
|
||||||
if (direction === "left") {
|
|
||||||
containerRef.current.style.setProperty("--animation-direction", "forwards");
|
|
||||||
} else {
|
|
||||||
containerRef.current.style.setProperty("--animation-direction", "reverse");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}, [direction]);
|
|
||||||
|
|
||||||
const getSpeed = useCallback(() => {
|
const getSpeed = useCallback(() => {
|
||||||
if (containerRef.current) {
|
if (containerRef.current) {
|
||||||
@@ -53,11 +44,10 @@ export const InfiniteMovingCards = ({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
getDirection();
|
|
||||||
getSpeed();
|
getSpeed();
|
||||||
setStart(true);
|
setStart(true);
|
||||||
}
|
}
|
||||||
}, [getDirection, getSpeed]);
|
}, [getSpeed]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
addAnimation();
|
addAnimation();
|
||||||
@@ -75,6 +65,9 @@ export const InfiniteMovingCards = ({
|
|||||||
start && "animate-scroll",
|
start && "animate-scroll",
|
||||||
pauseOnHover && "hover:[animation-play-state:paused]",
|
pauseOnHover && "hover:[animation-play-state:paused]",
|
||||||
)}
|
)}
|
||||||
|
style={{
|
||||||
|
"--animation-direction": direction === "left" ? "forwards" : "reverse",
|
||||||
|
} as React.CSSProperties}
|
||||||
>
|
>
|
||||||
{items.map((item, idx) => (
|
{items.map((item, idx) => (
|
||||||
<li className="relative flex-shrink-0" key={idx}>
|
<li className="relative flex-shrink-0" key={idx}>
|
||||||
|
|||||||
64
src/components/ui/GridBlink.tsx
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useEffect, useRef } from "react";
|
||||||
|
|
||||||
|
export function GridBlink() {
|
||||||
|
const svgRef = useRef<SVGSVGElement>(null);
|
||||||
|
const maxActive = 3; // ✅ limit active squares
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const svg = svgRef.current;
|
||||||
|
if (!svg) return;
|
||||||
|
|
||||||
|
const squares = Array.from(svg.querySelectorAll<SVGRectElement>(".blink-square"));
|
||||||
|
|
||||||
|
function scheduleBlink() {
|
||||||
|
// ✅ only blink if we have too few active
|
||||||
|
const currentlyActive = squares.filter(sq => sq.classList.contains("active"));
|
||||||
|
if (currentlyActive.length < maxActive) {
|
||||||
|
const sq = squares[Math.floor(Math.random() * squares.length)];
|
||||||
|
sq.classList.add("active");
|
||||||
|
|
||||||
|
const duration = 800 + Math.random() * 1000; // ✅ slower fade-out
|
||||||
|
setTimeout(() => {
|
||||||
|
sq.classList.remove("active");
|
||||||
|
}, duration);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ✅ slower scheduling
|
||||||
|
setTimeout(scheduleBlink, 300 + Math.random() * 600);
|
||||||
|
}
|
||||||
|
|
||||||
|
scheduleBlink();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const rows = 20;
|
||||||
|
const cols = 32;
|
||||||
|
const size = 40;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
ref={svgRef}
|
||||||
|
className="pointer-events-none absolute inset-0 z-0"
|
||||||
|
style={{ width: "100%", height: "100%" }}
|
||||||
|
>
|
||||||
|
{Array.from({ length: rows * cols }).map((_, i) => {
|
||||||
|
const x = (i % cols) * size;
|
||||||
|
const y = Math.floor(i / cols) * size;
|
||||||
|
return (
|
||||||
|
<rect
|
||||||
|
key={i}
|
||||||
|
className="blink-square"
|
||||||
|
x={x}
|
||||||
|
y={y}
|
||||||
|
width={size}
|
||||||
|
height={size}
|
||||||
|
fill="transparent"
|
||||||
|
stroke="#efefef"
|
||||||
|
strokeWidth="1"
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -62,7 +62,7 @@ export const Carousel = ({ items, initialScroll = 0 }: CarouselProps) => {
|
|||||||
return (
|
return (
|
||||||
<div className="relative w-full">
|
<div className="relative w-full">
|
||||||
<div
|
<div
|
||||||
className="flex w-full overflow-x-scroll overscroll-x-auto scroll-smooth py-10 [scrollbar-width:none] md:py-20"
|
className="flex w-full overflow-x-scroll overscroll-x-auto scroll-smooth py-8 [scrollbar-width:none] md:py-20"
|
||||||
ref={carouselRef}
|
ref={carouselRef}
|
||||||
onScroll={checkScrollability}
|
onScroll={checkScrollability}
|
||||||
>
|
>
|
||||||
@@ -135,7 +135,7 @@ export const Card = ({
|
|||||||
layoutId={layout ? `card-${card.title}` : undefined}
|
layoutId={layout ? `card-${card.title}` : undefined}
|
||||||
className="relative z-10 flex h-104 w-80 flex-col justify-between overflow-hidden rounded-3xl p-8 md:h-120 md:w-96"
|
className="relative z-10 flex h-104 w-80 flex-col justify-between overflow-hidden rounded-3xl p-8 md:h-120 md:w-96"
|
||||||
>
|
>
|
||||||
<div className="flex h-2/5 flex-col justify-center py-6 px-4">
|
<div className="flex h-2/5 flex-col justify-center py-4 px-4">
|
||||||
<motion.p
|
<motion.p
|
||||||
layoutId={layout ? `category-${card.category}` : undefined}
|
layoutId={layout ? `category-${card.category}` : undefined}
|
||||||
className="text-left font-sans font-semibold text-cyan-500 uppercase tracking-wider text-xs md:text-sm"
|
className="text-left font-sans font-semibold text-cyan-500 uppercase tracking-wider text-xs md:text-sm"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ const DarkCard = React.forwardRef<
|
|||||||
<div
|
<div
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
className={cn(
|
||||||
"border border-white/10 bg-white/3 p-8 backdrop-blur-sm transition hover:-translate-y-1 hover:border-cyan-300/50 rounded-3xl hover:bg-white/6 hover:scale-105 hover:shadow-lg hover:shadow-cyan-500/15",
|
"border border-white/10 bg-white/3 p-8 backdrop-blur-sm transition hover:-translate-y-1 hover:border-cyan-300/50 rounded-xl hover:bg-white/6 hover:scale-105 hover:shadow-lg hover:shadow-cyan-500/15",
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
|
|||||||
63
src/components/ui/spotlight.tsx
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
|
||||||
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
|
type SpotlightProps = {
|
||||||
|
className?: string;
|
||||||
|
fill?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const Spotlight = ({ className, fill }: SpotlightProps) => {
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
className={cn(
|
||||||
|
"animate-spotlight pointer-events-none absolute z-[1] h-[169%] w-[138%] lg:w-[84%] opacity-100 mix-blend-screen",
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 3787 2842"
|
||||||
|
fill="none"
|
||||||
|
>
|
||||||
|
<g filter="url(#filter)">
|
||||||
|
<ellipse
|
||||||
|
cx="1924.71"
|
||||||
|
cy="273.501"
|
||||||
|
rx="1924.71"
|
||||||
|
ry="273.501"
|
||||||
|
transform="matrix(-0.822377 -0.568943 -0.568943 0.822377 3631.88 2291.09)"
|
||||||
|
fill={fill || "url(#spotlightGradient)"}
|
||||||
|
fillOpacity="1"
|
||||||
|
/>
|
||||||
|
</g>
|
||||||
|
|
||||||
|
<defs>
|
||||||
|
{/* ✅ Cyan radial gradient */}
|
||||||
|
<radialGradient
|
||||||
|
id="spotlightGradient"
|
||||||
|
cx="0"
|
||||||
|
cy="0"
|
||||||
|
r="1"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
gradientTransform="translate(2200 1600) rotate(90) scale(1800 2800)"
|
||||||
|
>
|
||||||
|
<stop offset="0%" stopColor="#00eaff" stopOpacity="0.95" />
|
||||||
|
<stop offset="40%" stopColor="#00eaff" stopOpacity="0.35" />
|
||||||
|
<stop offset="100%" stopColor="#00eaff" stopOpacity="0" />
|
||||||
|
</radialGradient>
|
||||||
|
|
||||||
|
<filter
|
||||||
|
id="filter"
|
||||||
|
x="0.860352"
|
||||||
|
y="0.838989"
|
||||||
|
width="3785.16"
|
||||||
|
height="2840.26"
|
||||||
|
filterUnits="userSpaceOnUse"
|
||||||
|
colorInterpolationFilters="sRGB"
|
||||||
|
>
|
||||||
|
<feFlood floodOpacity="0" result="BackgroundImageFix" />
|
||||||
|
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" />
|
||||||
|
<feGaussianBlur stdDeviation="151" result="effect1_foregroundBlur" />
|
||||||
|
</filter>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
};
|
||||||
139
src/components/ui/text-hover-effect.tsx
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
"use client";
|
||||||
|
import { useRef, useEffect, useState } from "react";
|
||||||
|
import { motion, useAnimation } from "motion/react";
|
||||||
|
|
||||||
|
export const TextHoverEffect = ({
|
||||||
|
text,
|
||||||
|
duration = 6, // loop duration
|
||||||
|
}: {
|
||||||
|
text: string;
|
||||||
|
duration?: number;
|
||||||
|
}) => {
|
||||||
|
const svgRef = useRef<SVGSVGElement>(null);
|
||||||
|
const controls = useAnimation();
|
||||||
|
const [hovered, setHovered] = useState(false);
|
||||||
|
|
||||||
|
// ✅ Animate mask looping automatically
|
||||||
|
useEffect(() => {
|
||||||
|
const loop = async () => {
|
||||||
|
while (true) {
|
||||||
|
await controls.start({
|
||||||
|
cx: ["20%", "80%", "50%"],
|
||||||
|
cy: ["20%", "80%", "50%"],
|
||||||
|
transition: {
|
||||||
|
duration,
|
||||||
|
ease: "easeInOut",
|
||||||
|
repeat: 0,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
loop();
|
||||||
|
}, [controls, duration]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<svg
|
||||||
|
ref={svgRef}
|
||||||
|
width="100%"
|
||||||
|
height="100%"
|
||||||
|
viewBox="0 0 300 100"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
onMouseEnter={() => setHovered(true)}
|
||||||
|
onMouseLeave={() => setHovered(false)}
|
||||||
|
className="select-none"
|
||||||
|
>
|
||||||
|
<defs>
|
||||||
|
{/* ✅ Softer cyan gradient */}
|
||||||
|
<linearGradient id="textGradient" gradientUnits="userSpaceOnUse">
|
||||||
|
{hovered ? (
|
||||||
|
<>
|
||||||
|
<stop offset="0%" stopColor="#7df3ff" />
|
||||||
|
<stop offset="40%" stopColor="#4adffa" />
|
||||||
|
<stop offset="70%" stopColor="#18c5e8" />
|
||||||
|
<stop offset="100%" stopColor="#0aaecb" />
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<stop offset="0%" stopColor="#7df3ff33" />
|
||||||
|
<stop offset="100%" stopColor="#0aaecb33" />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</linearGradient>
|
||||||
|
|
||||||
|
{/* ✅ Mask with autoplay motion */}
|
||||||
|
<motion.radialGradient
|
||||||
|
id="revealMask"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
r="45%"
|
||||||
|
animate={controls}
|
||||||
|
initial={{ cx: "50%", cy: "50%" }}
|
||||||
|
>
|
||||||
|
<stop offset="0%" stopColor="white" />
|
||||||
|
<stop offset="100%" stopColor="black" />
|
||||||
|
</motion.radialGradient>
|
||||||
|
|
||||||
|
{/* ✅ Glow */}
|
||||||
|
<filter id="glow">
|
||||||
|
<feGaussianBlur stdDeviation="3.2" result="blur" />
|
||||||
|
<feMerge>
|
||||||
|
<feMergeNode in="blur" />
|
||||||
|
<feMergeNode in="SourceGraphic" />
|
||||||
|
</feMerge>
|
||||||
|
</filter>
|
||||||
|
|
||||||
|
<mask id="textMask">
|
||||||
|
<rect x="0" y="0" width="100%" height="100%" fill="url(#revealMask)" />
|
||||||
|
</mask>
|
||||||
|
</defs>
|
||||||
|
|
||||||
|
{/* ✅ Background faint stroke */}
|
||||||
|
<text
|
||||||
|
x="50%"
|
||||||
|
y="50%"
|
||||||
|
textAnchor="middle"
|
||||||
|
dominantBaseline="middle"
|
||||||
|
strokeWidth="0.15"
|
||||||
|
className="fill-transparent stroke-neutral-300 dark:stroke-neutral-800 font-[helvetica] text-7xl font-bold"
|
||||||
|
style={{ opacity: hovered ? 0.25 : 0.1 }}
|
||||||
|
>
|
||||||
|
{text}
|
||||||
|
</text>
|
||||||
|
|
||||||
|
{/* ✅ Line drawing animation always plays too */}
|
||||||
|
<motion.text
|
||||||
|
x="50%"
|
||||||
|
y="50%"
|
||||||
|
textAnchor="middle"
|
||||||
|
dominantBaseline="middle"
|
||||||
|
strokeWidth="0.25"
|
||||||
|
className="fill-transparent stroke-cyan-300 font-[helvetica] text-7xl font-bold"
|
||||||
|
initial={{ strokeDashoffset: 600, strokeDasharray: 600 }}
|
||||||
|
animate={{
|
||||||
|
strokeDashoffset: 0,
|
||||||
|
strokeDasharray: 600,
|
||||||
|
}}
|
||||||
|
transition={{
|
||||||
|
duration: 2.2,
|
||||||
|
ease: "easeInOut",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{text}
|
||||||
|
</motion.text>
|
||||||
|
|
||||||
|
{/* ✅ Final filled glowing cyan text (mask reveals it) */}
|
||||||
|
<text
|
||||||
|
x="50%"
|
||||||
|
y="50%"
|
||||||
|
textAnchor="middle"
|
||||||
|
dominantBaseline="middle"
|
||||||
|
stroke="url(#textGradient)"
|
||||||
|
strokeWidth="1.1"
|
||||||
|
mask="url(#textMask)"
|
||||||
|
filter="url(#glow)"
|
||||||
|
className="font-[helvetica] text-7xl font-bold fill-[url(#textGradient)]"
|
||||||
|
>
|
||||||
|
{text}
|
||||||
|
</text>
|
||||||
|
</svg>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -14,152 +14,111 @@ interface MapProps {
|
|||||||
|
|
||||||
export default function WorldMap({
|
export default function WorldMap({
|
||||||
dots = [],
|
dots = [],
|
||||||
lineColor = "#06b6d4",
|
lineColor = "#06b6d4", // cyan-500
|
||||||
}: MapProps) {
|
}: MapProps) {
|
||||||
const svgRef = useRef<SVGSVGElement>(null);
|
const svgRef = useRef<SVGSVGElement>(null);
|
||||||
const map = new DottedMap({ height: 100, grid: "diagonal" });
|
|
||||||
|
|
||||||
|
// ✅ Force dark-dotted map theme
|
||||||
|
const map = new DottedMap({ height: 100, grid: "diagonal" });
|
||||||
const svgMap = map.getSVG({
|
const svgMap = map.getSVG({
|
||||||
radius: 0.22,
|
radius: 0.22,
|
||||||
color: "#FFFFFF40", // Hardcoded for dark theme
|
color: "#06b6d480", // cyan-500 at 50% opacity
|
||||||
shape: "circle",
|
shape: "circle",
|
||||||
backgroundColor: "black", // Hardcoded for dark theme
|
backgroundColor: "#111111",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// ✅ Point projection stays the same
|
||||||
const projectPoint = (lat: number, lng: number) => {
|
const projectPoint = (lat: number, lng: number) => {
|
||||||
const x = (lng + 180) * (800 / 360);
|
const x = (lng + 180) * (800 / 360);
|
||||||
const y = (90 - lat) * (400 / 180);
|
const y = (90 - lat) * (400 / 180);
|
||||||
return { x, y };
|
return { x, y };
|
||||||
};
|
};
|
||||||
|
|
||||||
const createCurvedPath = (
|
const createCurvedPath = (start: any, end: any) => {
|
||||||
start: { x: number; y: number },
|
|
||||||
end: { x: number; y: number }
|
|
||||||
) => {
|
|
||||||
const midX = (start.x + end.x) / 2;
|
const midX = (start.x + end.x) / 2;
|
||||||
const midY = Math.min(start.y, end.y) - 50;
|
const midY = Math.min(start.y, end.y) - 50;
|
||||||
return `M ${start.x} ${start.y} Q ${midX} ${midY} ${end.x} ${end.y}`;
|
return `M ${start.x} ${start.y} Q ${midX} ${midY} ${end.x} ${end.y}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full aspect-[2/1] dark:bg-black bg-white rounded-lg relative font-sans">
|
<div className="w-full aspect-[2/1] bg-[#111111] rounded-lg relative font-sans">
|
||||||
<img
|
<img
|
||||||
src={`data:image/svg+xml;utf8,${encodeURIComponent(svgMap)}`}
|
src={`data:image/svg+xml;utf8,${encodeURIComponent(svgMap)}`}
|
||||||
className="h-full w-full [mask-image:linear-gradient(to_bottom,transparent,white_10%,white_90%,transparent)] pointer-events-none select-none"
|
className="h-full w-full pointer-events-none select-none opacity-[0.6]"
|
||||||
alt="world map"
|
alt="world map"
|
||||||
height="495"
|
|
||||||
width="1056"
|
|
||||||
draggable={false}
|
draggable={false}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{/* ✅ Lines + points */}
|
||||||
<svg
|
<svg
|
||||||
ref={svgRef}
|
ref={svgRef}
|
||||||
viewBox="0 0 800 400"
|
viewBox="0 0 800 400"
|
||||||
className="w-full h-full absolute inset-0 pointer-events-none select-none"
|
className="w-full h-full absolute inset-0 pointer-events-none select-none"
|
||||||
>
|
>
|
||||||
|
{/* ✅ animated curved travel lines */}
|
||||||
{dots.map((dot, i) => {
|
{dots.map((dot, i) => {
|
||||||
const startPoint = projectPoint(dot.start.lat, dot.start.lng);
|
const startPoint = projectPoint(dot.start.lat, dot.start.lng);
|
||||||
const endPoint = projectPoint(dot.end.lat, dot.end.lng);
|
const endPoint = projectPoint(dot.end.lat, dot.end.lng);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<g key={`path-group-${i}`}>
|
<motion.path
|
||||||
<motion.path
|
key={`path-${i}`}
|
||||||
d={createCurvedPath(startPoint, endPoint)}
|
d={createCurvedPath(startPoint, endPoint)}
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="url(#path-gradient)"
|
stroke="url(#path-gradient)"
|
||||||
strokeWidth="1"
|
strokeWidth="1"
|
||||||
initial={{
|
initial={{ pathLength: 0 }}
|
||||||
pathLength: 0,
|
animate={{ pathLength: 1 }}
|
||||||
}}
|
transition={{
|
||||||
animate={{
|
duration: 1,
|
||||||
pathLength: 1,
|
delay: 0.5 * i,
|
||||||
}}
|
ease: "easeOut",
|
||||||
transition={{
|
}}
|
||||||
duration: 1,
|
/>
|
||||||
delay: 0.5 * i,
|
|
||||||
ease: "easeOut",
|
|
||||||
}}
|
|
||||||
key={`start-upper-${i}`}
|
|
||||||
></motion.path>
|
|
||||||
</g>
|
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
||||||
|
{/* ✅ glowing path gradient */}
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="path-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
<linearGradient id="path-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
||||||
<stop offset="0%" stopColor="white" stopOpacity="0" />
|
<stop offset="0%" stopColor="black" stopOpacity="0" />
|
||||||
<stop offset="5%" stopColor={lineColor} stopOpacity="1" />
|
<stop offset="5%" stopColor={lineColor} stopOpacity="1" />
|
||||||
<stop offset="95%" stopColor={lineColor} stopOpacity="1" />
|
<stop offset="95%" stopColor={lineColor} stopOpacity="1" />
|
||||||
<stop offset="100%" stopColor="white" stopOpacity="0" />
|
<stop offset="100%" stopColor="black" stopOpacity="0" />
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
</defs>
|
</defs>
|
||||||
|
|
||||||
{dots.map((dot, i) => (
|
{/* ✅ start & end points with pulsing cyan glow */}
|
||||||
<g key={`points-group-${i}`}>
|
{dots.map((dot, i) => {
|
||||||
<g key={`start-${i}`}>
|
const s = projectPoint(dot.start.lat, dot.start.lng);
|
||||||
<circle
|
const e = projectPoint(dot.end.lat, dot.end.lng);
|
||||||
cx={projectPoint(dot.start.lat, dot.start.lng).x}
|
|
||||||
cy={projectPoint(dot.start.lat, dot.start.lng).y}
|
return (
|
||||||
r="2"
|
<g key={`points-${i}`}>
|
||||||
fill={lineColor}
|
{[s, e].map((p, idx) => (
|
||||||
/>
|
<g key={idx}>
|
||||||
<circle
|
<circle cx={p.x} cy={p.y} r="2" fill={lineColor} />
|
||||||
cx={projectPoint(dot.start.lat, dot.start.lng).x}
|
<circle cx={p.x} cy={p.y} r="2" fill={lineColor} opacity="0.5">
|
||||||
cy={projectPoint(dot.start.lat, dot.start.lng).y}
|
<animate
|
||||||
r="2"
|
attributeName="r"
|
||||||
fill={lineColor}
|
from="2"
|
||||||
opacity="0.5"
|
to="7"
|
||||||
>
|
dur="1.4s"
|
||||||
<animate
|
repeatCount="indefinite"
|
||||||
attributeName="r"
|
/>
|
||||||
from="2"
|
<animate
|
||||||
to="8"
|
attributeName="opacity"
|
||||||
dur="1.5s"
|
from="0.6"
|
||||||
begin="0s"
|
to="0"
|
||||||
repeatCount="indefinite"
|
dur="1.4s"
|
||||||
/>
|
repeatCount="indefinite"
|
||||||
<animate
|
/>
|
||||||
attributeName="opacity"
|
</circle>
|
||||||
from="0.5"
|
</g>
|
||||||
to="0"
|
))}
|
||||||
dur="1.5s"
|
|
||||||
begin="0s"
|
|
||||||
repeatCount="indefinite"
|
|
||||||
/>
|
|
||||||
</circle>
|
|
||||||
</g>
|
</g>
|
||||||
<g key={`end-${i}`}>
|
);
|
||||||
<circle
|
})}
|
||||||
cx={projectPoint(dot.end.lat, dot.end.lng).x}
|
|
||||||
cy={projectPoint(dot.end.lat, dot.end.lng).y}
|
|
||||||
r="2"
|
|
||||||
fill={lineColor}
|
|
||||||
/>
|
|
||||||
<circle
|
|
||||||
cx={projectPoint(dot.end.lat, dot.end.lng).x}
|
|
||||||
cy={projectPoint(dot.end.lat, dot.end.lng).y}
|
|
||||||
r="2"
|
|
||||||
fill={lineColor}
|
|
||||||
opacity="0.5"
|
|
||||||
>
|
|
||||||
<animate
|
|
||||||
attributeName="r"
|
|
||||||
from="2"
|
|
||||||
to="8"
|
|
||||||
dur="1.5s"
|
|
||||||
begin="0s"
|
|
||||||
repeatCount="indefinite"
|
|
||||||
/>
|
|
||||||
<animate
|
|
||||||
attributeName="opacity"
|
|
||||||
from="0.5"
|
|
||||||
to="0"
|
|
||||||
dur="1.5s"
|
|
||||||
begin="0s"
|
|
||||||
repeatCount="indefinite"
|
|
||||||
/>
|
|
||||||
</circle>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
))}
|
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
BIN
src/images/6890d07f23cb642ec7274aee_platform-image.webp
Normal file
|
After Width: | Height: | Size: 106 KiB |
BIN
src/images/ChatGPT Image Nov 6, 2025, 09_01_36 PM.png
Normal file
|
After Width: | Height: | Size: 2.0 MiB |
BIN
src/images/bento-compute.png
Normal file
|
After Width: | Height: | Size: 1002 KiB |
BIN
src/images/bento-gpu.jpg
Normal file
|
After Width: | Height: | Size: 179 KiB |
BIN
src/images/bento-storage.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
src/images/cloudhosting.png
Normal file
|
After Width: | Height: | Size: 2.0 MiB |
@@ -6,9 +6,7 @@
|
|||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|
||||||
color-scheme: light dark;
|
|
||||||
color: rgba(255, 255, 255, 0.87);
|
color: rgba(255, 255, 255, 0.87);
|
||||||
background-color: #242424;
|
|
||||||
|
|
||||||
font-synthesis: none;
|
font-synthesis: none;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
@@ -60,7 +58,6 @@ button:focus-visible {
|
|||||||
@media (prefers-color-scheme: light) {
|
@media (prefers-color-scheme: light) {
|
||||||
:root {
|
:root {
|
||||||
color: #213547;
|
color: #213547;
|
||||||
background-color: #ffffff;
|
|
||||||
}
|
}
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #747bff;
|
color: #747bff;
|
||||||
|
|||||||