Move bookshop title and tagline above author card on mobile.
Deploy Ladill QR Plus / deploy (push) Successful in 1m11s
Deploy Ladill QR Plus / deploy (push) Successful in 1m11s
On small screens the hero only shows the cover; title and sub sit above the author card. Desktop still places them on the cover.
This commit is contained in:
@@ -1213,23 +1213,32 @@
|
||||
];
|
||||
@endphp
|
||||
<div class="min-h-screen bg-stone-100 pb-12">
|
||||
<div class="relative h-48 overflow-hidden">
|
||||
<div class="relative h-40 overflow-hidden sm:h-48">
|
||||
@if($aCover)
|
||||
<img src="{{ $aCover }}" alt="" class="absolute inset-0 h-full w-full object-cover">
|
||||
<div class="absolute inset-0 bg-gradient-to-b from-black/20 to-black/60"></div>
|
||||
<div class="absolute inset-0 bg-gradient-to-b from-black/10 to-black/40 sm:from-black/20 sm:to-black/60"></div>
|
||||
@else
|
||||
<div class="absolute inset-0" style="background: linear-gradient(145deg, {{ $aColor }}, {{ $aColor }}99);"></div>
|
||||
@endif
|
||||
<div class="absolute inset-x-0 bottom-0 px-5 pb-5 text-white">
|
||||
{{-- Desktop: title stays on the cover --}}
|
||||
<div class="absolute inset-x-0 bottom-0 hidden px-5 pb-5 text-white sm:block">
|
||||
<h1 class="text-2xl font-bold">{{ $aName }}</h1>
|
||||
@if($aTagline)
|
||||
<p class="mt-1 truncate text-sm text-white/90 sm:whitespace-normal sm:overflow-visible">{{ $aTagline }}</p>
|
||||
<p class="mt-1 text-sm text-white/90">{{ $aTagline }}</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mx-auto max-w-md px-4">
|
||||
<div class="relative -mt-8 rounded-3xl bg-white p-5 shadow-xl">
|
||||
{{-- Mobile: title + sub sit above the author card --}}
|
||||
<div class="mb-3 mt-4 sm:hidden">
|
||||
<h1 class="truncate text-xl font-bold text-slate-900">{{ $aName }}</h1>
|
||||
@if($aTagline)
|
||||
<p class="mt-0.5 truncate text-sm text-slate-600">{{ $aTagline }}</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="relative rounded-3xl bg-white p-5 shadow-xl sm:-mt-8">
|
||||
<div class="flex items-start gap-3">
|
||||
<div class="flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-2xl border-2 border-white shadow" style="background: {{ $aColor }};">
|
||||
@if($aAvatar)
|
||||
|
||||
Reference in New Issue
Block a user