feat: prepare mashup

This commit is contained in:
Benjamin Nussbaum 2025-09-18 11:44:57 +02:00
parent cc4aa0560c
commit 97e6beaee4

View file

@ -1,8 +1,25 @@
@props(['mashupLayout' => '1Tx1B']) @props([
'mashupLayout' => '1Tx1B',
'noBleed' => false,
'darkMode' => false,
'deviceVariant' => 'og',
'deviceOrientation' => null,
'colorDepth' => '1bit',
'scaleLevel' => null,
])
<x-trmnl::screen> @if(config('app.puppeteer_window_size_strategy') === 'v1')
<x-trmnl::mashup mashup-layout="{{ $mashupLayout }}"> <x-trmnl::screen colorDepth="{{$colorDepth}}">
{{-- The slot is used to pass the content of the mashup --}} <x-trmnl::mashup mashup-layout="{{ $mashupLayout }}">
{!! $slot !!} {!! $slot !!}
</x-trmnl::mashup> </x-trmnl::mashup>
</x-trmnl::screen> </x-trmnl::screen>
@else
<x-trmnl::screen colorDepth="{{$colorDepth}}" no-bleed="{{$noBleed}}" dark-mode="{{$darkMode}}"
device-variant="{{$deviceVariant}}" device-orientation="{{$deviceOrientation}}"
scale-level="{{$scaleLevel}}">
<x-trmnl::mashup mashup-layout="{{ $mashupLayout }}">
{!! $slot !!}
</x-trmnl::mashup>
</x-trmnl::screen>
@endif