feat: textblock is working, title component replaced the hard written title in it, cta too
This commit is contained in:
parent
8f67a5cc4e
commit
3c5804d974
2 changed files with 2 additions and 15 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue