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’suseParams hook to get the solution slug:
Static Content
types.ts:19-33
Page Structure
1. Hero Header
Full-width header with solution title and icon: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):pages/SolutionDetail.tsx:79-106
Sidebar (1/3 width):
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:pages/SolutionDetail.tsx:19-29
Routing & Navigation
URL Pattern
/soluciones/bolsas-termoencogibles/soluciones/absorbentes/soluciones/etiquetas
Navigation Implementation
- 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:pages/SolutionDetail.tsx:15-17
Components Used
GlassCard
SEO Component
Dynamic SEO based on solution:Icons
ArrowLeft- Back navigationCheck- Feature list itemsSend- CTA buttonsolution.icon- Dynamic icon from data
Responsive Design
Mobile (< 768px)
Mobile (< 768px)
- Single column layout
- Stacked content and sidebar
- Full-width images
- Reduced padding
Tablet (768px - 1024px)
Tablet (768px - 1024px)
- Two-column image grid (if multiple images)
- Sidebar below content
- Medium padding
Desktop (> 1024px)
Desktop (> 1024px)
- Three-column grid (2/3 content, 1/3 sidebar)
- Sticky sidebar at
top-24 - Full padding and spacing
- Image grid responsive to count
Image Gallery Logic
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
Related Pages
- Home Page - Links to first solution from hero CTA
- Contact Page - Quote request destination
- Blog Page - Related content and articles