ADD Introducing the component

This commit is contained in:
Antoine M 2025-06-03 16:46:09 +02:00
parent b494233d77
commit c6f5851014

View File

@ -0,0 +1,29 @@
<?php
$title = $args['title'];
$subtitle = $args['subtitle'];
$description = $args['description'];
$cover = $args['cover'];
?>
<section class="page-header content-section content-section--full-width">
<div class="content-section__inner page-header__inner">
<div class="page-header__content">
<h1 class="page-header__title title-small "><?php echo $title; ?></h1>
<?php if ($subtitle) : ?>
<p class="page-header__subtitle subtitle-big"><?php echo $subtitle; ?></p>
<?php endif; ?>
<?php if ($description) : ?>
<p class="page-header__description"><?php echo $description; ?></p>
<?php endif; ?>
</div>
<div class="page-header__image">
<?php if ($cover) : ?>
<img src="<?php echo $cover['url']; ?>" alt="<?php echo $title; ?>">
<?php endif; ?>
</div>
</div>
</section>