--- title: "gallery-07" description: "Image gallery with a centred heading and description, one tall image on the start side and two wide images stacked beside it." category: "Gallery" --- # gallery-07 Image gallery with a centred heading and description, one tall image on the start side and two wide images stacked beside it. ## Installation ```bash php artisan ui:add-block gallery-07 ``` ## Dependencies - composer: `gehrisandro/tailwind-merge-laravel` ## Source `resources/views/components/ui/blocks/gallery-07.blade.php` ```blade {{-- Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...]; leave src empty to show a placeholder. The first image is the tall one and spans both rows from md up; the rest are wide. --}} @props([ 'heading' => 'Image Gallery', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'images' => [ ['src' => null, 'alt' => 'Placeholder image 1'], ['src' => null, 'alt' => 'Placeholder image 2'], ['src' => null, 'alt' => 'Placeholder image 3'], ], ])
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
```