From 752668b38db85bd218115cbf8111c5525da9d66b Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Fri, 24 Oct 2025 15:50:12 +0200 Subject: [PATCH] feat: add cloud services dropdown menu in header - Replaced individual cloud service pages with CallToAction components for Compute, Storage and GPU - Added dropdown menu in header to consolidate cloud service navigation options - Removed redundant page components (Compute.tsx, Storage.tsx, Gpu.tsx) that shared identical layouts - Updated route components to use new CallToAction components - Added ChevronDownIcon to visually indicate dropdown functionality --- src/App.tsx | 12 +++---- src/components/Header.tsx | 22 ++++++++---- src/components/ui/Dropdown.tsx | 55 ++++++++++++++++++++++++++++++ src/pages/compute/CallToAction.tsx | 40 ++++++++++++++++++++++ src/pages/compute/Compute.tsx | 29 ---------------- src/pages/gpu/CallToAction.tsx | 40 ++++++++++++++++++++++ src/pages/gpu/Gpu.tsx | 29 ---------------- src/pages/storage/CallToAction.tsx | 40 ++++++++++++++++++++++ src/pages/storage/Storage.tsx | 29 ---------------- 9 files changed, 197 insertions(+), 99 deletions(-) create mode 100644 src/components/ui/Dropdown.tsx create mode 100644 src/pages/compute/CallToAction.tsx delete mode 100644 src/pages/compute/Compute.tsx create mode 100644 src/pages/gpu/CallToAction.tsx delete mode 100644 src/pages/gpu/Gpu.tsx create mode 100644 src/pages/storage/CallToAction.tsx delete mode 100644 src/pages/storage/Storage.tsx diff --git a/src/App.tsx b/src/App.tsx index 28bc1b1..3e78fe2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,9 +5,9 @@ import CloudPage from './pages/cloud/CloudPage' import NetworkPage from './pages/network/NetworkPage' import AgentsPage from './pages/agents/AgentsPage' import DownloadPage from './pages/download/DownloadPage' -import Compute from './pages/compute/Compute' -import Storage from './pages/storage/Storage' -import Gpu from './pages/gpu/Gpu' +import { CallToAction as ComputeCallToAction } from './pages/compute/CallToAction' +import { CallToAction as StorageCallToAction } from './pages/storage/CallToAction' +import { CallToAction as GpuCallToAction } from './pages/gpu/CallToAction' function App() { return ( @@ -19,9 +19,9 @@ function App() { } /> } /> } /> - } /> - } /> - } /> + } /> + } /> + } /> diff --git a/src/components/Header.tsx b/src/components/Header.tsx index f680bad..f8a0260 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,4 +1,6 @@ import { Link } 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/pmyceliumlogo.png' @@ -13,12 +15,20 @@ export function Header() { Mycelium
- - Cloud - + + Cloud +