From bfaaa90f179b5b4b2994cc2d35ab858c789825e9 Mon Sep 17 00:00:00 2001 From: vshnosngh Date: Wed, 11 Nov 2026 12:41:09 +0530 Subject: [PATCH] fix(tool-page): eliminate excessive whitespace and optimize layout density --- .../tools/AlternatingFeaturesSection.tsx | 171 +++++++++--------- src/components/tools/DynamicToolWorkspace.tsx | 135 +++++++------- 2 files changed, 159 insertions(+), 147 deletions(-) diff --git a/src/components/tools/AlternatingFeaturesSection.tsx b/src/components/tools/AlternatingFeaturesSection.tsx index 08b27cc..6172077 100644 --- a/src/components/tools/AlternatingFeaturesSection.tsx +++ b/src/components/tools/AlternatingFeaturesSection.tsx @@ -23,24 +23,24 @@ export function AlternatingFeaturesSection({ if (!features || features.length === 0) return null; return ( -
-
+
+
{/* Section Heading */} -
-
+
+
Core Capabilities
-

+

{sectionTitle}

-

+

{sectionSubtitle}

- {/* Alternating Feature Items: Left-Right Zig-Zag */} -
+ {/* Alternating Feature Items: Left-Right Zig-Zag in Unified Studio Sheets */} +
{features.map((feature, idx) => { const isEven = idx % 2 === 0; const title = resolveLocalised(feature.title, locale); @@ -51,83 +51,90 @@ export function AlternatingFeaturesSection({ return (
- {/* Visual / Image Block */} -
-
- {/* Aspect Frame */} -
- {/* eslint-disable-next-line @next/next/no-img-element */} - {title} - - {/* Badge Overlay */} - {badge && ( -
- {badge} -
- )} - - {/* Optional Caption Overlay */} - {caption && ( -
- {caption} -
- )} -
-
-
- - {/* Text Paragraph Block */} -
-
- - Feature 0{idx + 1} - -

- {title} -

-
- -

- {desc} -

- - {/* Optional Metrics Chips */} - {feature.metrics && feature.metrics.length > 0 && ( -
- {feature.metrics.map((metric, mIdx) => ( -
-
- {metric.value} +
+ {/* Visual / Image Block */} +
+
+ {/* Aspect Frame */} +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + {title} + + {/* Badge Overlay */} + {badge && ( +
+ {badge}
-
{metric.label}
-
- ))} -
- )} + )} - {/* Quality Assurance Highlight */} -
- - Processed locally in volatile GPU RAM · Zero server retention + {/* Optional Caption Overlay */} + {caption && ( +
+ {caption} +
+ )} +
+
+
+ + {/* Text Paragraph Block - Rich, informative, space-efficient */} +
+
+
+ + Feature 0{idx + 1} + + {badge && ( + + {badge} + + )} +
+ +

+ {title} +

+ +

+ {desc} +

+
+ + {/* Specifications & Hardware Highlights (Fills the column cleanly) */} +
+ {feature.metrics && feature.metrics.length > 0 ? ( + feature.metrics.map((metric, mIdx) => ( +
+ {metric.label}: + {metric.value} +
+ )) + ) : null} + +
+ + Volatile GPU RAM execution · Zero retention +
+
diff --git a/src/components/tools/DynamicToolWorkspace.tsx b/src/components/tools/DynamicToolWorkspace.tsx index 8f02d0a..8a8046c 100644 --- a/src/components/tools/DynamicToolWorkspace.tsx +++ b/src/components/tools/DynamicToolWorkspace.tsx @@ -358,18 +358,18 @@ export function DynamicToolWorkspace({
{/* Studio Workspace Canvas */} -
+
{/* Error Banner */} {errorMessage && ( -
+
{errorMessage}
)} {/* Archetype Studio Layout */} -
+
{/* POST-EDIT RESULT COMPARISON VIEW (If inference succeeded) */} {status === 'success' && resultUrl ? ( @@ -716,62 +716,67 @@ export function DynamicToolWorkspace({
{/* ================= HERO SECTION ================= */} -
+
{/* Ambient Radial Spotlight */}