{{-- Home page (dark redesign). Owner: Site role. Built from docs/samples/home-dark-concept.src.html (approved by the owner) with the shared motion kit (resources/css/site/motion.css, resources/js/site/motion.js); every text from resources/content/home.php. QA aid: /#rest, /#mid, /#end freeze every scene at its start, middle or end. --}} @extends('layouts.site') @push('head') @endpush @php $products = $c->list('products.items'); // Hero: the title is one real h1; its mask word is drawn by the SVG window and stays in the h1 as transparent text. $title = (string) $c('hero.title'); $word = trim((string) $c('hero.mask_word')); $at = $word !== '' ? mb_stripos($title, $word) : false; $tBefore = $at !== false ? trim(mb_substr($title, 0, $at)) : ''; $tWord = $at !== false ? mb_substr($title, $at, mb_strlen($word)) : $title; $tAfter = $at !== false ? trim(mb_substr($title, $at + mb_strlen($word))) : ''; $maskText = mb_strtoupper($tWord); $iAt = mb_strrpos($maskText, 'I'); $zoomChar = $iAt !== false && $iAt > 0 ? $iAt : intdiv(mb_strlen($maskText), 2); $maskId = 'mk-'.substr(md5($title.$word), 0, 8); // "All you need in one platform": the last two words in mint (decorative copy in the hero landing) $sub = (string) $c('hero.subtitle'); $subWords = preg_split('/\s+/', trim($sub)); $subTail = implode(' ', array_slice($subWords, -2)); $subHead = implode(' ', array_slice($subWords, 0, -2)); // Text with one part in mint (.hi); both parts escaped $hi = function (string $text, string $part): string { $part = trim($part); $p = $part !== '' ? mb_strpos($text, $part) : false; if ($p === false) { return e($text); } return e(mb_substr($text, 0, $p)).''.e($part).''.e(mb_substr($text, $p + mb_strlen($part))); }; $count = (int) preg_replace('/\D/', '', (string) $c('clients.number')); $leads = [ ['key' => 'credit', 'img' => $c('leads.credit_screen'), 'alt' => $c('leads.credit_screen_alt'), 'text' => e($c('leads.credit_text'))], ['key' => 'calendar', 'img' => $c('leads.calendar_screen'), 'alt' => $c('leads.calendar_screen_alt'), 'text' => $c('leads.calendar_text')], ['key' => 'sms', 'img' => $c('leads.sms_image'), 'alt' => $c('leads.sms_image_alt'), 'text' => e($c('leads.sms_text'))], ]; $icon = fn (int $i) => $products[$i]['icon'] ?? null; $chips = [ ['-4%', '6%', '-90px', '-60px', '0s'], ['84%', '-8%', '80px', '-90px', '-1.2s'], ['92%', '52%', '120px', '20px', '-2.1s'], ['70%', '88%', '60px', '110px', '-3s'], ['10%', '84%', '-70px', '100px', '-.6s'], ['-9%', '46%', '-130px', '10px', '-1.8s'], ]; @endphp @section('prefooter_tag') {{ $c('clients.button_label') }} @endsection @section('content') {{-- Scene 1: through the letters. DEALERSHIP is a window onto living light; scrolling flies through it and lands on the platform line. --}}

@if($tBefore !== ''){{ $tBefore }} @endif{{ $tWord }}@if($tAfter !== '') {{ $tAfter }}@endif

{{-- Scene 2: the laptop rises and the product names light up --}}

{{ $c('products.title') }}

{{ $c('products.text') }}

{{ $c('products.button_label') }}
{{-- The six products as links --}} {{-- Statements that light up, each with a moving picture --}}

{!! $hi($c('intro.title'), $c('intro.title_highlight')) !!}

{{ $c('intro.subtitle') }}

@foreach ($chips as $i => [$x, $y, $dx, $dy, $t]) @if ($icon($i)) @endif @endforeach
@foreach ($c->list('intro.points') as $i => $point)

{{ $point['text'] }}

@if ($i === 0 && filled($c('intro.studio_image')))
@elseif ($i === 1 && filled($c('intro.devices_image')))
@elseif ($i === 2 && count($products) >= 6) @endif
@endforeach
{{-- Leads & Website Optimization --}}

{{ $c('leads.title') }}

{{ $c('leads.subtitle') }}

{{-- Scene 3: the screens turn, the giant title changes --}}
@foreach ($leads as $i => $l)

{{ $c('leads.'.$l['key'].'_title') }}

@endforeach
@foreach ($leads as $i => $l)
@endforeach
@foreach ($leads as $i => $l) @endforeach
{{-- Strengths: oversized sliding lines --}}
@foreach ($c->list('leads.steps') as $step)
{{ $step['number'] }}

{{ $step['title'] }}

{{ $step['text'] }}

@endforeach {{ $c('leads.website_button_label') }} {{ $c('leads.website_button_context') }}
{{-- Proof: +500 --}}
0) data-count="{{ $count }}" @endif>{{ $c('clients.number') }}

{{ $c('clients.title') }}

{{ $c('clients.subtitle') }}

{{-- Talk to Sales --}}

{{ $c('sales.title') }}

{!! $hi($c('sales.subtitle'), $c('sales.subtitle_highlight')) !!}

{{ $c('sales.text') }}

{{ $c('sales.button_label') }}
@endsection