Files
amare/resources/views/pages/home.blade.php
Manoel Freitas 42b282c1f2 feat: adicionar cadência editorial à home (#23)
* feat: adicionar cadência editorial à home

* fix: reconcile pr23 ci with current main

* test: atualizar baselines visuais da home para cadência editorial
2026-08-07 21:40:35 -03:00

45 lines
1.6 KiB
PHP

@extends('layouts.public')
@section('content')
@php
$testimonials = $content->testimonials
->filter(fn ($testimonial): bool => filled(trim((string) $testimonial->quote)))
->values();
$chapters = [
['id' => 'hero-heading', 'label' => 'Capa'],
['id' => 'manifesto-heading', 'label' => 'Manifesto'],
];
if ($content->featuredServices->isNotEmpty()) {
$chapters[] = ['id' => 'services-heading', 'label' => 'Serviços'];
}
if ($content->featuredCases->isNotEmpty()) {
$chapters[] = ['id' => 'portfolio-heading', 'label' => 'Portfólio'];
}
$chapters[] = ['id' => 'method-heading', 'label' => 'Método'];
if ($testimonials->isNotEmpty()) {
$chapters[] = ['id' => 'testimonials-heading', 'label' => 'Depoimentos'];
}
$chapters[] = ['id' => 'positioning-heading', 'label' => 'A Amare'];
$chapters[] = ['id' => 'final-cta-heading', 'label' => 'Próximo passo'];
@endphp
<x-home.chapter-index :chapters="$chapters" />
<div class="home-chapters">
<x-home.hero :settings="$content->settings" />
<x-home.manifesto :settings="$content->settings" />
<x-home.services :services="$content->featuredServices" />
<x-home.portfolio :cases="$content->featuredCases" />
<x-home.method :settings="$content->settings" />
<x-home.testimonials :testimonials="$content->testimonials" />
<x-home.positioning :settings="$content->settings" />
<x-home.final-cta :settings="$content->settings" editorial />
</div>
@endsection