Overview
The Usos (Uses) component displays a list of occasions and contexts where Velaria candles are ideal. It uses icon-driven design to visually communicate each use case, making it easy for customers to envision how the candles fit into their lives.Component code
src/components/Usos.astro
Use cases listed
1. Celebrations
Icon: Cake (Tabler icon) Text: “Bodas, bautizos y cumpleaños” (Weddings, baptisms, and birthdays) Highlights Velaria candles as perfect for major life celebrations and milestone events.2. Gifts
Icon: Gift box (Tabler icon) Text: “Regalos” (Gifts) Positions candles as thoughtful, elegant gift options for any recipient.3. Special holidays
Icon: Christmas tree (Tabler icon) Text: “Fechas especiales como San Valentín o Navidad” (Special dates like Valentine’s Day or Christmas) Emphasizes seasonal and romantic occasions where candles create ambiance.4. Home and relaxation
Icon: Home (Tabler icon) Text: “Para tu hogar y esos momentos de relajación” (For your home and those moments of relaxation) Frames candles as self-care products for everyday use and stress relief.Styling
Layout
- Centered flex container
- Width: 80% on mobile, 50% on large screens
- Padding: 10 units
- Bottom margin: 5 units
Typography
- Size:
text-3xl - Alignment:
text-center - Bottom margin:
mb-10
List items
Each list item uses a custom styled format defined in the component’s<style> section:
- Display: Flexbox row
- Icon-text gap: 10px
- Item spacing: 1rem bottom margin
- Font size: 18px
- Icon color:
#7b3306(brown)
Icons
The component uses inline SVG icons from the Tabler Icons library:- Cake - Celebrations and events
- Gift - Presents and gifting occasions
- Christmas tree - Holidays and special dates
- Home - Personal use and relaxation
- Width and height: 24px
- Stroke width: 2
- Stroke linecap: round
- Stroke linejoin: round
- Color:
#7b3306(brown)
Usage
The Usos component is placed on the homepage after the product catalog and fragrances sections:src/pages/index.astro
Design pattern
This component follows a common UX pattern of context-of-use marketing, helping potential customers:- Visualize specific scenarios where they’d use the product
- Identify purchase occasions (gifts, events, self-care)
- Connect emotionally with relevant life moments
The icon-driven list format makes the content scannable and memorable, which is crucial for conversion-focused sections.
Customization
To add more use cases:- Add a new
<li>element to the list - Include an appropriate Tabler icon SVG
- Write the use case text in Spanish
- The custom CSS styling will automatically apply
