Documentation Index
Fetch the complete documentation index at: https://mintlify.com/DavidEspinozaRomero/Proyecto-de-vivienda-social-renacer/llms.txt
Use this file to discover all available pages before exploring further.
Button Components
Proyecto Renacer includes two button components for different UI contexts: the standardButton.astro for primary actions and ButtonTransparent.astro for overlay contexts.
Button.astro
The main button component with multiple style variants and configurable border radius.Props
The button style variant. Available options:
primary- Primary brand color (default)secondary- Secondary brand colordark- Dark slate backgroundlight- White background with primary borderwhatsapp- Emerald green for WhatsAppfacebook- White with primary border for Facebook
URL destination for the button. Wraps the button in an anchor tag.
Border radius style. Options:
plain- Minimal roundinglg- Large rounded corners (default)full- Very rounded cornerspill- Full pill shape
Usage Examples
Primary action button (from index.astro:37-40)Styling Details
The Button component includes built-in interactions:- Hover scale effect (
hover:scale-105) - Smooth transitions
- Consistent padding (
px-8 py-4) - Bold text at
text-lgsize - Flexbox layout for icon alignment
/workspace/source/src/components/Button.astro:1-34
ButtonTransparent.astro
A glassmorphic button designed for use on hero sections or image overlays.Props
URL destination for the button.
Features
- Semi-transparent white background (
bg-white/10) - Backdrop blur effect for glassmorphism
- White border with transparency
- White text color for contrast on dark backgrounds
- Hover state with increased opacity
Usage Example
Styling Details
/workspace/source/src/components/ButtonTransparent.astro:1-16
Best Practices
-
Use the right variant: Choose
typebased on visual hierarchy:primaryfor main CTAslightfor secondary actionswhatsapporfacebookfor social integrationsdarkfor emphasis on light backgrounds
-
Include icons thoughtfully: Material Symbols icons work well when placed inside button content:
-
Consider context: Use
ButtonTransparentonly on dark backgrounds or images where the glassmorphic effect is visible. -
Rounded styles: Use
rounded="pill"orrounded="full"for more modern, friendly CTAs in hero sections.