feat: textblock is working, title component replaced the hard written title in it, cta too

This commit is contained in:
K Muller 2025-08-28 12:00:21 +02:00
parent 8f67a5cc4e
commit 3c5804d974
2 changed files with 2 additions and 15 deletions

View file

@ -520,6 +520,7 @@
])
{{-- FIXME: TODO : ICI je m'arrete sur la refacto car c'est de la perte de temps, les infos qui viendront depuis le BO seront à retraiter dans tous les cas. --}}
<div class="textblock fw fw-container textblock_bg ">
<div class="textblock__wrapper wrapper">

View file

@ -15,23 +15,9 @@
])>
<div class="textblock__wrapper wrapper">
@if (!empty($text_block['title']) || !empty($text_block['subtitle']['text']))
<h2 class="textblock__title title">
@if (!empty($text_block['title']))
<span class="title-text">{{ $text_block['title'] }}</span>
@endif
@if (!empty($text_block['subtitle']['text']))
<span @class([
'subtitle-text textblock__subtitle subtitle',
'subtitle_paint' => $text_block['subtitle']['cursive'],
])>
{{ $text_block['subtitle']['text'] }}
</span>
@endif
</h2>
<x-front.sections.title :title="isset($text_block['title']) ? $text_block['title'] : ''" :subtitle="isset($text_block['subtitle']['text']) ? $text_block['subtitle']['text'] : ''" />
@endif
@if (!empty($text_block['description']) || !empty($text_block['description']['text']))
<div class="textblock__container">
<div class="textblock__info textblock__block">