Overview
The Siloé Perú website is built with a mobile-first responsive design approach, ensuring optimal viewing and interaction experience across all devices—from mobile phones to desktop computers.Mobile-First means base styles are written for mobile devices, then enhanced for larger screens using media queries. This approach ensures better performance on mobile devices and progressive enhancement for desktop users.
Responsive Strategy
The website uses three key responsive techniques:Flexible Grids
CSS Grid with
auto-fit and minmax() for automatic column adjustmentMedia Queries
Breakpoints at 768px and 480px for tablet and mobile
Flexible Units
rem, %, vh, and vw instead of fixed pixel valuesViewport Meta Tag
The responsive design starts with the viewport meta tag (index.html:6):index.html
- Page width matches device screen width
- Initial zoom level is 1:1
- Users can zoom in/out if needed
Breakpoints
The website uses two primary breakpoints:Desktop (Default)
Base styles assume desktop/tablet landscape (> 768px):- Multi-column grids
- Larger typography
- Generous spacing
- Full-width hero sections
Tablet & Mobile (≤ 768px)
style.css:1620-1663:style.css
Small Mobile (≤ 480px)
style.css:1598-1613:style.css
Flexible Grid Layouts
Auto-Fit Grid Pattern
The most powerful responsive pattern used throughout the site:style.css
Examples by Section
- Gallery Grid
- Activities Grid
- Values Grid
style.css (lines 1356-1362)
- Desktop (1400px): ~4-5 columns
- Tablet (768px): 2-3 columns
- Mobile (375px): 1 column
Typography Scaling
Desktop Typography (Default)
Mobile Typography (≤ 768px)
Typography scales down ~30-40% on mobile to ensure readability without overwhelming small screens.
Responsive Images
Flexible Image Sizing
All images use percentage-based sizing:Background Image Handling
Hero background images adapt to screen size:style.css (lines 127-141)
Responsive Navigation
Button Sizing
Navigation buttons scale appropriately:- Desktop
- Mobile (≤ 768px)
style.css (lines 43-56)
Button Layout
Buttons wrap naturally using flexbox:style.css (lines 32-40)
Responsive Forms
Forms adapt gracefully across screen sizes:Desktop Forms
style.css (lines 793-800)
Mobile Forms (≤ 768px)
style.css (lines 1645-1647)
Form Field Sizing
All form fields are 100% width for easy touch interaction:style.css (lines 361-370)
Touch-Friendly Design
Minimum Touch Target Size
All interactive elements meet the 44x44px minimum:Apple & Android Guidelines: Interactive elements should be at least 44x44 CSS pixels for easy thumb tapping.
Hover vs Touch States
The design uses hover states that also work on touch:Responsive Spacing
Spacing scales down on smaller screens:- Desktop
- Mobile
Large Gallery Items
Special handling for featured gallery items:style.css (lines 1375-1383)
This creates “hero” gallery items on desktop while maintaining a consistent single-column layout on mobile.
Testing Responsive Design
Browser DevTools
Select Device
Choose from presets:
- iPhone SE (375px)
- iPhone 12 Pro (390px)
- iPad (768px)
- iPad Pro (1024px)
Common Device Sizes
| Device | Width | Orientation |
|---|---|---|
| iPhone SE | 375px | Portrait |
| iPhone 12/13 | 390px | Portrait |
| iPhone 12 Pro Max | 428px | Portrait |
| iPad | 768px | Portrait |
| iPad | 1024px | Landscape |
| Desktop | 1920px | Landscape |
Real Device Testing
Performance on Mobile
Optimized Images
Consider these optimizations for mobile:CSS Performance
Minimize Reflows
Avoid animating layout properties (width, height, margin, padding). Prefer transforms.
Use will-change
For frequently animated elements:
Reduce Complexity
Simpler layouts paint faster on mobile devices
Lazy Load Images
Use
loading="lazy" for below-the-fold imagesAccessibility Considerations
Focus States
Ensure keyboard navigation works:Text Contrast
Verify text meets WCAG AA standards (4.5:1 contrast ratio):Zoom Support
Allow users to zoom:Best Practices
Mobile-First CSS
Write base styles for mobile, enhance for desktop
Touch Targets
Minimum 44x44px for all interactive elements
Flexible Units
Use rem, %, vh, vw instead of fixed px
Test Early
Test on real devices throughout development
Performance
Optimize images, minimize CSS, defer JavaScript
Progressive Enhancement
Ensure core functionality works without JavaScript
Next Steps
Setup Guide
Get your development environment ready
Styling Guide
Learn the CSS architecture
Image Customization
Optimize and customize images
Form Component
Understand form implementation