@aware(['page'])
@props([
'imagem_posicao' => 'left', // left, right, left-bottom, right-top
'titulo',
'imagem',
'descricao',
'sobrancelha' => null,
'botao_texto' => null,
'botao_url' => null,
'imagem_tamanho' => 'md',
'preset_star' => 'home-1', # home-1, home-2, sobre-1, sobre-2, sobre-3
'imagem_estilo' => 'capsula', # capsula, normal
'is_compact' => false,
'selo',
'selo_posicao',
'hamburguer' => false,
'imagem_alt' => null,
'selo_alt' => null,
])
@php
$is_left = str_starts_with($imagem_posicao, 'left');
$is_bottom = str_ends_with($imagem_posicao, 'bottom') || $imagem_posicao === 'right';
@endphp
$is_compact,
'xl:flex-row-reverse' => !$is_compact && $is_left,
'xl:flex-row' => !$is_compact && !$is_left,
'flex-col' => !$is_compact && $is_bottom,
'flex-col-reverse' => !$is_compact && !$is_bottom,
])>
@if (!empty($sobrancelha))
{{ $sobrancelha }}
@endif
{{ $titulo }}
{!! str($descricao)->sanitizeHtml() !!}
@if (!empty($botao_texto) && !empty($botao_url))
{{ $botao_texto }}
@endif
$imagem_tamanho === 'lg',
'max-w-[670px]' => $imagem_tamanho === 'md',
'max-w-[560px]' => $imagem_tamanho === 'sm',
])>
@if ($imagem_estilo === 'capsula')
@if (!empty($selo))
 }})
@endif
@else
 }})
@endif
@if ($preset_star === 'home-1')
@elseif($preset_star === 'home-2')
@elseif($preset_star === 'sobre-1')
@elseif($preset_star === 'sobre-2')
@elseif($preset_star === 'sobre-3')
@endif
@if ($hamburguer)
{!! str($descricao)->sanitizeHtml() !!}
@endif
@if (!empty($botao_texto) && !empty($botao_url))
{{ $botao_texto }}
@endif