Skip to content

Commit

Permalink
feat: enhance adaptive split layout with conditional headline rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
JimSeven committed Nov 14, 2024
1 parent 7f2d9fb commit 6c31d6a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions resources/views/components/layout-modules/adaptive-split.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
@switch($presentation)
@case('sticky_column')
<section {{ $attributes->class(['layout-content']) }}>
@if ($headline && $alignment->raw() !== 'inline')
<div class="grid-cols gap mb-20 grid sm:mb-52">
<x-section-header class="col-span-full" :$overline :$alignment>
{{ $headline }}
</x-section-header>
</div>
@endif

<div class="grid-cols gap-x grid gap-y-32">
@if ($enable_head_section->value())
<div class="col-span-full row-start-1 space-y-32 sm:col-span-6">
Expand All @@ -12,17 +20,17 @@
@endif
<div
class="top-32 col-span-full self-start sm:sticky sm:col-span-6 sm:col-start-1 sm:row-span-2 sm:row-start-1">
@if ($headline)
@if ($headline && $alignment->raw() === 'inline')
<div class="grid-cols gap mb-20 grid">
<x-section-header :$overline alignment="inline">
<x-section-header :$overline :$alignment>
{{ $headline }}
</x-section-header>
</div>
@endif
<x-text :text="$text" />
</div>
@if ($enable_tail_section->value())
<div class="col-span-full space-y-32 sm:col-span-6">
<div class="top-32 col-span-full space-y-32 sm:sticky sm:col-span-6">
@foreach ($tail_elements as $element)
<x-dynamic-component :component="'elements.' . $element['type']" :context="$element" :element_id="$element['id']"
:type="$element['type']" />
Expand Down

0 comments on commit 6c31d6a

Please sign in to comment.