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.
Card Components
Proyecto Renacer uses three card component sizes for different content types and layouts:CardSm, CardMd, and CardLg.
CardSm.astro
Small card component ideal for feature grids and service highlights.Props
The card heading displayed prominently.
The card body text description.
Slot Content
The component accepts children via the default slot, typically used for icons or visual elements placed above the title.Usage Examples
Feature card with icon (from index.astro:87-98)Styling Details
CardSm includes:- Generous padding (
p-8) - Rounded corners (
rounded-2xl) - Light/dark theme support
- Primary border accent (
border-primary/20) - Hover shadow effect (
hover:shadow-xl) - Smooth transitions
/workspace/source/src/components/CardSm.astro:1-20
CardMd.astro
Medium-sized card for showcasing project imagery with overlay badges and captions.Features
- Fixed aspect ratio (4:3)
- Rounded corners with shadow
- Gradient overlay for text readability
- Badge component for project type
- Text positioned at bottom-left
- Group hover effects
Structure
The CardMd component is currently configured with a default image and project information. It displays:- A responsive image using Astro’s
<Image>component - A gradient overlay from black to transparent
- A “Proyecto Social” badge with secondary color
- Project location text “Sector Chaupi San Luis”
Usage Example
Hero section card (from index.astro:69)Customization
To make CardMd more flexible, you could extend it to accept props:Styling Details
- Container:
relative w-full aspect-4/3 rounded-3xl overflow-hidden shadow-2xl - Image:
object-cover w-full h-full - Overlay:
absolute inset-0 bg-linear-to-t from-black/40 to-transparent - Badge:
bg-secondary/90 backdrop-blur px-3 py-1 rounded-full
/workspace/source/src/components/CardMd.astro:1-26
CardLg.astro
Status: Currently empty in the source code. This component is available for implementation when large card layouts are needed.Suggested Use Cases
- Full-width feature showcases
- Detailed project information panels
- Testimonial cards with photos
- Multi-column content sections
/workspace/source/src/components/CardLg.astro:1
Card Layout Patterns
Three-column grid (common pattern)
Two-column layout with CardMd
Best Practices
- CardSm for features: Use in grids of 2-4 items to highlight key points or services
- Consistent iconography: Pair CardSm with Material Symbols icons in rounded containers
- Color coding: Use different background colors (
bg-primary/10,bg-secondary/10) to visually group related cards - Dark mode support: All cards include dark mode variants with
dark:utilities - Accessibility: Always provide descriptive title and text props for screen readers