Overview
The Intro component displays a centered introduction message that communicates Velaria’s core value proposition: transforming spaces with handcrafted, personalized aromatic candles.Component code
src/components/Intro.astro
Content
Heading
“Velas que transforman tu espacio” (Candles that transform your space) - This tagline immediately communicates the transformative quality of Velaria’s products.Body copy
The paragraph explains Velaria’s attention to detail, handcrafted process, and customization options. It highlights three use cases:- Special gifts
- Unforgettable events
- Personal enjoyment and self-care
Styling
- Flexbox centering for both vertical and horizontal alignment
- Width: 80% on mobile, 50% on large screens
- Padding: 10 units (p-10)
- Margins: 5 units top and bottom
- Heading:
text-2xlwith 5-unit bottom margin - Body:
text-lgwith center alignment - Brand name:
text-amber-600for emphasis
Usage
The Intro component is used on the homepage immediately after the Header to introduce visitors to Velaria’s mission:src/pages/index.astro
Design considerations
Responsive width
The content width adjusts from 80% on mobile to 50% on large screens, ensuring readability across devices.Text hierarchy
The heading usestext-2xl to establish importance, while the body text uses text-lg for comfortable reading.
Brand emphasis
The Velaria name is highlighted in amber (text-amber-600) to draw attention and maintain brand consistency.
Customization
To update the messaging:- Edit the heading text to match your current tagline
- Update the paragraph content to reflect your brand story
- Adjust the amber highlight color if needed:
text-amber-600
Keep the intro text concise (2-4 sentences) to maintain visitor attention and encourage them to scroll further.
