diff --git a/src/components/HeaderDark.tsx b/src/components/HeaderDark.tsx new file mode 100644 index 0000000..623bcfe --- /dev/null +++ b/src/components/HeaderDark.tsx @@ -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 ( +
+ + +
+ +
+ + Mycelium + + + +
+
+
+
+ {cloudNavItems.map((item) => ( + setMobileMenuOpen(false)} + > + {item.name} + + ))} + setMobileMenuOpen(false)} + > + Network + + setMobileMenuOpen(false)} + > + Agents + + setMobileMenuOpen(false)} + > + Pods + +
+
+ + +
+
+
+
+
+
+ ) +} diff --git a/src/pages/home/HomeHostingDark.tsx b/src/pages/home/HomeHostingDark.tsx index 4d65ed4..c71d5f8 100644 --- a/src/pages/home/HomeHostingDark.tsx +++ b/src/pages/home/HomeHostingDark.tsx @@ -6,6 +6,7 @@ import { } from '@heroicons/react/24/outline' import { CP, CT, Eyebrow, H3, P } from '@/components/Texts' import { DarkCard } from '@/components/ui/cards' +import { HeaderDark } from '@/components/HeaderDark' const features = [ { @@ -32,7 +33,9 @@ const features = [ export function HomeHostingDark() { return ( -
+ <> + +
DEPLOY

Run Real Infrastructure on Your Own Hardware

@@ -60,5 +63,6 @@ export function HomeHostingDark() {
+ ) }