home hero - implement hero link

This commit is contained in:
isUnknown 2024-09-03 17:06:25 +02:00
parent bfcb25cf09
commit 1c8e47d810
2 changed files with 17 additions and 0 deletions

View file

@ -3,6 +3,9 @@
<section class="hero">
<div class="hero__text">
<?= $site->heroText()->toBlocks() ?>
<?php if ($site->heroLinkUrl()->isNotEmpty() == 'true'): ?>
<a class="hero__link h3" href="<?= $site->heroLinkUrl()->toUrl() ?>"><?php e($site->heroLinkText()->isNotEmpty() == 'true', $site->heroLinkText(), $site->heroLinkUrl()->toUrl()) ?></a>
<?php endif ?>
</div>
<div class="hero__image">
<?php snippet('picture', ['file' => $site->heroImage()->toFile()]) ?>