---
title: "gallery-02"
description: "Image gallery with a centred heading and description above two square images side by side, stacked on mobile."
category: "Gallery"
---
# gallery-02
Image gallery with a centred heading and description above two square images side by side, stacked on mobile.
## Installation
```bash
php artisan ui:add-block gallery-02
```
## Dependencies
- composer: `gehrisandro/tailwind-merge-laravel`
- component: [aspect-ratio](https://laralcn-ui.abdulkadersafi.com/ar/components/aspect-ratio.md) — the CLI installs it for you.
## Source
`resources/views/components/ui/blocks/gallery-02.blade.php`
```blade
{{--
Every piece of content is a prop. An image is ['src' => ..., 'alt' => ...];
leave src empty to show a placeholder.
Square images in two columns, one column on mobile.
--}}
@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'],
],
])
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']))
@else