Refine mobile Mini checkout: half sheet, launcher header, shop name in sheet.
Deploy Ladill Mini / deploy (push) Successful in 30s
Deploy Ladill Mini / deploy (push) Successful in 30s
Show the Ladill Mini launcher icon in the page header with the payment form in a 50vh bottom sheet containing the merchant name and amount entry. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -56,23 +56,33 @@
|
||||
}
|
||||
}">
|
||||
|
||||
{{-- Mobile: merchant header + bottom sheet --}}
|
||||
<div class="md:hidden flex min-h-screen flex-col">
|
||||
<div class="flex flex-1 flex-col items-center justify-center px-6 pb-6 pt-10 text-center">
|
||||
{{-- Mobile: Ladill Mini header + half-height payment sheet --}}
|
||||
<div class="md:hidden relative min-h-screen bg-slate-50">
|
||||
<header class="flex items-center justify-center px-4 pb-2 pt-[max(0.75rem,env(safe-area-inset-top))]">
|
||||
<span class="flex h-10 w-10 items-center justify-center rounded-xl bg-white shadow-sm ring-1 ring-slate-200/80">
|
||||
<img src="{{ asset('images/launcher-icons/mini.svg') }}?v={{ @filemtime(public_path('images/launcher-icons/mini.svg')) ?: '1' }}"
|
||||
alt="Ladill Mini" class="h-6 w-6 object-contain">
|
||||
</span>
|
||||
</header>
|
||||
|
||||
<div class="fixed inset-x-0 bottom-0 z-10 flex flex-col overflow-hidden rounded-t-3xl border-t border-slate-200/80 bg-white shadow-[0_-12px_40px_rgba(15,23,42,0.12)]"
|
||||
style="height: 50dvh; min-height: 22rem; padding-bottom: env(safe-area-inset-bottom, 0px)">
|
||||
<div class="mx-auto mt-3 h-1 w-10 shrink-0 rounded-full bg-slate-200"></div>
|
||||
|
||||
<div class="flex min-h-0 flex-1 flex-col overflow-y-auto px-5 pb-5 pt-4">
|
||||
<div class="text-center">
|
||||
@if(!empty($content['logo_path']))
|
||||
<img src="{{ route('qr.public.payment.logo', $qrCode->short_code) }}" alt="" class="h-16 w-16 rounded-2xl object-cover shadow-sm">
|
||||
<img src="{{ route('qr.public.payment.logo', $qrCode->short_code) }}" alt="" class="mx-auto h-12 w-12 rounded-xl object-cover shadow-sm">
|
||||
@endif
|
||||
<h1 class="mt-4 text-xl font-bold text-slate-900">{{ $businessName }}</h1>
|
||||
<h1 class="mt-3 text-lg font-bold text-slate-900">{{ $businessName }}</h1>
|
||||
@if(!empty($content['branch_label']))
|
||||
<p class="mt-1 text-sm text-slate-500">{{ $content['branch_label'] }}</p>
|
||||
<p class="mt-0.5 text-sm text-slate-500">{{ $content['branch_label'] }}</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="rounded-t-3xl border-t border-slate-200/80 bg-white px-5 pb-[max(1.25rem,env(safe-area-inset-bottom))] pt-3 shadow-[0_-8px_30px_rgba(15,23,42,0.08)]">
|
||||
<div class="mx-auto mb-4 h-1 w-10 rounded-full bg-slate-200"></div>
|
||||
|
||||
<div x-show="errorMsg" x-cloak class="mb-4 rounded-xl bg-red-50 px-4 py-3 text-sm text-red-700" x-text="errorMsg"></div>
|
||||
<div x-show="errorMsg" x-cloak class="mt-4 rounded-xl bg-red-50 px-4 py-3 text-sm text-red-700" x-text="errorMsg"></div>
|
||||
|
||||
<div class="mt-5 flex min-h-0 flex-1 flex-col justify-end">
|
||||
<label for="amount-mobile" class="sr-only">Amount ({{ $currency }})</label>
|
||||
<div class="relative">
|
||||
<span class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-4 text-lg font-semibold text-slate-400">{{ $currency }}</span>
|
||||
@@ -84,7 +94,7 @@
|
||||
</div>
|
||||
|
||||
<button type="button" @click="submitPay()" :disabled="loading"
|
||||
class="mt-4 flex w-full items-center justify-center gap-2 rounded-2xl bg-indigo-600 py-4 text-base font-semibold text-white hover:bg-indigo-700 disabled:opacity-60">
|
||||
class="mt-4 flex w-full shrink-0 items-center justify-center gap-2 rounded-2xl bg-indigo-600 py-4 text-base font-semibold text-white hover:bg-indigo-700 disabled:opacity-60">
|
||||
<svg x-show="loading" x-cloak class="h-4 w-4 animate-spin" fill="none" viewBox="0 0 24 24">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"></path>
|
||||
@@ -92,7 +102,9 @@
|
||||
<span x-text="loading ? 'Opening payment…' : 'Pay'">Pay</span>
|
||||
</button>
|
||||
|
||||
<p class="mt-4 text-center text-[11px] text-slate-400">Secured by Paystack · Powered by Ladill Mini</p>
|
||||
<p class="mt-3 shrink-0 text-center text-[11px] text-slate-400">Secured by Paystack · Powered by Ladill Mini</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user