{{-- Drawn newsletter thumbnail (DESIGN.md Components > Thumbnails). Decorative, aria-hidden. Props: variant (1..4, varies the header colour and the line pattern). --}} @props(['variant' => 1]) @php $variant = in_array((int) $variant, [1, 2, 3, 4], true) ? (int) $variant : 1; $parts = [ 1 => ['head', 'img', 'line', 'short'], 2 => ['head', 'line', 'img', 'short'], 3 => ['head', 'line', 'line', 'short'], 4 => ['head', 'img', 'line', 'line'], ][$variant]; @endphp class(['nh-thumb', 'nh-thumb-'.$variant => $variant > 1]) }} aria-hidden="true">@foreach ($parts as $part)@endforeach