From 3c7abd5a01b375698d5ecc348f4fbf46b6ec73d9 Mon Sep 17 00:00:00 2001 From: zaragoza444 Date: Sun, 28 Jun 2026 18:42:12 -0700 Subject: [PATCH] fix: replace near-black NASA dashboard void with mission blue panels Co-authored-by: Cursor --- .../components/layout/OmnlProductLayout.tsx | 180 ++++++++++++------ .../src/features/trade/BinanceTradePanel.tsx | 12 +- frontend-dapp/src/styles/nasa-dashboard.css | 58 ++++-- 3 files changed, 166 insertions(+), 84 deletions(-) diff --git a/frontend-dapp/src/components/layout/OmnlProductLayout.tsx b/frontend-dapp/src/components/layout/OmnlProductLayout.tsx index e37d7eb..769c383 100644 --- a/frontend-dapp/src/components/layout/OmnlProductLayout.tsx +++ b/frontend-dapp/src/components/layout/OmnlProductLayout.tsx @@ -1,60 +1,120 @@ -import { Link, Outlet, useLocation } from 'react-router-dom'; -import { useRef } from 'react'; -import WalletConnect from '../wallet/WalletConnect'; -import WalletDisconnectNotice from '../wallet/WalletDisconnectNotice'; -import NasaIcon, { type NasaIconName } from '../icons/NasaIcon'; - -const PRODUCTS: { path: string; label: string; icon: NasaIconName }[] = [ - { path: '/central-bank', label: 'Central Bank', icon: 'central-bank' }, - { path: '/office-24', label: 'Office 24', icon: 'office' }, - { path: '/trade', label: 'DBIS Trade', icon: 'trade' }, - { path: '/swap', label: 'Digital Swap', icon: 'swap' }, -]; - -export default function OmnlProductLayout() { - const location = useLocation(); - const userInitiatedDisconnectRef = useRef(false); - - const isActive = (path: string) => location.pathname.startsWith(path); - - return ( -
- -
-
- - - - - OMNL Mission Control - - - - - - - Bridge - - { userInitiatedDisconnectRef.current = true; }} /> -
-
-
- -
-
- ); -} +import { Link, Outlet, useLocation } from 'react-router-dom'; + +import { useRef } from 'react'; + +import WalletConnect from '../wallet/WalletConnect'; + +import WalletDisconnectNotice from '../wallet/WalletDisconnectNotice'; + +import NasaIcon, { type NasaIconName } from '../icons/NasaIcon'; + + + +const PRODUCTS: { path: string; label: string; icon: NasaIconName }[] = [ + + { path: '/central-bank', label: 'Central Bank', icon: 'central-bank' }, + + { path: '/office-24', label: 'Office 24', icon: 'office' }, + + { path: '/trade', label: 'DBIS Trade', icon: 'trade' }, + + { path: '/swap', label: 'Digital Swap', icon: 'swap' }, + +]; + + + +export default function OmnlProductLayout() { + + const location = useLocation(); + + const userInitiatedDisconnectRef = useRef(false); + + + + const isActive = (path: string) => location.pathname.startsWith(path); + + + + return ( + +
+ + + +
+ +
+ + + + + + + + + + OMNL Mission Control + + + + + + + + + + + + + + Bridge + + + + { userInitiatedDisconnectRef.current = true; }} /> + +
+ +
+ +
+ + + +
+ +
+ + ); + +} + diff --git a/frontend-dapp/src/features/trade/BinanceTradePanel.tsx b/frontend-dapp/src/features/trade/BinanceTradePanel.tsx index 7dbaf44..090b5c1 100644 --- a/frontend-dapp/src/features/trade/BinanceTradePanel.tsx +++ b/frontend-dapp/src/features/trade/BinanceTradePanel.tsx @@ -169,8 +169,8 @@ export default function BinanceTradePanel() {
-
-
+
+
{Array.from({ length: 24 }, (_, i) => (

Live chart ยท connect WebSocket feed for production

-
+

Order book

-
+

Recent trades

{((swap.monitor as { swaps?: { status: string; amountIn: string; createdAt: string }[] })?.swaps ?? []) @@ -207,8 +207,8 @@ export default function BinanceTradePanel() { {/* Trade panel */} -