Skip to content

Commit efcf346

Browse files
committed
Improve component call-to-action
1 parent 8151c92 commit efcf346

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

resources/views/components/call-to-action.blade.php

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,25 @@
99
@isset($sup)
1010
<span class="text-primary mb-3 d-block text-uppercase fw-semibold ls-xl">{{ $sup }}</span>
1111
@endisset
12-
<p class="display-6 fw-bold text-balance">{!! $title !!}</p>
12+
<p class="display-6 fw-bold text-balance">{!! $title !!}</p>
1313
<p class="mb-lg-0 text-balance">
14-
{!! $description !!}
14+
{!! $description !!}
1515
</p>
1616
</div>
1717

18-
<a href="{{ $attributes->get('link', '#') }}" class="d-block d-md-inline-block btn btn-outline-primary btn-lg px-4">
19-
{{ $attributes->get('text', 'Перейти') }}
20-
</a>
18+
<div class="d-flex flex-column gap-2">
19+
20+
@isset($label)
21+
{!! $label !!}
22+
@endisset
23+
24+
<a href="{{ $attributes->get('link', '#') }}" class="d-block d-md-inline-block btn btn-outline-primary btn-lg px-4">
25+
{{ $attributes->get('text', 'Перейти') }}
26+
</a>
27+
28+
@isset($caption)
29+
{!! $caption !!}
30+
@endisset
31+
</div>
2132
</div>
2233
</x-container>

0 commit comments

Comments
 (0)