{{-- Example page demonstrating card and slider-card components --}}
Modern, responsive, and accessible card components for Golden Stone
Basic cards with image, title, description, and action button.
<x-card
imageUrl="https://example.com/image.jpg"
imageAlt="Product name"
title="Card Title"
description="Card description text"
href="/product/link"
/>
Cards where you can add custom HTML content using slots.
<x-card
imageUrl="{{ asset('image.jpg') }}"
imageAlt="Product"
title="Product Name"
>
<!-- Custom content here -->
<ul>
<li>Feature 1</li>
<li>Feature 2</li>
</ul>
</x-card>
Interactive image carousel with navigation buttons, dots indicator, and optional auto-play.
@php
$images = [
['url' => 'https://picsum.photos/600/400?random=1', 'alt' => 'Image 1'],
['url' => 'https://picsum.photos/600/400?random=2', 'alt' => 'Image 2'],
['url' => 'https://picsum.photos/600/400?random=3', 'alt' => 'Image 3'],
];
@endphp
<x-slider-card
:images="$images"
title="Stone Gallery"
/>
Click the arrows or dots to navigate through the gallery. Use arrow keys on desktop or swipe on mobile.
Carousel that automatically rotates through images with optional manual control.
<x-slider-card
:images="$images"
title="Auto-Playing Gallery"
:autoplay="true"
:autoplayDelay="4000"
/>
Note: This carousel auto-plays and pauses when you hover over it. You can still manually navigate during playback.
Multiple carousels displayed side-by-side, each with independent navigation.
Beautiful styling with shadows, rounded corners, and smooth animations.
Perfect on mobile, tablet, and desktop screens with optimized layouts.
Navigate with arrow keys, full keyboard support for all interactions.
Swipe support on mobile devices, touch-optimized buttons and controls.
Lazy loading, proper aspect ratios, no layout shift, object-fit cover.
Components automatically adapt to dark mode preferences.
<link rel="stylesheet" href="{{ asset('css/cards.css') }}">@stack('scripts')
📖 For complete documentation, see CARD_SYSTEM_GUIDE.md