Files
fewo-stommer/resources/themes/ostsee-licht/views/sections/hero.blade.php
T
Lars StommerandClaude Opus 5.5 7d0bc93abc Offers by their own rules, seasonal photos per section, theme authoring tooling
- Special offers: kinds (rule, fixed dates, gap filler), package price, priority, highlight;
  GapFinder detects calendar gaps (optionally waiving the minimum stay); OfferShowcase decides
  what the website advertises and prices fixed dates/gaps with PriceCalculator; offers section
  shows them side by side, as a list or rotating; hero can show the top offer. Appearances no
  longer carry a featured offer.
- Sections get stable ids; appearances set photos per section ("Bilder je Baustein") and
  sections can be limited to appearances. Photo pickers show thumbnails everywhere.
- Themes: themes:make (scaffold, never overwrites), themes:check (contract, build, markup,
  colours, external resources, WCAG contrast), themes:preview (signed links per page and
  appearance), signed ?theme= preview and preview action in the site form, inherited colour
  tokens in the admin. Base CSS split into theme.css + reusable theme-base.css.
- docs/THEME-ERSTELLUNG.md: binding guide for building additional themes elsewhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:51:38 +02:00

44 lines
3.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<section class="mx-auto max-w-[86rem] px-4" aria-labelledby="{{ $sectionId }}-title">
<div class="relative overflow-hidden rounded">
@include('theme::partials.image', ['photo' => $photo, 'class' => 'h-[30rem] w-full object-cover sm:h-[40rem]', 'eager' => true])
<div class="bg-ground p-7 sm:absolute sm:bottom-12 sm:left-12 sm:max-w-xl sm:p-11 sm:pb-9">
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
<h1 id="{{ $sectionId }}-title" class="font-display text-[2.5rem] leading-[1.02] font-medium sm:text-[3.5rem]">{!! preg_replace('/\*(.+?)\*/u', '<em>$1</em>', e($title)) !!}</h1>
@if ($text)<p class="mt-4 text-muted">{{ $text }}</p>@endif
@if ($featuredOffer ?? null)
<a href="{{ $featuredOffer->bookingUrl() }}" class="mt-5 flex items-center gap-3 rounded border border-accent p-3 hover:bg-surface">
<span class="rounded bg-accent px-2 py-1 text-sm font-semibold whitespace-nowrap text-accent-ink">{{ $featuredOffer->advantage }}</span>
<span class="text-sm">
<strong>{{ $featuredOffer->title }}</strong>
@if ($featuredOffer->arrival)
· {{ $featuredOffer->arrival->format('d.m.') }}–{{ $featuredOffer->departure->format('d.m.') }}
@endif
</span>
</a>
@endif
</div>
</div>
</section>
@if ($showSearch)
<section class="relative mx-auto mt-4 max-w-5xl px-4 sm:-mt-11 sm:px-6" aria-label="Verfügbarkeit prüfen">
<form action="{{ route('booking.create') }}" method="get" data-availability-search
class="grid grid-cols-1 items-end gap-4 rounded bg-surface p-5 shadow-[0_18px_40px_rgba(0,0,0,0.10)] sm:grid-cols-2 lg:grid-cols-4">
<label class="flex flex-col gap-1.5 text-[13px] font-semibold text-muted">Anreise
<input type="date" name="anreise" min="{{ today()->toDateString() }}" class="rounded text-base font-medium" required>
</label>
<label class="flex flex-col gap-1.5 text-[13px] font-semibold text-muted">Abreise
<input type="date" name="abreise" min="{{ today()->addDay()->toDateString() }}" class="rounded text-base font-medium" required>
</label>
<label class="flex flex-col gap-1.5 text-[13px] font-semibold text-muted">Personen
<select name="personen" class="rounded text-base font-medium">
@for ($count = 1; $count <= ($property?->max_guests ?? 3); $count++)
<option value="{{ $count }}" @selected($count === 2)>{{ $count }} {{ $count === 1 ? 'Person' : 'Personen' }}</option>
@endfor
</select>
</label>
<button type="submit" class="min-h-12 rounded bg-accent px-5 font-semibold text-accent-ink hover:opacity-90">Preis berechnen</button>
</form>
</section>
@endif