--- title: "footer-07" description: "Newsletter footer with an oversized company wordmark: signup form, two link columns and a social list above the brand statement." category: "Footer" --- # footer-07 Newsletter footer with an oversized company wordmark: signup form, two link columns and a social list above the brand statement. ## Installation ```bash php artisan ui:add-block footer-07 ``` ## Dependencies - composer: `gehrisandro/tailwind-merge-laravel` - component: [button](https://laralcn-ui.abdulkadersafi.com/components/button.md) — the CLI installs it for you. - component: [input](https://laralcn-ui.abdulkadersafi.com/components/input.md) — the CLI installs it for you. ## Source `resources/views/components/ui/blocks/footer-07.blade.php` ```blade {{-- Every piece of content is a prop, so you can drive this footer from a CMS. A link is either a plain string or ['label' => ..., 'href' => ...]. A social is ['label' =>, 'href' =>, 'icon' =>] where icon is a key of the $icons map below ('facebook', 'instagram', 'x', 'linkedin', 'youtube'), or pass 'svg' => '' to use a mark of your own. The wordmark defaults to `brand`; set it separately for a longer legal name, and retune the clamp below if the word no longer fills the container. --}} @props([ 'brand' => 'LaralCN', 'brandHref' => '#', 'wordmark' => null, 'newsletterText' => 'Join our newsletter to stay up to date on features and releases.', 'formAction' => null, 'emailPlaceholder' => 'Enter your email', 'subscribeLabel' => 'Subscribe', 'privacyHref' => '#', 'columns' => [ ['title' => 'Column One', 'links' => ['Link One', 'Link Two', 'Link Three', 'Link Four', 'Link Five']], ['title' => 'Column Two', 'links' => ['Link Six', 'Link Seven', 'Link Eight', 'Link Nine', 'Link Ten']], ], 'socialsTitle' => 'Follow Us', 'socials' => [ ['label' => 'Facebook', 'icon' => 'facebook'], ['label' => 'Instagram', 'icon' => 'instagram'], ['label' => 'X', 'icon' => 'x'], ['label' => 'LinkedIn', 'icon' => 'linkedin'], ['label' => 'Youtube', 'icon' => 'youtube'], ], 'legal' => ['Privacy Policy', 'Terms of Service', 'Cookies Settings'], 'copyright' => null, ]) @php $link = static fn($item): array => is_array($item) ? $item + ['href' => '#'] : ['label' => $item, 'href' => '#']; $icons = [ 'facebook' => '', 'instagram' => '', 'x' => '', 'linkedin' => '', 'youtube' => '', ]; @endphp
{{-- Newsletter --}}
{{ $logo ?? '' }} @empty($logo) @endempty {{ $brand }} @if ($newsletterText)

{{ $newsletterText }}

@endif
@if ($formAction) @csrf @endif {{ $subscribeLabel }}

{{ $disclaimer ?? '' }} @empty($disclaimer) By subscribing you agree to with our Privacy Policy and provide consent to receive updates from our company. @endempty

{{-- Link columns --}} @foreach ($columns as $column)

{{ $column['title'] ?? '' }}

    @foreach ($column['links'] ?? [] as $item) @php($entry = $link($item))
  • {{ $entry['label'] }}
  • @endforeach
@endforeach {{-- Socials --}}

{{ $socialsTitle }}

{{-- Oversized wordmark. The clamp is tuned to fill the container with "LaralCN"; retune the max when you change the word or the font. --}}

{{ $wordmark ?? $brand }}

{{ $copyright ?? '© ' . date('Y') . ' ' . $brand . '. All rights reserved.' }}

```