From db2f82be140ebc04abf468b62a57f76368ae4f99 Mon Sep 17 00:00:00 2001 From: "huy.phan" Date: Wed, 7 Jan 2026 15:37:33 +0700 Subject: [PATCH 1/2] fix: dark mode color icon --- src/app/_components/GettingStartedCards.jsx | 16 ++++++ src/app/globals.css | 25 +++++++-- src/content/getting-started/index.mdx | 14 ++++- src/content/index.mdx | 60 ++++++++++++++------- 4 files changed, 89 insertions(+), 26 deletions(-) diff --git a/src/app/_components/GettingStartedCards.jsx b/src/app/_components/GettingStartedCards.jsx index ad90efc..d32b456 100644 --- a/src/app/_components/GettingStartedCards.jsx +++ b/src/app/_components/GettingStartedCards.jsx @@ -123,6 +123,7 @@ export function GettingStartedCards() { :global(.dark) .getting-started-card:hover { border-color: #6366f1; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } .getting-started-card-image { @@ -159,6 +160,12 @@ export function GettingStartedCards() { white-space: nowrap; } + :global(.dark) .getting-started-card-label { + background: #1f2937; + color: #818cf8; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); + } + .getting-started-card-content { display: flex; align-items: center; @@ -170,6 +177,7 @@ export function GettingStartedCards() { :global(.dark) .getting-started-card-content { border-top-color: #374151; + background-color: #111827; } .getting-started-card-icon { @@ -199,10 +207,18 @@ export function GettingStartedCards() { transition: transform 0.2s ease; } + :global(.dark) .getting-started-card-arrow { + color: #6b7280; + } + .getting-started-card:hover .getting-started-card-arrow { transform: translateX(4px); color: #4f46e5; } + + :global(.dark) .getting-started-card:hover .getting-started-card-arrow { + color: #818cf8; + } `} ); diff --git a/src/app/globals.css b/src/app/globals.css index beb9185..13983ec 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -11,7 +11,7 @@ /* Custom SpaceDF primary color #4006AA overrides */ .nextra-sidebar-container .nextra-sidebar ul li.active > a { - background-color: #4006AA !important; + background-color: #4006aa !important; color: white !important; } @@ -21,11 +21,17 @@ /* Override specific classes to use 80% lightness instead of 45% */ .nx-text-primary-600 { - color: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) 80% / var(--tw-text-opacity)) !important; + color: hsl( + var(--nextra-primary-hue) var(--nextra-primary-saturation) 80% / + var(--tw-text-opacity) + ) !important; } -html[class~=dark] .dark\:nx-text-primary-600 { - color: hsl(var(--nextra-primary-hue) var(--nextra-primary-saturation) 80% / var(--tw-text-opacity)) !important; +html[class~="dark"] .dark\:nx-text-primary-600 { + color: hsl( + var(--nextra-primary-hue) var(--nextra-primary-saturation) 80% / + var(--tw-text-opacity) + ) !important; } /* SpaceDF Logo Theme Styles */ @@ -35,4 +41,13 @@ html[class~=dark] .dark\:nx-text-primary-600 { .dark .spacedf-logo { filter: brightness(0) invert(1); -} \ No newline at end of file +} + +/* Training Icon Theme Styles */ +.svg-icon { + filter: brightness(0); +} + +.dark .svg-icon { + filter: brightness(0) invert(1); +} diff --git a/src/content/getting-started/index.mdx b/src/content/getting-started/index.mdx index 77de5f3..496ebd8 100644 --- a/src/content/getting-started/index.mdx +++ b/src/content/getting-started/index.mdx @@ -23,6 +23,7 @@ Ready to dive in? The getting started guides take you step-by-step through Space icon={ Cloud Platform @@ -34,6 +35,7 @@ Ready to dive in? The getting started guides take you step-by-step through Space icon={ Self-Hosted Installation @@ -50,6 +52,7 @@ Ready to dive in? The getting started guides take you step-by-step through Space icon={ Fleet Management System @@ -61,7 +64,8 @@ Ready to dive in? The getting started guides take you step-by-step through Space icon={ Smart Building Solution } @@ -72,6 +76,7 @@ Ready to dive in? The getting started guides take you step-by-step through Space icon={ Smart City Platform @@ -90,6 +95,7 @@ Choose from our growing ecosystem of supported devices and integration platforms icon={ IoT Devices @@ -101,6 +107,7 @@ Choose from our growing ecosystem of supported devices and integration platforms icon={ Platform Integrations @@ -134,6 +141,7 @@ Choose from our growing ecosystem of supported devices and integration platforms icon={ Complete Onboarding Guide @@ -150,6 +158,7 @@ Choose from our growing ecosystem of supported devices and integration platforms icon={ Multi-Protocol Support @@ -161,6 +170,7 @@ Choose from our growing ecosystem of supported devices and integration platforms icon={ Real-Time Tracking @@ -172,6 +182,7 @@ Choose from our growing ecosystem of supported devices and integration platforms icon={ Multi-Tenancy @@ -183,6 +194,7 @@ Choose from our growing ecosystem of supported devices and integration platforms icon={ Customizable Dashboards diff --git a/src/content/index.mdx b/src/content/index.mdx index ea89de3..6392719 100644 --- a/src/content/index.mdx +++ b/src/content/index.mdx @@ -12,7 +12,7 @@ Connect your devices using any of these protocols through our **Multi-Protocol A @@ -96,7 +97,7 @@ Connect your devices using any of these protocols through our **Multi-Protocol A @@ -131,10 +133,11 @@ SpaceDF integrates seamlessly with popular IoT platforms and network servers: @@ -145,7 +148,7 @@ SpaceDF integrates seamlessly with popular IoT platforms and network servers: @@ -220,10 +224,11 @@ SpaceDF integrates seamlessly with popular IoT platforms and network servers: @@ -234,10 +239,11 @@ SpaceDF integrates seamlessly with popular IoT platforms and network servers: @@ -248,10 +254,11 @@ SpaceDF integrates seamlessly with popular IoT platforms and network servers: @@ -269,10 +276,11 @@ Visualize and interact with your IoT data through powerful dashboard components @@ -283,10 +291,11 @@ Visualize and interact with your IoT data through powerful dashboard components @@ -297,10 +306,11 @@ Visualize and interact with your IoT data through powerful dashboard components @@ -315,6 +325,7 @@ Visualize and interact with your IoT data through powerful dashboard components icon={ Widgets @@ -329,6 +340,7 @@ Visualize and interact with your IoT data through powerful dashboard components icon={ Badges @@ -343,6 +355,7 @@ Visualize and interact with your IoT data through powerful dashboard components icon={ 2D/3D Views @@ -364,6 +377,7 @@ Organize and manage your IoT deployments with flexible multi-tenant architecture icon={ Multi-Tenant @@ -378,6 +392,7 @@ Organize and manage your IoT deployments with flexible multi-tenant architecture icon={ Multi-Spaces @@ -392,6 +407,7 @@ Organize and manage your IoT deployments with flexible multi-tenant architecture icon={ Group Your Assets @@ -434,6 +450,7 @@ Need help? We're here to support you: icon={ Community Forum @@ -449,6 +466,7 @@ Need help? We're here to support you: icon={ GitHub @@ -464,6 +482,7 @@ Need help? We're here to support you: icon={ Professional Support @@ -478,6 +497,7 @@ Need help? We're here to support you: href="/support" icon={ Training Date: Wed, 7 Jan 2026 08:38:59 +0000 Subject: [PATCH 2/2] Trigger Build