mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
25 lines
861 B
PHP
25 lines
861 B
PHP
@props([
|
|
'mashupLayout' => '1Tx1B',
|
|
'noBleed' => false,
|
|
'darkMode' => false,
|
|
'deviceVariant' => 'og',
|
|
'deviceOrientation' => null,
|
|
'colorDepth' => '1bit',
|
|
'scaleLevel' => null,
|
|
])
|
|
|
|
@if(config('app.puppeteer_window_size_strategy') === 'v2')
|
|
<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>
|
|
@else
|
|
<x-trmnl::screen colorDepth="{{$colorDepth}}">
|
|
<x-trmnl::mashup mashup-layout="{{ $mashupLayout }}">
|
|
{!! $slot !!}
|
|
</x-trmnl::mashup>
|
|
</x-trmnl::screen>
|
|
@endif
|