forked from emre/www_projectmycelium_com
Compare commits
3 Commits
d1fc11ce80
...
developmen
| Author | SHA1 | Date | |
|---|---|---|---|
| f015a0d892 | |||
| 954d51dcaa | |||
| 3ac2f8ede7 |
BIN
public/images/logowhite.png
Normal file
BIN
public/images/logowhite.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
@@ -18,7 +18,7 @@ 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-300 text-white 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:border-cyan-500 active:border-cyan-500',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ 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/logowhite.png'
|
||||||
import { Dialog } from '@headlessui/react'
|
import { Dialog } from '@headlessui/react'
|
||||||
import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'
|
import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ export function HeaderDark() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<header className="bg-[#111111]">
|
<header className="bg-[#111111]">
|
||||||
<nav className="border-b border-gray-800">
|
<nav className="">
|
||||||
<Container className="flex bg-transparent justify-between py-4">
|
<Container className="flex bg-transparent justify-between py-4">
|
||||||
<div className="relative z-10 flex items-center gap-16">
|
<div className="relative z-10 flex items-center gap-16">
|
||||||
<Link to="/" aria-label="Home">
|
<Link to="/" aria-label="Home">
|
||||||
@@ -37,12 +37,13 @@ export function HeaderDark() {
|
|||||||
</Link>
|
</Link>
|
||||||
<div className="hidden lg:flex lg:gap-10">
|
<div className="hidden lg:flex lg:gap-10">
|
||||||
<Dropdown
|
<Dropdown
|
||||||
|
buttonClassName="bg-transparent"
|
||||||
buttonContent={
|
buttonContent={
|
||||||
<>
|
<>
|
||||||
{['Compute', 'Storage', 'GPU'].includes(getCurrentPageName()) ? (
|
{['Compute', 'Storage', 'GPU'].includes(getCurrentPageName()) ? (
|
||||||
<>
|
<>
|
||||||
<span className="text-gray-400">Cloud {' >'} </span>
|
<span className="text-white bg-[#111111]">Cloud {' >'} </span>
|
||||||
<span className="text-white">{getCurrentPageName()}</span>
|
<span className="text-white bg-[#111111]">{getCurrentPageName()}</span>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<span className="text-white">Cloud</span>
|
<span className="text-white">Cloud</span>
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { TextHoverEffect } from "@/components/ui/text-hover-effect";
|
import { TextHoverEffects } from "@/components/ui/text-hover-effects";
|
||||||
|
|
||||||
export function HomeHeadline() {
|
export function HomeHeadline() {
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center justify-center h-auto max-h-[200px]">
|
<div className="flex items-center justify-center h-auto max-h-[200px]">
|
||||||
<TextHoverEffect text="MYCELIUM" />
|
<TextHoverEffects text="MYCELIUM" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
9
src/components/HomeHeadlineDark.tsx
Normal file
9
src/components/HomeHeadlineDark.tsx
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { TextHoverEffect } from "@/components/ui/text-hover-effect";
|
||||||
|
|
||||||
|
export function HomeHeadlineDark() {
|
||||||
|
return (
|
||||||
|
<div className="flex items-center justify-center h-auto max-h-[200px]">
|
||||||
|
<TextHoverEffect text="MYCELIUM" />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
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 { HeaderDark } from './HeaderDark'
|
||||||
|
|
||||||
export function Layout() {
|
export function Layout() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="bg-[#fdfdfd] antialiased relative" style={{ fontFamily: 'var(--font-inter)' }}>
|
<div className="bg-[#fdfdfd] antialiased relative" style={{ fontFamily: 'var(--font-inter)' }}>
|
||||||
<div className="relative z-10">
|
<div className="relative z-10">
|
||||||
<Header />
|
<HeaderDark />
|
||||||
<main>
|
<main>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -10,13 +10,14 @@ interface DropdownItem {
|
|||||||
interface DropdownProps {
|
interface DropdownProps {
|
||||||
buttonContent: React.ReactNode
|
buttonContent: React.ReactNode
|
||||||
items: DropdownItem[]
|
items: DropdownItem[]
|
||||||
|
buttonClassName?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export function Dropdown({ buttonContent, items }: DropdownProps) {
|
export function Dropdown({ buttonContent, items, buttonClassName }: DropdownProps) {
|
||||||
return (
|
return (
|
||||||
<Menu as="div" className="relative inline-block text-left">
|
<Menu as="div" className="relative inline-block text-left">
|
||||||
<div>
|
<div>
|
||||||
<Menu.Button className="inline-flex w-full justify-center items-center gap-x-1.5 rounded-md bg-white text-base/7 tracking-tight text-gray-700 hover:text-cyan-500 transition-colors">
|
<Menu.Button className={`inline-flex w-full justify-center items-center gap-x-1.5 rounded-md text-base/7 tracking-tight text-gray-700 hover:text-cyan-500 transition-colors ${buttonClassName}`}>
|
||||||
{buttonContent}
|
{buttonContent}
|
||||||
</Menu.Button>
|
</Menu.Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,35 +1,31 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import { useRef, useEffect, useState } from "react";
|
import React, { useRef, useEffect, useState } from "react";
|
||||||
import { motion, useAnimation } from "motion/react";
|
import { motion } from "motion/react";
|
||||||
|
|
||||||
export const TextHoverEffect = ({
|
export const TextHoverEffect = ({
|
||||||
text,
|
text,
|
||||||
duration = 6, // loop duration
|
duration,
|
||||||
}: {
|
}: {
|
||||||
text: string;
|
text: string;
|
||||||
duration?: number;
|
duration?: number;
|
||||||
|
automatic?: boolean;
|
||||||
}) => {
|
}) => {
|
||||||
const svgRef = useRef<SVGSVGElement>(null);
|
const svgRef = useRef<SVGSVGElement>(null);
|
||||||
const controls = useAnimation();
|
const [cursor, setCursor] = useState({ x: 0, y: 0 });
|
||||||
const [hovered, setHovered] = useState(false);
|
const [hovered, setHovered] = useState(false);
|
||||||
|
const [maskPosition, setMaskPosition] = useState({ cx: "50%", cy: "50%" });
|
||||||
|
|
||||||
// ✅ Animate mask looping automatically
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const loop = async () => {
|
if (svgRef.current && cursor.x !== null && cursor.y !== null) {
|
||||||
while (true) {
|
const svgRect = svgRef.current.getBoundingClientRect();
|
||||||
await controls.start({
|
const cxPercentage = ((cursor.x - svgRect.left) / svgRect.width) * 100;
|
||||||
cx: ["20%", "80%", "50%"],
|
const cyPercentage = ((cursor.y - svgRect.top) / svgRect.height) * 100;
|
||||||
cy: ["20%", "80%", "50%"],
|
setMaskPosition({
|
||||||
transition: {
|
cx: `${cxPercentage}%`,
|
||||||
duration,
|
cy: `${cyPercentage}%`,
|
||||||
ease: "easeInOut",
|
});
|
||||||
repeat: 0,
|
}
|
||||||
},
|
}, [cursor]);
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
loop();
|
|
||||||
}, [controls, duration]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
@@ -40,97 +36,96 @@ export const TextHoverEffect = ({
|
|||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
onMouseEnter={() => setHovered(true)}
|
onMouseEnter={() => setHovered(true)}
|
||||||
onMouseLeave={() => setHovered(false)}
|
onMouseLeave={() => setHovered(false)}
|
||||||
className="select-none"
|
onMouseMove={(e) => setCursor({ x: e.clientX, y: e.clientY })}
|
||||||
|
className="select-none"
|
||||||
>
|
>
|
||||||
<defs>
|
<defs>
|
||||||
{/* ✅ Softer cyan gradient */}
|
<linearGradient
|
||||||
<linearGradient id="textGradient" gradientUnits="userSpaceOnUse">
|
id="textGradient"
|
||||||
{hovered ? (
|
gradientUnits="userSpaceOnUse"
|
||||||
|
cx="50%"
|
||||||
|
cy="50%"
|
||||||
|
r="25%"
|
||||||
|
>
|
||||||
|
{hovered && (
|
||||||
<>
|
<>
|
||||||
<stop offset="0%" stopColor="#7df3ff" />
|
<stop offset="0%" stopColor="#eab308" />
|
||||||
<stop offset="40%" stopColor="#4adffa" />
|
<stop offset="25%" stopColor="#ef4444" />
|
||||||
<stop offset="70%" stopColor="#18c5e8" />
|
<stop offset="50%" stopColor="#3b82f6" />
|
||||||
<stop offset="100%" stopColor="#0aaecb" />
|
<stop offset="75%" stopColor="#06b6d4" />
|
||||||
</>
|
<stop offset="100%" stopColor="#8b5cf6" />
|
||||||
) : (
|
|
||||||
<>
|
|
||||||
<stop offset="0%" stopColor="#7df3ff33" />
|
|
||||||
<stop offset="100%" stopColor="#0aaecb33" />
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
|
|
||||||
{/* ✅ Mask with autoplay motion */}
|
|
||||||
<motion.radialGradient
|
<motion.radialGradient
|
||||||
id="revealMask"
|
id="revealMask"
|
||||||
gradientUnits="userSpaceOnUse"
|
gradientUnits="userSpaceOnUse"
|
||||||
r="45%"
|
r="20%"
|
||||||
animate={controls}
|
|
||||||
initial={{ cx: "50%", cy: "50%" }}
|
initial={{ cx: "50%", cy: "50%" }}
|
||||||
|
animate={maskPosition}
|
||||||
|
transition={{ duration: duration ?? 0, ease: "easeOut" }}
|
||||||
|
|
||||||
|
// example for a smoother animation below
|
||||||
|
|
||||||
|
// transition={{
|
||||||
|
// type: "spring",
|
||||||
|
// stiffness: 300,
|
||||||
|
// damping: 50,
|
||||||
|
// }}
|
||||||
>
|
>
|
||||||
<stop offset="0%" stopColor="white" />
|
<stop offset="0%" stopColor="white" />
|
||||||
<stop offset="100%" stopColor="black" />
|
<stop offset="100%" stopColor="black" />
|
||||||
</motion.radialGradient>
|
</motion.radialGradient>
|
||||||
|
|
||||||
{/* ✅ Glow */}
|
|
||||||
<filter id="glow">
|
|
||||||
<feGaussianBlur stdDeviation="3.2" result="blur" />
|
|
||||||
<feMerge>
|
|
||||||
<feMergeNode in="blur" />
|
|
||||||
<feMergeNode in="SourceGraphic" />
|
|
||||||
</feMerge>
|
|
||||||
</filter>
|
|
||||||
|
|
||||||
<mask id="textMask">
|
<mask id="textMask">
|
||||||
<rect x="0" y="0" width="100%" height="100%" fill="url(#revealMask)" />
|
<rect
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
width="100%"
|
||||||
|
height="100%"
|
||||||
|
fill="url(#revealMask)"
|
||||||
|
/>
|
||||||
</mask>
|
</mask>
|
||||||
</defs>
|
</defs>
|
||||||
|
|
||||||
{/* ✅ Background faint stroke */}
|
|
||||||
<text
|
<text
|
||||||
x="50%"
|
x="50%"
|
||||||
y="50%"
|
y="50%"
|
||||||
textAnchor="middle"
|
textAnchor="middle"
|
||||||
dominantBaseline="middle"
|
dominantBaseline="middle"
|
||||||
strokeWidth="0.15"
|
strokeWidth="0.3"
|
||||||
className="fill-transparent stroke-neutral-300 dark:stroke-neutral-800 font-[helvetica] text-7xl font-bold"
|
className="fill-transparent stroke-neutral-200 font-[helvetica] text-7xl font-bold dark:stroke-neutral-800"
|
||||||
style={{ opacity: hovered ? 0.25 : 0.1 }}
|
style={{ opacity: hovered ? 0.7 : 0 }}
|
||||||
>
|
>
|
||||||
{text}
|
{text}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
{/* ✅ Line drawing animation always plays too */}
|
|
||||||
<motion.text
|
<motion.text
|
||||||
x="50%"
|
x="50%"
|
||||||
y="50%"
|
y="50%"
|
||||||
textAnchor="middle"
|
textAnchor="middle"
|
||||||
dominantBaseline="middle"
|
dominantBaseline="middle"
|
||||||
strokeWidth="0.25"
|
strokeWidth="0.3"
|
||||||
className="fill-transparent stroke-cyan-300 font-[helvetica] text-7xl font-bold"
|
className="fill-transparent stroke-neutral-200 font-[helvetica] text-7xl font-bold dark:stroke-neutral-800"
|
||||||
initial={{ strokeDashoffset: 600, strokeDasharray: 600 }}
|
initial={{ strokeDashoffset: 1000, strokeDasharray: 1000 }}
|
||||||
animate={{
|
animate={{
|
||||||
strokeDashoffset: 0,
|
strokeDashoffset: 0,
|
||||||
strokeDasharray: 600,
|
strokeDasharray: 1000,
|
||||||
}}
|
}}
|
||||||
transition={{
|
transition={{
|
||||||
duration: 2.2,
|
duration: 4,
|
||||||
ease: "easeInOut",
|
ease: "easeInOut",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{text}
|
{text}
|
||||||
</motion.text>
|
</motion.text>
|
||||||
|
|
||||||
{/* ✅ Final filled glowing cyan text (mask reveals it) */}
|
|
||||||
<text
|
<text
|
||||||
x="50%"
|
x="50%"
|
||||||
y="50%"
|
y="50%"
|
||||||
textAnchor="middle"
|
textAnchor="middle"
|
||||||
dominantBaseline="middle"
|
dominantBaseline="middle"
|
||||||
stroke="url(#textGradient)"
|
stroke="url(#textGradient)"
|
||||||
strokeWidth="1.1"
|
strokeWidth="0.3"
|
||||||
mask="url(#textMask)"
|
mask="url(#textMask)"
|
||||||
filter="url(#glow)"
|
className="fill-transparent font-[helvetica] text-7xl font-bold"
|
||||||
className="font-[helvetica] text-7xl font-bold fill-[url(#textGradient)]"
|
|
||||||
>
|
>
|
||||||
{text}
|
{text}
|
||||||
</text>
|
</text>
|
||||||
|
|||||||
139
src/components/ui/text-hover-effects.tsx
Normal file
139
src/components/ui/text-hover-effects.tsx
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
"use client";
|
||||||
|
import { useRef, useEffect, useState } from "react";
|
||||||
|
import { motion, useAnimation } from "motion/react";
|
||||||
|
|
||||||
|
export const TextHoverEffects = ({
|
||||||
|
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>
|
||||||
|
);
|
||||||
|
};
|
||||||
181
src/images/logos/HeaderDark.tsx
Normal file
181
src/images/logos/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/logowhite.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>
|
||||||
|
)
|
||||||
|
}
|
||||||
BIN
src/images/logos/logowhite.png
Normal file
BIN
src/images/logos/logowhite.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
53
src/pages/home/HomeBlinkDark.tsx
Normal file
53
src/pages/home/HomeBlinkDark.tsx
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { Button } from "@/components/Button";
|
||||||
|
import { Spotlight } from "@/components/ui/spotlight";
|
||||||
|
import { H4, H5 } from "@/components/Texts";
|
||||||
|
import { HomeHeadline } from "@/components/HomeHeadline";
|
||||||
|
|
||||||
|
export function HomeBlinkDark({ onGetStartedClick }: { onGetStartedClick: () => void }) {
|
||||||
|
return (
|
||||||
|
<div className="">
|
||||||
|
<div className="relative mx-auto max-w-8xl bg-[#111111] overflow-hidden py-24 lg:py-32 border border-t-0 border-l-0 border-r-0 border-b 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-720 -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.2"
|
||||||
|
/>
|
||||||
|
<defs>
|
||||||
|
<radialGradient id="mycelium-cyan-glow">
|
||||||
|
<stop stopColor="#00e5ff" />
|
||||||
|
<stop offset="1" stopColor="transparent" />
|
||||||
|
</radialGradient>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
|
||||||
|
<div className="relative z-10 mx-auto w-full max-w-8xl md:pt-0">
|
||||||
|
<HomeHeadline />
|
||||||
|
<H4 className="text-center max-w-3xl mx-auto text-white mt-12">Private, distributed infrastructure built for digital sovereignty</H4>
|
||||||
|
<H5 className="mx-auto mt-6 max-w-4xl text-center font-normal text-gray-200">
|
||||||
|
Build and deploy private, peer-to-peer systems with full control of your data, infrastructure, and intelligence.
|
||||||
|
</H5>
|
||||||
|
|
||||||
|
<div className="mt-8 flex justify-center gap-6">
|
||||||
|
<Button variant="solid" color="cyan" onClick={onGetStartedClick}>
|
||||||
|
Enter the Network
|
||||||
|
</Button>
|
||||||
|
<Button variant="outline" color="gray" onClick={onGetStartedClick}>
|
||||||
|
Explore Docs
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -13,11 +13,14 @@ export function HomeMap() {
|
|||||||
<Eyebrow>Mycelium Nodes</Eyebrow>
|
<Eyebrow>Mycelium Nodes</Eyebrow>
|
||||||
<H3 className="text-white">Host a Node, Grow the Network</H3>
|
<H3 className="text-white">Host a Node, Grow the Network</H3>
|
||||||
<P className="text-sm md:text-lg text-gray-200 max-w-3xl mx-auto py-4">
|
<P className="text-sm md:text-lg text-gray-200 max-w-3xl mx-auto py-4">
|
||||||
Mycelium runs on real nodes — hosted by people, communities, and enterprises across the world.
|
Mycelium runs on real nodes operated by individuals, communities,
|
||||||
Each one adds capacity, resilience, and sovereignty to the network — and earns rewards in return.
|
and organizations around the world. Each node provides compute, storage, and bandwidth to
|
||||||
|
expand the network’s capacity and resilience.
|
||||||
|
|
||||||
</P>
|
</P>
|
||||||
<p className="text-sm md:text-base text-gray-200 max-w-3xl mx-auto py-4">
|
<p className="text-sm italic md:text-base text-gray-200 max-w-3xl mx-auto py-4">
|
||||||
Plug in once. It runs 24/7 — powering the network and earning autonomously.
|
Set it up once. It runs continuously, powering the network and rewarding your contribution.
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -5,11 +5,12 @@ import { CallToAction } from './CallToAction'
|
|||||||
import { HomeTab } from './HomeTab'
|
import { HomeTab } from './HomeTab'
|
||||||
import { HomeMap } from './HomeMap'
|
import { HomeMap } from './HomeMap'
|
||||||
import { HomeAudience } from './HomeAudience'
|
import { HomeAudience } from './HomeAudience'
|
||||||
import { HomeBlink } from './HomeBlink'
|
import { HomeBlinkDark } from './HomeBlinkDark'
|
||||||
import { HomeArchitecture } from './HomeArchitecture';
|
import { HomeArchitecture } from './HomeArchitecture';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default function HomePage() {
|
export default function HomePage() {
|
||||||
const sliderRef = useRef<HTMLDivElement>(null)
|
const sliderRef = useRef<HTMLDivElement>(null)
|
||||||
|
|
||||||
@@ -18,12 +19,9 @@ export default function HomePage() {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<AnimatedSection>
|
|
||||||
<HomeBlink onGetStartedClick={handleScrollToSlider} />
|
|
||||||
</AnimatedSection>
|
|
||||||
|
|
||||||
<AnimatedSection>
|
<AnimatedSection>
|
||||||
<HomeArchitecture/>
|
<HomeBlinkDark onGetStartedClick={handleScrollToSlider} />
|
||||||
</AnimatedSection>
|
</AnimatedSection>
|
||||||
|
|
||||||
<AnimatedSection>
|
<AnimatedSection>
|
||||||
|
|||||||
@@ -49,32 +49,8 @@ const bentoCards = [
|
|||||||
link: '/compute',
|
link: '/compute',
|
||||||
colSpan: 'lg:col-span-2',
|
colSpan: 'lg:col-span-2',
|
||||||
rowSpan: 'lg:row-span-1',
|
rowSpan: 'lg:row-span-1',
|
||||||
rounded: 'lg:rounded-bl-4xl',
|
rounded: 'lg:rounded-bl-4xl max-lg:rounded-b-4xl',
|
||||||
innerRounded: 'lg:rounded-bl-[calc(2rem+1px)]'
|
innerRounded: 'lg:rounded-bl-[calc(2rem+1px)] max-lg:rounded-b-[calc(2rem+1px)]'
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'storage',
|
|
||||||
title: 'Mycelium Storage',
|
|
||||||
eyebrow: 'Storage',
|
|
||||||
description: 'The Storage resource layers powering the stack.',
|
|
||||||
image: '/images/bento-storage.png',
|
|
||||||
link: '/storage',
|
|
||||||
colSpan: 'lg:col-span-2',
|
|
||||||
rowSpan: 'lg:row-span-1',
|
|
||||||
rounded: 'rounded-lg',
|
|
||||||
innerRounded: 'rounded-[calc(var(--radius-lg)+1px)]'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'gpu',
|
|
||||||
title: 'Mycelium GPU',
|
|
||||||
eyebrow: 'GPU',
|
|
||||||
description: 'The GPU resource layers powering the stack.',
|
|
||||||
image: '/images/bento-gpu.jpg',
|
|
||||||
link: '/gpu',
|
|
||||||
colSpan: 'lg:col-span-2',
|
|
||||||
rowSpan: 'lg:row-span-1',
|
|
||||||
rounded: 'lg:rounded-br-4xl max-lg:rounded-b-4xl',
|
|
||||||
innerRounded: 'lg:rounded-br-[calc(2rem+1px)] max-lg:rounded-b-[calc(2rem+1px)]'
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -86,38 +62,112 @@ export function HomeTab() {
|
|||||||
<div className="max-w-7xl mx-auto py-6 border-x border-gray-100 bg-white border-t-0 border-b-0" />
|
<div className="max-w-7xl mx-auto py-6 border-x border-gray-100 bg-white border-t-0 border-b-0" />
|
||||||
<div className="w-full border-t border-l border-r border-gray-100" />
|
<div className="w-full border-t border-l border-r border-gray-100" />
|
||||||
|
|
||||||
|
|
||||||
{/* ✅ Section with vertical borders */}
|
{/* ✅ Section with vertical borders */}
|
||||||
<div className="mx-auto bg-white max-w-2xl px-6 lg:max-w-7xl lg:px-10 border border-t-0 border-b-0 border-gray-100">
|
<div className="mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8 py-12 text-center">
|
||||||
<Eyebrow className="pt-12 ">Components</Eyebrow>
|
<Eyebrow color="accent">Components</Eyebrow>
|
||||||
<H3 className="mt-2">Explore the Stack</H3>
|
<H3 className="mx-auto mt-2 max-w-xl text-center ">
|
||||||
<P className="mt-6 max-w-4xl">
|
Explore Mycelium Stack
|
||||||
Mycelium unifies everything the next generation internet needs — communication, cloud, and intelligence — into one seamless, privacy-first network anyone can join.
|
</H3>
|
||||||
From encrypted peer-to-peer communication to decentralized cloud and sovereign AI — everything runs on one seamless system.
|
<P className="mx-auto mt-4 max-w-3xl text-center ">
|
||||||
|
Mycelium’s technology stack gives you everything you need to build and run applications on a distributed network, from connectivity and compute to personal environments and AI.
|
||||||
</P>
|
</P>
|
||||||
|
<div className="mt-10 grid gap-4 sm:mt-16 lg:grid-cols-3 lg:grid-rows-2">
|
||||||
|
<div className="relative lg:row-span-2">
|
||||||
|
<div className="absolute inset-px rounded-lg bg-white lg:rounded-l-4xl" />
|
||||||
|
<div className="relative flex h-full flex-col overflow-hidden rounded-[calc(var(--radius-lg)+1px)] lg:rounded-l-[calc(2rem+1px)]">
|
||||||
|
<div className="px-8 pt-8 pb-3 sm:px-10 sm:pt-10 sm:pb-0">
|
||||||
|
<p className="mt-2 text-lg font-medium tracking-tight text-gray-950 max-lg:text-center">
|
||||||
|
Mycelium Network
|
||||||
|
</p>
|
||||||
|
<p className="mt-2 max-w-lg text-sm/6 text-gray-600 max-lg:text-center">
|
||||||
|
Peer-to-peer connectivity between users, nodes, and devices.
|
||||||
|
The foundation for secure communication and collaboration.
|
||||||
|
|
||||||
<div className="mt-8 grid grid-cols-1 gap-6 sm:mt-10 lg:grid-cols-6 lg:grid-rows-3 pb-12">
|
</p>
|
||||||
{bentoCards.map((card) => (
|
</div>
|
||||||
<Link to={card.link} key={card.id} className={`relative ${card.colSpan} ${card.rowSpan} transition-transform duration-300 hover:scale-102 cursor-pointer`}>
|
<div className="@container relative min-h-120 w-full grow max-lg:mx-auto max-lg:max-w-sm">
|
||||||
<div className={`absolute inset-0 rounded-md bg-white ${card.rounded}`} />
|
<div className="absolute inset-x-10 top-10 bottom-0 overflow-hidden rounded-t-[12cqw] border-x-[3cqw] border-t-[3cqw] border-gray-700 bg-gray-900 shadow-2xl">
|
||||||
<div className={`relative flex h-full flex-col overflow-hidden rounded-[calc(var(--radius-lg)+1px)] ${card.innerRounded}`}>
|
<img
|
||||||
<img
|
alt=""
|
||||||
alt={card.title}
|
src="https://tailwindcss.com/plus-assets/img/component-images/bento-03-mobile-friendly.png"
|
||||||
src={card.image}
|
className="size-full object-cover object-top"
|
||||||
className="h-50 object-cover object-center"
|
/>
|
||||||
/>
|
|
||||||
<div className="px-8 pt-4 pb-6">
|
|
||||||
<h3 className="text-sm/4 font-semibold text-cyan-500">{card.eyebrow}</h3>
|
|
||||||
<CT className="mt-2 text-lg lg:text-xl tracking-tight text-gray-950">{card.title}</CT>
|
|
||||||
<CP className="mt-1 max-w-lg text-gray-600">
|
|
||||||
{card.description}
|
|
||||||
</CP>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={`pointer-events-none absolute inset-0 rounded-lg shadow-sm outline outline-black/5 ${card.rounded}`} />
|
</div>
|
||||||
</Link>
|
<div className="pointer-events-none absolute inset-px rounded-lg shadow-sm outline outline-black/5 lg:rounded-l-4xl" />
|
||||||
))}
|
</div>
|
||||||
|
<div className="relative max-lg:row-start-1">
|
||||||
|
<div className="absolute inset-px rounded-lg bg-white max-lg:rounded-t-4xl" />
|
||||||
|
<div className="relative flex h-full flex-col overflow-hidden rounded-[calc(var(--radius-lg)+1px)] max-lg:rounded-t-[calc(2rem+1px)]">
|
||||||
|
<div className="px-8 pt-8 sm:px-10 sm:pt-10">
|
||||||
|
<p className="mt-2 text-lg font-medium tracking-tight text-gray-950 max-lg:text-center">Mycelium Cloud</p>
|
||||||
|
<p className="mt-2 max-w-lg text-sm/6 text-gray-600 max-lg:text-center">
|
||||||
|
Decentralized compute, storage, and orchestration.
|
||||||
|
Everything the cloud does, distributed across the network.
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div className="flex flex-1 items-center justify-center px-8 max-lg:pt-10 max-lg:pb-12 sm:px-10 lg:pb-2">
|
||||||
|
<img
|
||||||
|
alt=""
|
||||||
|
src="https://tailwindcss.com/plus-assets/img/component-images/bento-03-performance.png"
|
||||||
|
className="w-full max-lg:max-w-xs"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="pointer-events-none absolute inset-px rounded-lg shadow-sm outline outline-black/5 max-lg:rounded-t-4xl" />
|
||||||
|
</div>
|
||||||
|
<div className="relative max-lg:row-start-3 lg:col-start-2 lg:row-start-2">
|
||||||
|
<div className="absolute inset-px rounded-lg bg-white" />
|
||||||
|
<div className="relative flex h-full flex-col overflow-hidden rounded-[calc(var(--radius-lg)+1px)]">
|
||||||
|
<div className="px-8 pt-8 sm:px-10 sm:pt-10">
|
||||||
|
<p className="mt-2 text-lg font-medium tracking-tight text-gray-950 max-lg:text-center">Mycelium Agents</p>
|
||||||
|
<p className="mt-2 max-w-lg text-sm/6 text-gray-600 max-lg:text-center">
|
||||||
|
Intelligent agents that operate across the network, not in centralized data centers.
|
||||||
|
Train, deploy, and own your AI end-to-end.
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div className="@container flex flex-1 items-center max-lg:py-6 lg:pb-2">
|
||||||
|
<img
|
||||||
|
alt=""
|
||||||
|
src="https://tailwindcss.com/plus-assets/img/component-images/bento-03-security.png"
|
||||||
|
className="h-[min(152px,40cqw)] object-cover"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="pointer-events-none absolute inset-px rounded-lg shadow-sm outline outline-black/5" />
|
||||||
|
</div>
|
||||||
|
<div className="relative lg:row-span-2">
|
||||||
|
<div className="absolute inset-px rounded-lg bg-white max-lg:rounded-b-4xl lg:rounded-r-4xl" />
|
||||||
|
<div className="relative flex h-full flex-col overflow-hidden rounded-[calc(var(--radius-lg)+1px)] max-lg:rounded-b-[calc(2rem+1px)] lg:rounded-r-[calc(2rem+1px)]">
|
||||||
|
<div className="px-8 pt-8 pb-3 sm:px-10 sm:pt-10 sm:pb-0">
|
||||||
|
<p className="mt-2 text-lg font-medium tracking-tight text-gray-950 max-lg:text-center">
|
||||||
|
Mycelium Pods
|
||||||
|
</p>
|
||||||
|
<p className="mt-2 max-w-lg text-sm/6 text-gray-600 max-lg:text-center">
|
||||||
|
Personal digital environments that stay persistent and under your control.
|
||||||
|
Build, deploy, and connect on your own terms.
|
||||||
|
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div className="relative min-h-120 w-full grow">
|
||||||
|
<div className="absolute top-10 right-0 bottom-0 left-10 overflow-hidden rounded-tl-xl bg-gray-900 shadow-2xl outline outline-white/10">
|
||||||
|
<div className="flex bg-gray-900 outline outline-white/5">
|
||||||
|
<div className="-mb-px flex text-sm/6 font-medium text-gray-400">
|
||||||
|
<div className="border-r border-b border-r-white/10 border-b-white/20 bg-white/5 px-4 py-2 text-white">
|
||||||
|
NotificationSetting.jsx
|
||||||
|
</div>
|
||||||
|
<div className="border-r border-gray-600/10 px-4 py-2">App.jsx</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="px-6 pt-6 pb-14">{/* Your code example */}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="pointer-events-none absolute inset-px rounded-lg shadow-sm outline outline-black/5 max-lg:rounded-b-4xl lg:rounded-r-4xl" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
128
src/pages/home/HomeTabDark.tsx
Normal file
128
src/pages/home/HomeTabDark.tsx
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
import { CP, CT, Eyebrow, H3, P } from "@/components/Texts";
|
||||||
|
|
||||||
|
const bentoCards = [
|
||||||
|
{
|
||||||
|
id: 'network',
|
||||||
|
title: 'Mycelium Network',
|
||||||
|
eyebrow: 'Network',
|
||||||
|
description: 'Encrypted peer-to-peer mesh networking across the globe.',
|
||||||
|
image: '/images/bento-network.png',
|
||||||
|
link: '/network',
|
||||||
|
colSpan: 'lg:col-span-3',
|
||||||
|
rowSpan: 'lg:row-span-1',
|
||||||
|
rounded: 'lg:rounded-tl-4xl max-lg:rounded-t-4xl',
|
||||||
|
innerRounded: 'lg:rounded-tl-[calc(2rem+1px)] max-lg:rounded-t-[calc(2rem+1px)]'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'agents',
|
||||||
|
title: 'Mycelium Agents',
|
||||||
|
eyebrow: 'Agents',
|
||||||
|
description: 'Private, programmable AI systems that run on your hardware.',
|
||||||
|
image: '/images/bento-agent.jpg',
|
||||||
|
link: '/agents',
|
||||||
|
colSpan: 'lg:col-span-3',
|
||||||
|
rowSpan: 'lg:row-span-1',
|
||||||
|
rounded: 'lg:rounded-tr-4xl',
|
||||||
|
innerRounded: 'lg:rounded-tr-[calc(2rem+1px)]'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'cloud',
|
||||||
|
title: 'Mycelium Cloud',
|
||||||
|
eyebrow: 'Cloud',
|
||||||
|
description: 'Deploy Kubernetes clusters on sovereign infrastructure.',
|
||||||
|
image: '/images/bento-cloud.jpg',
|
||||||
|
link: '/cloud',
|
||||||
|
colSpan: 'lg:col-span-6',
|
||||||
|
rowSpan: 'lg:row-span-1',
|
||||||
|
rounded: 'rounded-lg',
|
||||||
|
innerRounded: 'rounded-[calc(var(--radius-lg)+1px)]'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'compute',
|
||||||
|
title: 'Mycelium Compute',
|
||||||
|
eyebrow: 'Compute',
|
||||||
|
description: 'The Compute resource layers powering the stack.',
|
||||||
|
image: '/images/bento-compute.png',
|
||||||
|
link: '/compute',
|
||||||
|
colSpan: 'lg:col-span-2',
|
||||||
|
rowSpan: 'lg:row-span-1',
|
||||||
|
rounded: 'lg:rounded-bl-4xl',
|
||||||
|
innerRounded: 'lg:rounded-bl-[calc(2rem+1px)]'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'storage',
|
||||||
|
title: 'Mycelium Storage',
|
||||||
|
eyebrow: 'Storage',
|
||||||
|
description: 'The Storage resource layers powering the stack.',
|
||||||
|
image: '/images/bento-storage.png',
|
||||||
|
link: '/storage',
|
||||||
|
colSpan: 'lg:col-span-2',
|
||||||
|
rowSpan: 'lg:row-span-1',
|
||||||
|
rounded: 'rounded-lg',
|
||||||
|
innerRounded: 'rounded-[calc(var(--radius-lg)+1px)]'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'gpu',
|
||||||
|
title: 'Mycelium GPU',
|
||||||
|
eyebrow: 'GPU',
|
||||||
|
description: 'The GPU resource layers powering the stack.',
|
||||||
|
image: '/images/bento-gpu.jpg',
|
||||||
|
link: '/gpu',
|
||||||
|
colSpan: 'lg:col-span-2',
|
||||||
|
rowSpan: 'lg:row-span-1',
|
||||||
|
rounded: 'lg:rounded-br-4xl max-lg:rounded-b-4xl',
|
||||||
|
innerRounded: 'lg:rounded-br-[calc(2rem+1px)] max-lg:rounded-b-[calc(2rem+1px)]'
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export function HomeTabDark() {
|
||||||
|
return (
|
||||||
|
<section className="w-full max-w-8xl mx-auto bg-[#111111]">
|
||||||
|
{/* ✅ Top horizontal line with spacing */}
|
||||||
|
<div className="max-w-7xl bg-[#111111] mx-auto border border-t-0 border-b-0 border-gray-800"></div>
|
||||||
|
<div className="w-full border-t border-l border-r border-gray-800" />
|
||||||
|
|
||||||
|
|
||||||
|
{/* ✅ Section with vertical borders */}
|
||||||
|
<div className="mx-auto bg-[#121212] max-w-2xl px-6 lg:max-w-7xl lg:px-10 border border-t-0 border-b-0 border-gray-800">
|
||||||
|
<Eyebrow className="pt-12 ">Components</Eyebrow>
|
||||||
|
<H3 className="mt-2 text-white">Explore the Stack</H3>
|
||||||
|
<P className="mt-6 max-w-4xl text-gray-200">
|
||||||
|
Mycelium unifies everything the next generation internet needs — communication, cloud, and intelligence — into one seamless, privacy-first network anyone can join.
|
||||||
|
From encrypted peer-to-peer communication to decentralized cloud and sovereign AI — everything runs on one seamless system.
|
||||||
|
|
||||||
|
</P>
|
||||||
|
|
||||||
|
<div className="mt-8 grid grid-cols-1 gap-6 sm:mt-10 lg:grid-cols-6 lg:grid-rows-3 pb-12 bg-[#121212]">
|
||||||
|
{bentoCards.map((card) => (
|
||||||
|
<Link to={card.link} key={card.id} className={`relative ${card.colSpan} ${card.rowSpan} transition-transform duration-300 hover:scale-102 cursor-pointer`}>
|
||||||
|
<div className={`absolute inset-0 rounded-md bg-[#121212] ${card.rounded}`} />
|
||||||
|
<div className={`relative flex h-full flex-col overflow-hidden rounded-[calc(var(--radius-lg)+1px)] ${card.innerRounded}`}>
|
||||||
|
<img
|
||||||
|
alt={card.title}
|
||||||
|
src={card.image}
|
||||||
|
className="h-50 object-cover object-center bg-[#121212]"
|
||||||
|
/>
|
||||||
|
<div className="px-8 pt-4 pb-6 bg-[#121212]">
|
||||||
|
<h3 className="text-sm/4 font-semibold text-cyan-500">{card.eyebrow}</h3>
|
||||||
|
<CT className="mt-2 text-lg text-white lg:text-xl tracking-tight">{card.title}</CT>
|
||||||
|
<CP className="mt-1 max-w-lg text-gray-200">
|
||||||
|
{card.description}
|
||||||
|
</CP>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className={`pointer-events-none absolute inset-0 rounded-lg shadow-sm outline outline-black/5 ${card.rounded}`} />
|
||||||
|
</Link>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* ✅ Bottom full-width line + spacer */}
|
||||||
|
<div className="w-full border-b border-gray-100" />
|
||||||
|
<div className="max-w-7xl mx-auto py-6 border-x border-gray-100 border-t-0 border-b-0" />
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user