From 37db479f574823e61178775dd14831e57fa33414 Mon Sep 17 00:00:00 2001 From: vshnosngh Date: Tue, 3 Nov 2026 13:19:58 +0530 Subject: [PATCH] fix(ui): center and symmetrize commercial tools suite layout to eliminate right-alignment asymmetry --- .../sections/VerticalToolStackSection.tsx | 403 ++++++++---------- 1 file changed, 176 insertions(+), 227 deletions(-) diff --git a/src/components/sections/VerticalToolStackSection.tsx b/src/components/sections/VerticalToolStackSection.tsx index a3e8eb7..50f7011 100644 --- a/src/components/sections/VerticalToolStackSection.tsx +++ b/src/components/sections/VerticalToolStackSection.tsx @@ -59,16 +59,15 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) { id="studio-suite" className="py-24 sm:py-32 lg:py-36 relative bg-[#FAF8F5] border-t border-b border-slate-900/[0.07] overflow-hidden scroll-mt-20" > - {/* Anchor alias for tools-stack */} + {/* Anchor alias for backwards compatibility */}
{/* Subtle ambient light gradient */} -
-
+
- {/* Section Header: Spacious, Clean, Editorial */} -
+ {/* Section Header: Centered & Balanced */} +
THE CREATIVE STUDIO SUITE @@ -81,260 +80,210 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {

- {/* Mobile Category Quick Rail */} -
+ {/* Centered Symmetrical Category Filter Rail */} +
+ {categories.map((cat) => { const catTools = tools.filter((t) => t.category === cat.slug); const active = selectedCategory === cat.slug; + const Icon = ICON_MAP[cat.icon || 'Sparkles'] || Sparkles; + return ( ); })}
- {/* Main Grid: Sticky Category Rail (Desktop) + Spacious Vertical Stack */} -
- {/* Left Column: Sticky Category Selector Rail */} -
-
-
- Disciplines - {tools.length} Vision Tools -
+ {/* Centered Symmetrical Vertical Stack Container (No Lopsided Gutter) */} +
+ {filteredCategories.map((category) => { + const catTools = tools.filter((t) => t.category === category.slug); + if (catTools.length === 0) return null; + const Icon = ICON_MAP[category.icon || 'Sparkles'] || Sparkles; -
- - - {categories.map((cat) => { - const catTools = tools.filter((t) => t.category === cat.slug); - const active = selectedCategory === cat.slug; - const Icon = ICON_MAP[cat.icon || 'Sparkles'] || Sparkles; - - return ( - - ); - })} -
- - {/* Zero-Storage Guarantee Chip */} -
-
- - Zero-Storage Guaranteed -
-

- Images stream through memory buffers in volatile RAM and are never persisted to disk or utilized for training. -

-
-
- - {/* Mobile App Promotion Pill */} -
-
- - Batch Processing & Offline Mode -
-

- Need batch editing or offline neural execution? Use our iOS and Android native apps with promo code TRYWEB50. -

- - Explore Native Apps - - -
-
- - {/* Right Column: Spacious Vertical Stack of Tool Cards */} -
- {filteredCategories.map((category) => { - const catTools = tools.filter((t) => t.category === category.slug); - if (catTools.length === 0) return null; - const Icon = ICON_MAP[category.icon || 'Sparkles'] || Sparkles; - - return ( -
- {/* Category Header */} -
-
-
- -
-
-

- {resolveLocalised(category.name, locale)} -

-

- {resolveLocalised(category.description, locale)} -

-
+ return ( +
+ {/* Category Section Header */} +
+
+
+ +
+
+

+ {resolveLocalised(category.name, locale)} +

+

+ {resolveLocalised(category.description, locale)} +

- - {catTools.length} {catTools.length === 1 ? 'Tool' : 'Tools'} -
+ + {catTools.length} {catTools.length === 1 ? 'Production Tool' : 'Production Tools'} + +
- {/* Vertical Cards for This Category */} -
- {catTools.map((tool) => { - const badgeInfo = MODEL_BADGES[tool.id] || { - model: 'Neural Vision v2.0', - latency: '< 450ms', - chip: 'Commercial Precision', - }; - const example = tool.content?.examples?.[0] || { - before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80', - after: 'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80', - caption: 'Interactive Before/After Preview', - }; + {/* Symmetrical Tool Cards */} +
+ {catTools.map((tool) => { + const badgeInfo = MODEL_BADGES[tool.id] || { + model: 'Neural Vision v2.0', + latency: '< 450ms', + chip: 'Commercial Precision', + }; + const example = tool.content?.examples?.[0] || { + before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80', + after: 'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80', + caption: 'Interactive Before/After Preview', + }; - return ( -
- {/* Top Metadata Row */} -
-
- {/* Neural Model Tag */} - - - {badgeInfo.model} - - {/* Specific Capability Chip */} - - {badgeInfo.chip} - -
- - {/* Latency Metric */} -
- - {badgeInfo.latency} Stream -
+ return ( +
+ {/* Top Metadata Row */} +
+
+ {/* Neural Model Tag */} + + + {badgeInfo.model} + + {/* Specific Capability Chip */} + + {badgeInfo.chip} +
- {/* Card Content Grid: Details Left, Interactive Slider Right */} -
- {/* Left Details */} -
-

- {resolveLocalised(tool.name, locale)} -

-

- {resolveLocalised(tool.summary, locale)} -

- - {/* Features List */} -
-
- - Zero photo retention with volatile RAM streaming -
-
- - Full HD lossless output with no watermark -
-
- - Seamless mobile handoff with 50 bonus credits -
-
- - {/* Action Buttons */} -
- - Launch Tool Online - - - - - - Native App - -
-
- - {/* Right: Interactive Before/After Comparison Slider */} -
- -
+ {/* Latency Metric */} +
+ + {badgeInfo.latency} Stream
- ); - })} -
+ + {/* Card Content Grid: 2 Symmetric Columns */} +
+ {/* Left Details Column */} +
+

+ {resolveLocalised(tool.name, locale)} +

+

+ {resolveLocalised(tool.summary, locale)} +

+ + {/* Features Checklist */} +
+
+ + Zero photo retention with volatile RAM streaming +
+
+ + Full HD lossless output with no watermark +
+
+ + Seamless mobile handoff with 50 bonus credits +
+
+ + {/* Action Buttons */} +
+ + Launch Tool Online + + + + + + Native App + +
+
+ + {/* Right Interactive Before/After Comparison Slider */} +
+ +
+
+
+ ); + })}
- ); - })} +
+ ); + })} +
+ + {/* Centered Symmetrical Bottom Banner */} +
+
+
+ +
+
+

+ 100% In-Memory RAM Stream Guaranteed +

+

+ All photos are processed in volatile RAM buffers and destroyed immediately upon response delivery. +

+
+ + Need Offline or 4K Batch Mode? + +