From e8307fd4bccfa7f85ab0935461a55a1b6f8bffb7 Mon Sep 17 00:00:00 2001 From: vshnosngh Date: Wed, 11 Nov 2026 12:50:49 +0530 Subject: [PATCH] feat(tool-page): clean up alternating tool description layout (remove cards, tags, badges, and metrics) --- .../tools/AlternatingFeaturesSection.tsx | 133 +++++------------- 1 file changed, 39 insertions(+), 94 deletions(-) diff --git a/src/components/tools/AlternatingFeaturesSection.tsx b/src/components/tools/AlternatingFeaturesSection.tsx index 4d37b73..f14d2e4 100644 --- a/src/components/tools/AlternatingFeaturesSection.tsx +++ b/src/components/tools/AlternatingFeaturesSection.tsx @@ -2,7 +2,6 @@ import React from 'react'; import { AlternatingFeature, resolveLocalised } from '@/types'; -import { Sparkles, CheckCircle2 } from 'lucide-react'; import { KineticText } from '@/components/magicui/kinetic-text'; interface AlternatingFeaturesSectionProps { @@ -23,124 +22,70 @@ export function AlternatingFeaturesSection({ if (!features || features.length === 0) return null; return ( -
-
+
+
+ {/* Section Heading */} -
-
- - Core Capabilities -
-

+
+

{sectionTitle}

-

+

{sectionSubtitle}

- {/* Alternating Feature Items: Left-Right Zig-Zag in Unified Studio Sheets */} -
+ {/* Alternating Feature Items: Image at Left - Text at Right, then Text at Left - Image at Right (No cards, pure editorial) */} +
{features.map((feature, idx) => { const isEven = idx % 2 === 0; const title = resolveLocalised(feature.title, locale); const desc = resolveLocalised(feature.description, locale); - const badge = feature.badge ? resolveLocalised(feature.badge, locale) : undefined; - const caption = feature.caption ? resolveLocalised(feature.caption, locale) : undefined; 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} -
- )} -
+ {/* Visual / Image Block */} +
+
+
+ {/* eslint-disable-next-line @next/next/no-img-element */} + {title}
+
- {/* Text Paragraph Block - Rich, informative, space-efficient */} -
-
-
- - Feature 0{idx + 1} - - {badge && ( - - {badge} - - )} -
+ {/* Text Paragraph Block: Clean Heading + Spacious Paragraph (No cards, no Feature labels, no pills) */} +
+

+ {title} +

-

- {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 -
-
-
+

+ {desc} +

); })}
+

);