--- title: "contact-13" description: "Three centred columns for email, phone and office, each with a large icon, short text and a link." category: "Contact" --- # contact-13 Three centred columns for email, phone and office, each with a large icon, short text and a link. ## Installation ```bash php artisan ui:add-block contact-13 ``` ## Dependencies - composer: `gehrisandro/tailwind-merge-laravel` ## Source `resources/views/components/ui/blocks/contact-13.blade.php` ```blade {{-- Three centred columns for email, phone and office. Every piece of content is a prop. Set any of email, phone or address to null to hide that column. The address links to a Google Maps search for it unless you pass `address-href`. --}} @props([ 'emailTitle' => 'Email', 'emailDescription' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in ero.', 'email' => 'email@example.com', 'phoneTitle' => 'Phone', 'phoneDescription' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in ero.', 'phone' => '+1 (555) 000-0000', 'addressTitle' => 'Office', 'addressDescription' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in ero.', 'address' => '123 Sample St, Sydney NSW 2000 AU', 'addressHref' => null, ]) @php $tel = $phone ? 'tel:' . preg_replace('/[^\d+]/', '', $phone) : null; $directions = $addressHref ?? ($address ? 'https://www.google.com/maps/search/?api=1&query=' . urlencode($address) : null); @endphp
merge(['class' => 'w-full bg-background px-[5%] py-16 text-foreground md:py-24 lg:py-28']) }}>
@if ($email)

{{ $emailTitle }}

@if ($emailDescription)

{{ $emailDescription }}

@endif
{{ $email }}
@endif @if ($phone)

{{ $phoneTitle }}

@if ($phoneDescription)

{{ $phoneDescription }}

@endif
{{ $phone }}
@endif @if ($address)

{{ $addressTitle }}

@if ($addressDescription)

{{ $addressDescription }}

@endif
{{ $address }}
@endif
```