--- title: "gallery-01" description: "Image gallery with a centred heading, a short description and one large full-width image." category: "Gallery" --- # gallery-01 Image gallery with a centred heading, a short description and one large full-width image. ## Installation ```bash php artisan ui:add-block gallery-01 ``` ## Dependencies - composer: `gehrisandro/tailwind-merge-laravel` ## Source `resources/views/components/ui/blocks/gallery-01.blade.php` ```blade {{-- Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...]; leave src empty to show a placeholder. One wide image: 16:9 on mobile, 1280:738 from md up. --}} @props([ 'heading' => 'Image Gallery', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'images' => [ ['src' => null, 'alt' => 'Placeholder image 1'], ], ])
merge(['class' => 'w-full bg-background px-[5%] py-16 text-foreground md:py-24 lg:py-28']) }}>

{{ $heading }}

{{ $description }}

@foreach ($images as $image)
@if (!empty($image['src'])) {{ $image['alt'] ?? '' }} @else @endif
@endforeach
```