Skip to main content

Solution Detail Page Component

The SolutionDetail page (pages/SolutionDetail.tsx) displays detailed information about individual products or services offered by VENCOL.

Purpose

This dynamic page component:
  • Displays comprehensive information about a specific solution
  • Showcases product features and benefits
  • Provides visual content through image galleries
  • Includes call-to-action for quotes and inquiries
  • Handles routing for different solutions via URL slugs

Data Sources

URL Parameters

The page uses React Router’s useParams hook to get the solution slug:

Static Content

Location: types.ts:19-33

Page Structure

1. Hero Header

Full-width header with solution title and icon:
Location: pages/SolutionDetail.tsx:40-71 Features:
  • Background image from solution data
  • Multiple overlay layers for depth
  • Icon display with brand styling
  • Back navigation button
  • Responsive text sizing

2. Content Section

Three-column grid layout with main content and sidebar: Main Content (2/3 width):
Location: pages/SolutionDetail.tsx:79-106 Sidebar (1/3 width):
Location: pages/SolutionDetail.tsx:108-137 Features:
  • Sticky sidebar for easy access
  • Feature list with checkmark icons
  • CTA section with link to contact
  • Glassmorphic styling

Error Handling

Handles invalid slugs gracefully:
Location: pages/SolutionDetail.tsx:19-29

Routing & Navigation

URL Pattern

Example URLs:
  • /soluciones/bolsas-termoencogibles
  • /soluciones/absorbentes
  • /soluciones/etiquetas
Navigation Elements:
  • Back to home: <Link to="/">Volver al Inicio</Link>
  • Contact CTA: <Link to="/contacto">Cotizar Ahora</Link>

Scroll Behavior

Scrolls to top when solution changes:
Location: pages/SolutionDetail.tsx:15-17

Components Used

GlassCard

SEO Component

Dynamic SEO based on solution:

Icons

  • ArrowLeft - Back navigation
  • Check - Feature list items
  • Send - CTA button
  • solution.icon - Dynamic icon from data

Responsive Design

  • Single column layout
  • Stacked content and sidebar
  • Full-width images
  • Reduced padding
  • Two-column image grid (if multiple images)
  • Sidebar below content
  • Medium padding
  • Three-column grid (2/3 content, 1/3 sidebar)
  • Sticky sidebar at top-24
  • Full padding and spacing
  • Image grid responsive to count
Adaptive grid based on image count:
  • Single image: Full width
  • Multiple images: 2-column grid on medium+ screens

Styling Patterns

Glassmorphism

Gradient Overlays

Hover Effects

Code Example