Refine design (less clunky, fully mobile-friendly), seed only Fidget Toys, Pokemon & Film popculture, and add direct custom model ordering
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
|
||||
@section('content')
|
||||
<!-- Breadcrumbs -->
|
||||
<div class="bg-amber-50 border-b-2 border-slate-900 py-3.5">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-xs font-bold text-slate-600 flex items-center space-x-2">
|
||||
<div class="bg-amber-50/50 border-b border-slate-200/80 py-2.5 sm:py-3">
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-xs font-bold text-slate-500 flex items-center space-x-1.5 overflow-x-auto whitespace-nowrap">
|
||||
<a href="{{ route('home') }}" class="hover:text-rose-600">Home 🏠</a>
|
||||
<span>/</span>
|
||||
<a href="{{ route('catalog') }}" class="hover:text-rose-600">Catalogus 🎁</a>
|
||||
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10"
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 sm:py-10"
|
||||
x-data="{
|
||||
basePrice: {{ $product->base_price }},
|
||||
selectedMaterial: '{{ $product->available_materials[0] ?? 'pla' }}',
|
||||
@@ -27,7 +27,7 @@
|
||||
'{{ $code }}': {{ $mat->price_multiplier }},
|
||||
@endforeach
|
||||
},
|
||||
selectedColor: '{{ $product->available_colors[0] ?? 'Mat Zwart' }}',
|
||||
selectedColor: '{{ $product->available_colors[0] ?? 'Zon Geel (Pikachu)' }}',
|
||||
selectedScale: '100%',
|
||||
scaleMultipliers: {
|
||||
'100%': 1.0,
|
||||
@@ -51,88 +51,88 @@
|
||||
}
|
||||
}">
|
||||
|
||||
<div class="grid grid-cols-1 lg:grid-cols-12 gap-10">
|
||||
<div class="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-12">
|
||||
|
||||
<!-- Linkerkant: Productgalerij & Speelse Specificaties -->
|
||||
<div class="lg:col-span-6 space-y-6">
|
||||
<div class="rounded-3xl bg-white border-3 border-slate-900 overflow-hidden toy-shadow-lg">
|
||||
<div class="relative h-96 sm:h-112 bg-[#FFFDF7] flex items-center justify-center overflow-hidden">
|
||||
<!-- Linkerkant: Productgalerij & Specificaties -->
|
||||
<div class="lg:col-span-6 space-y-4 sm:space-y-6">
|
||||
<div class="rounded-3xl bg-white border border-slate-100 overflow-hidden shadow-sm">
|
||||
<div class="relative h-72 sm:h-96 md:h-112 bg-slate-100 flex items-center justify-center overflow-hidden">
|
||||
<img
|
||||
src="{{ $product->image_url }}"
|
||||
alt="{{ $product->name }}"
|
||||
class="w-full h-full object-cover object-center"
|
||||
>
|
||||
<div class="absolute top-4 left-4 flex flex-col gap-2">
|
||||
<div class="absolute top-3 left-3 flex flex-col gap-1.5">
|
||||
@if($product->is_featured)
|
||||
<span class="px-3.5 py-1.5 rounded-full bg-rose-500 text-white font-heading text-xs font-black border-2 border-slate-900 toy-shadow-sm flex items-center space-x-1">
|
||||
<span class="px-3 py-1 rounded-full bg-gradient-to-r from-rose-500 to-amber-500 text-white font-heading text-xs font-black shadow-sm flex items-center space-x-1">
|
||||
<span>🔥</span>
|
||||
<span>Populair!</span>
|
||||
<span>Populair</span>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Print & Specificaties Card in Vrolijke Blokken -->
|
||||
<div class="p-6 rounded-3xl bg-white border-2 border-slate-900 toy-shadow space-y-4">
|
||||
<h3 class="font-heading text-sm font-black text-slate-900 uppercase tracking-wider flex items-center space-x-2">
|
||||
<!-- Print Specificaties Card (Minder lomp, verfijnd) -->
|
||||
<div class="p-4 sm:p-6 rounded-3xl bg-white border border-slate-100 shadow-xs space-y-3">
|
||||
<h3 class="font-heading text-xs font-black text-slate-900 uppercase tracking-wider flex items-center space-x-1.5">
|
||||
<span>🖨️</span>
|
||||
<span>Print Specificaties & Details</span>
|
||||
<span>Print Details & Formaat</span>
|
||||
</h3>
|
||||
|
||||
<div class="grid grid-cols-2 sm:grid-cols-4 gap-3 text-xs">
|
||||
<div class="p-3.5 rounded-2xl bg-amber-100 border-2 border-slate-900 text-center">
|
||||
<span class="text-slate-600 block text-[10px] uppercase font-black">📏 Formaat</span>
|
||||
<span class="font-black text-slate-900 mt-0.5 block font-heading">{{ $product->dimensions ?? 'Standaard' }}</span>
|
||||
<div class="grid grid-cols-2 sm:grid-cols-4 gap-2 sm:gap-3 text-xs">
|
||||
<div class="p-3 rounded-2xl bg-slate-50 text-center">
|
||||
<span class="text-slate-400 block text-[10px] uppercase font-bold">📏 Formaat</span>
|
||||
<span class="font-black text-slate-800 mt-0.5 block font-heading">{{ $product->dimensions ?? 'Standaard' }}</span>
|
||||
</div>
|
||||
|
||||
<div class="p-3.5 rounded-2xl bg-rose-100 border-2 border-slate-900 text-center">
|
||||
<span class="text-slate-600 block text-[10px] uppercase font-black">⚖️ Gewicht</span>
|
||||
<span class="font-black text-slate-900 mt-0.5 block font-heading">~{{ $product->weight_grams ?? '80' }}g</span>
|
||||
<div class="p-3 rounded-2xl bg-slate-50 text-center">
|
||||
<span class="text-slate-400 block text-[10px] uppercase font-bold">⚖️ Gewicht</span>
|
||||
<span class="font-black text-slate-800 mt-0.5 block font-heading">~{{ $product->weight_grams ?? '80' }}g</span>
|
||||
</div>
|
||||
|
||||
<div class="p-3.5 rounded-2xl bg-sky-100 border-2 border-slate-900 text-center">
|
||||
<span class="text-slate-600 block text-[10px] uppercase font-black">⏱️ Printtijd</span>
|
||||
<span class="font-black text-slate-900 mt-0.5 block font-heading">{{ $product->print_time_hours ?? '4.0' }} uur</span>
|
||||
<div class="p-3 rounded-2xl bg-slate-50 text-center">
|
||||
<span class="text-slate-400 block text-[10px] uppercase font-bold">⏱️ Printtijd</span>
|
||||
<span class="font-black text-slate-800 mt-0.5 block font-heading">{{ $product->print_time_hours ?? '4.0' }} uur</span>
|
||||
</div>
|
||||
|
||||
<div class="p-3.5 rounded-2xl bg-emerald-100 border-2 border-slate-900 text-center">
|
||||
<span class="text-slate-600 block text-[10px] uppercase font-black">🔍 Laaghoogte</span>
|
||||
<span class="font-black text-slate-900 mt-0.5 block font-heading">0.16 mm</span>
|
||||
<div class="p-3 rounded-2xl bg-slate-50 text-center">
|
||||
<span class="text-slate-400 block text-[10px] uppercase font-bold">🔍 Resolutie</span>
|
||||
<span class="font-black text-slate-800 mt-0.5 block font-heading">0.12 - 0.16 mm</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pt-3 flex flex-col sm:flex-row items-center justify-between text-xs text-slate-700 font-bold border-t-2 border-slate-100 gap-2">
|
||||
<span class="flex items-center space-x-1.5">
|
||||
<div class="pt-2 flex flex-col sm:flex-row items-center justify-between text-[11px] text-slate-500 font-bold border-t border-slate-100 gap-1.5">
|
||||
<span class="flex items-center space-x-1">
|
||||
<span>✨</span>
|
||||
<span>Geprint op hypermoderne Bambu Lab 3D printers</span>
|
||||
<span>Geprint op precisie Bambu Lab printers</span>
|
||||
</span>
|
||||
<span class="flex items-center space-x-1.5">
|
||||
<span>🧼</span>
|
||||
<span>Handmatig nagekeken en ontbraamd</span>
|
||||
<span class="flex items-center space-x-1">
|
||||
<span>🌱</span>
|
||||
<span>Veilig & biologisch afbreekbaar PLA</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Productomschrijving -->
|
||||
<div class="p-6 rounded-3xl bg-white border-2 border-slate-900 toy-shadow space-y-3">
|
||||
<h3 class="font-heading text-base font-black text-slate-900 flex items-center space-x-2">
|
||||
<div class="p-4 sm:p-6 rounded-3xl bg-white border border-slate-100 shadow-xs space-y-2">
|
||||
<h3 class="font-heading text-sm font-black text-slate-900 flex items-center space-x-1.5">
|
||||
<span>📝</span>
|
||||
<span>Over dit product</span>
|
||||
<span>Over deze 3D print</span>
|
||||
</h3>
|
||||
<div class="text-xs text-slate-700 leading-relaxed space-y-2 font-medium">
|
||||
<div class="text-xs text-slate-600 leading-relaxed space-y-1.5 font-medium">
|
||||
{!! nl2br($product->description) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($product->makerworld_id)
|
||||
<!-- MakerWorld Model Attributie -->
|
||||
<div class="p-4 rounded-2xl bg-sky-100 border-2 border-slate-900 toy-shadow-sm text-xs text-slate-800 flex items-center justify-between font-bold">
|
||||
<div class="p-4 rounded-2xl bg-indigo-50 border border-indigo-100 text-xs text-slate-700 flex items-center justify-between font-bold">
|
||||
<div class="flex items-center space-x-2">
|
||||
<span class="px-2.5 py-1 rounded-xl bg-white border border-slate-900 text-indigo-700 font-black text-[10px]">MakerWorld 3D</span>
|
||||
<span>Gemaakt door <strong>{{ $product->makerworld_author ?? 'MakerWorld Maker' }}</strong></span>
|
||||
<span class="px-2.5 py-0.5 rounded-lg bg-indigo-100 text-indigo-700 font-black text-[10px]">MakerWorld Model</span>
|
||||
<span>Ontworpen door <strong>{{ $product->makerworld_author ?? 'MakerWorld Creator' }}</strong></span>
|
||||
</div>
|
||||
<a href="{{ $product->makerworld_url ?? 'https://makerworld.com/nl/models/' . $product->makerworld_id }}" target="_blank" class="text-indigo-700 hover:text-indigo-900 underline inline-flex items-center space-x-1">
|
||||
<a href="{{ $product->makerworld_url ?? 'https://makerworld.com/nl/models/' . $product->makerworld_id }}" target="_blank" class="text-indigo-600 hover:text-indigo-800 underline inline-flex items-center space-x-1">
|
||||
<span>Origineel bekijken</span>
|
||||
<i data-lucide="external-link" class="w-3 h-3"></i>
|
||||
</a>
|
||||
@@ -140,39 +140,39 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<!-- Rechterkant: Interactive 3D Workshop / Configurator -->
|
||||
<!-- Rechterkant: Interactive Configurator & Bestelmodule -->
|
||||
<div class="lg:col-span-6 space-y-6">
|
||||
<div class="p-8 rounded-3xl bg-white border-3 border-slate-900 toy-shadow-lg space-y-6">
|
||||
<div class="p-5 sm:p-8 rounded-3xl bg-white border border-slate-100 shadow-lg shadow-slate-200/40 space-y-5 sm:space-y-6">
|
||||
|
||||
<div>
|
||||
@if($product->category)
|
||||
<span class="inline-block px-3 py-1 rounded-full bg-amber-300 border-2 border-slate-900 text-[11px] font-black text-slate-950 mb-2 toy-shadow-sm">
|
||||
<span class="inline-block px-2.5 py-0.5 rounded-full bg-amber-100 text-[10px] sm:text-xs font-black text-amber-900 mb-1.5">
|
||||
{{ $product->category->name }}
|
||||
</span>
|
||||
@endif
|
||||
<h1 class="font-heading text-2xl sm:text-3xl font-black text-slate-900 tracking-tight">{{ $product->name }}</h1>
|
||||
<p class="text-xs font-bold text-slate-600 mt-2 leading-relaxed">{{ $product->short_description }}</p>
|
||||
<h1 class="font-heading text-xl sm:text-3xl font-black text-slate-900 tracking-tight">{{ $product->name }}</h1>
|
||||
<p class="text-xs text-slate-500 mt-1 leading-relaxed">{{ $product->short_description }}</p>
|
||||
</div>
|
||||
|
||||
<!-- Live Prijs Display (Speelse Candy Box) -->
|
||||
<div class="p-4 rounded-2xl bg-amber-100 border-2 border-slate-900 toy-shadow-sm flex items-center justify-between">
|
||||
<!-- Prijs Display -->
|
||||
<div class="p-3.5 sm:p-4 rounded-2xl bg-gradient-to-r from-amber-50 to-rose-50 border border-amber-200/60 flex items-center justify-between">
|
||||
<div>
|
||||
<span class="text-[11px] text-slate-700 block font-black uppercase">Jouw stukprijs</span>
|
||||
<div class="flex items-baseline space-x-2">
|
||||
<span class="font-heading text-3xl font-black text-slate-900">€ <span x-text="unitPriceFormatted"></span></span>
|
||||
<span class="text-xs text-slate-600 font-bold">incl. btw</span>
|
||||
<span class="text-[10px] text-slate-500 block font-bold uppercase">Stukprijs</span>
|
||||
<div class="flex items-baseline space-x-1.5">
|
||||
<span class="font-heading text-2xl sm:text-3xl font-black text-slate-900">€ <span x-text="unitPriceFormatted"></span></span>
|
||||
<span class="text-xs text-slate-500 font-normal">incl. btw</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text-right">
|
||||
<span class="px-3 py-1.5 rounded-full bg-emerald-300 border-2 border-slate-900 text-slate-950 text-xs font-black inline-flex items-center space-x-1.5 toy-shadow-sm">
|
||||
<span>🚀</span>
|
||||
<span>Direct Print-klaar</span>
|
||||
<span class="px-2.5 py-1 rounded-full bg-emerald-100 text-emerald-800 text-[11px] font-black inline-flex items-center space-x-1">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-emerald-500"></span>
|
||||
<span>Print-klaar</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bestelformulier met Customizer -->
|
||||
<form action="{{ route('cart.add') }}" method="POST" class="space-y-6">
|
||||
<form action="{{ route('cart.add') }}" method="POST" class="space-y-5">
|
||||
@csrf
|
||||
<input type="hidden" name="product_id" value="{{ $product->id }}">
|
||||
<input type="hidden" name="material" x-model="selectedMaterial">
|
||||
@@ -183,57 +183,51 @@
|
||||
|
||||
<!-- 1. Materiaal Keuze -->
|
||||
<div>
|
||||
<div class="flex items-center justify-between mb-2">
|
||||
<label class="text-xs font-black text-slate-900 uppercase tracking-wider flex items-center space-x-1.5">
|
||||
<span>1️⃣</span>
|
||||
<span>Kies Materiaal / Filament</span>
|
||||
</label>
|
||||
<span class="text-xs font-black text-indigo-700 bg-indigo-50 px-2 py-0.5 rounded-lg border border-indigo-200" x-text="selectedMaterial.toUpperCase()"></span>
|
||||
<div class="flex items-center justify-between mb-1.5">
|
||||
<label class="text-xs font-black text-slate-800 uppercase tracking-wider">1. Kies Materiaal</label>
|
||||
<span class="text-xs font-black text-rose-500" x-text="selectedMaterial.toUpperCase()"></span>
|
||||
</div>
|
||||
<div class="grid grid-cols-2 sm:grid-cols-3 gap-2.5">
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
@foreach($product->available_materials ?? ['pla'] as $matCode)
|
||||
@php $mat = $allMaterials[$matCode] ?? null; @endphp
|
||||
@if($mat)
|
||||
<button
|
||||
type="button"
|
||||
@click="selectedMaterial = '{{ $mat->code }}'"
|
||||
:class="selectedMaterial === '{{ $mat->code }}' ? 'border-slate-900 bg-amber-300 toy-shadow-sm font-black' : 'border-slate-200 bg-white hover:bg-slate-50 font-bold'"
|
||||
class="p-3 rounded-2xl border-2 text-left transition flex flex-col justify-between cursor-pointer"
|
||||
:class="selectedMaterial === '{{ $mat->code }}' ? 'border-amber-400 bg-amber-50 ring-2 ring-amber-400 font-black text-slate-950' : 'border-slate-200 bg-white hover:bg-slate-50 text-slate-700'"
|
||||
class="p-2.5 rounded-xl border text-left transition flex flex-col justify-between cursor-pointer"
|
||||
>
|
||||
<div class="flex items-center justify-between">
|
||||
<span class="text-xs text-slate-900">{{ $mat->name }}</span>
|
||||
<span class="text-xs font-bold">{{ $mat->name }}</span>
|
||||
@if($mat->price_multiplier > 1.0)
|
||||
<span class="text-[10px] px-1.5 py-0.5 rounded bg-white border border-slate-900 text-slate-900 font-black">+{{ round(($mat->price_multiplier - 1) * 100) }}%</span>
|
||||
<span class="text-[9px] px-1 py-0.2 rounded bg-slate-100 font-mono text-slate-600">+{{ round(($mat->price_multiplier - 1) * 100) }}%</span>
|
||||
@endif
|
||||
</div>
|
||||
<p class="text-[10px] text-slate-600 mt-1 line-clamp-1">{{ $mat->description }}</p>
|
||||
<p class="text-[10px] text-slate-500 mt-0.5 line-clamp-1">{{ $mat->description }}</p>
|
||||
</button>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 2. Kleur Selectie (Swatches met vrolijke rand) -->
|
||||
<!-- 2. Kleur Selectie (Swatches met mooie afwerking) -->
|
||||
<div>
|
||||
<div class="flex items-center justify-between mb-2">
|
||||
<label class="text-xs font-black text-slate-900 uppercase tracking-wider flex items-center space-x-1.5">
|
||||
<span>2️⃣</span>
|
||||
<span>Kies Jouw Lievelingskleur</span>
|
||||
</label>
|
||||
<span class="text-xs font-black text-rose-600 bg-rose-50 px-2.5 py-0.5 rounded-lg border border-rose-200" x-text="selectedColor"></span>
|
||||
<div class="flex items-center justify-between mb-1.5">
|
||||
<label class="text-xs font-black text-slate-800 uppercase tracking-wider">2. Kies Jouw Kleur</label>
|
||||
<span class="text-xs font-bold text-rose-600" x-text="selectedColor"></span>
|
||||
</div>
|
||||
<div class="flex flex-wrap gap-2.5">
|
||||
<div class="flex flex-wrap gap-2">
|
||||
@foreach($allColors as $c)
|
||||
<button
|
||||
type="button"
|
||||
@click="selectedColor = '{{ $c->name }}'"
|
||||
:class="selectedColor === '{{ $c->name }}' ? 'ring-4 ring-amber-400 scale-110' : 'hover:scale-105 border-slate-900'"
|
||||
class="w-9 h-9 rounded-2xl border-2 shadow-xs transition flex items-center justify-center cursor-pointer relative"
|
||||
:class="selectedColor === '{{ $c->name }}' ? 'ring-3 ring-rose-500 ring-offset-2 scale-110' : 'hover:scale-105 border-slate-300'"
|
||||
class="w-8 h-8 rounded-xl border shadow-xs transition flex items-center justify-center cursor-pointer relative"
|
||||
style="background-color: {{ $c->hex }};"
|
||||
title="{{ $c->name }}"
|
||||
>
|
||||
<template x-if="selectedColor === '{{ $c->name }}'">
|
||||
<i data-lucide="check" class="w-4 h-4 {{ in_array($c->name, ['Sneeuwwit', 'Galaxy Grijs', 'Zon Geel']) ? 'text-slate-950' : 'text-white' }} stroke-[3]"></i>
|
||||
<i data-lucide="check" class="w-4 h-4 {{ in_array($c->name, ['Sneeuwwit', 'Zon Geel (Pikachu)']) ? 'text-slate-950' : 'text-white' }} stroke-[3]"></i>
|
||||
</template>
|
||||
</button>
|
||||
@endforeach
|
||||
@@ -242,35 +236,32 @@
|
||||
|
||||
<!-- 3. Formaat & Schaal -->
|
||||
<div>
|
||||
<div class="flex items-center justify-between mb-2">
|
||||
<label class="text-xs font-black text-slate-900 uppercase tracking-wider flex items-center space-x-1.5">
|
||||
<span>3️⃣</span>
|
||||
<span>Grootte / Schaal</span>
|
||||
</label>
|
||||
<span class="text-xs font-black text-slate-800" x-text="selectedScale"></span>
|
||||
<div class="flex items-center justify-between mb-1.5">
|
||||
<label class="text-xs font-black text-slate-800 uppercase tracking-wider">3. Formaat / Schaal</label>
|
||||
<span class="text-xs font-bold text-slate-700" x-text="selectedScale"></span>
|
||||
</div>
|
||||
<div class="grid grid-cols-3 gap-2 text-xs">
|
||||
<button
|
||||
type="button"
|
||||
@click="selectedScale = '100%'"
|
||||
:class="selectedScale === '100%' ? 'border-slate-900 bg-sky-200 toy-shadow-sm font-black' : 'border-slate-200 font-bold hover:bg-slate-50'"
|
||||
class="p-3 rounded-2xl border-2 text-center transition cursor-pointer"
|
||||
:class="selectedScale === '100%' ? 'border-rose-400 bg-rose-50 ring-2 ring-rose-300 font-black text-slate-900' : 'border-slate-200 font-bold hover:bg-slate-50'"
|
||||
class="p-2.5 rounded-xl border text-center transition cursor-pointer"
|
||||
>
|
||||
<span>100% (Normaal)</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
@click="selectedScale = '150%'"
|
||||
:class="selectedScale === '150%' ? 'border-slate-900 bg-sky-200 toy-shadow-sm font-black' : 'border-slate-200 font-bold hover:bg-slate-50'"
|
||||
class="p-3 rounded-2xl border-2 text-center transition cursor-pointer"
|
||||
:class="selectedScale === '150%' ? 'border-rose-400 bg-rose-50 ring-2 ring-rose-300 font-black text-slate-900' : 'border-slate-200 font-bold hover:bg-slate-50'"
|
||||
class="p-2.5 rounded-xl border text-center transition cursor-pointer"
|
||||
>
|
||||
<span>150% (+45%)</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
@click="selectedScale = '200%'"
|
||||
:class="selectedScale === '200%' ? 'border-slate-900 bg-sky-200 toy-shadow-sm font-black' : 'border-slate-200 font-bold hover:bg-slate-50'"
|
||||
class="p-3 rounded-2xl border-2 text-center transition cursor-pointer"
|
||||
:class="selectedScale === '200%' ? 'border-rose-400 bg-rose-50 ring-2 ring-rose-300 font-black text-slate-900' : 'border-slate-200 font-bold hover:bg-slate-50'"
|
||||
class="p-2.5 rounded-xl border text-center transition cursor-pointer"
|
||||
>
|
||||
<span>200% (+95%)</span>
|
||||
</button>
|
||||
@@ -278,32 +269,26 @@
|
||||
</div>
|
||||
|
||||
<!-- Aantal en Toevoegen Knop -->
|
||||
<div class="pt-4 border-t-2 border-slate-200 space-y-4">
|
||||
<div class="flex items-center space-x-3">
|
||||
<!-- Chunky Toy Stepper -->
|
||||
<div class="flex items-center border-2 border-slate-900 rounded-2xl bg-[#FFFDF7] toy-shadow-sm overflow-hidden">
|
||||
<button type="button" @click="if (quantity > 1) quantity--" class="px-4 py-3 hover:bg-amber-100 transition text-slate-900 font-black cursor-pointer text-sm">-</button>
|
||||
<span class="px-4 py-3 font-heading font-black text-sm text-slate-900" x-text="quantity"></span>
|
||||
<button type="button" @click="if (quantity < 50) quantity++" class="px-4 py-3 hover:bg-amber-100 transition text-slate-900 font-black cursor-pointer text-sm">+</button>
|
||||
<div class="pt-3 border-t border-slate-100 space-y-3">
|
||||
<div class="flex items-center space-x-2.5">
|
||||
<!-- Stepper -->
|
||||
<div class="flex items-center border border-slate-200 rounded-xl bg-slate-50 overflow-hidden">
|
||||
<button type="button" @click="if (quantity > 1) quantity--" class="px-3 py-2.5 hover:bg-slate-200 transition text-slate-700 font-black cursor-pointer text-sm">-</button>
|
||||
<span class="px-3.5 py-2.5 font-heading font-black text-xs text-slate-900" x-text="quantity"></span>
|
||||
<button type="button" @click="if (quantity < 50) quantity++" class="px-3 py-2.5 hover:bg-slate-200 transition text-slate-700 font-black cursor-pointer text-sm">+</button>
|
||||
</div>
|
||||
|
||||
<!-- Chunky Add to Cart CTA -->
|
||||
<button type="submit" class="toy-btn flex-1 py-4 px-6 rounded-2xl bg-amber-400 hover:bg-amber-300 border-2 border-slate-900 toy-shadow text-slate-950 font-black text-sm transition flex items-center justify-center space-x-2 cursor-pointer">
|
||||
<!-- Knop Desktop -->
|
||||
<button type="submit" class="playful-btn flex-1 py-3 px-5 rounded-2xl bg-gradient-to-r from-amber-400 to-rose-400 hover:from-amber-500 hover:to-rose-500 text-slate-950 font-black text-xs sm:text-sm transition flex items-center justify-center space-x-1.5 shadow-md shadow-rose-500/20 cursor-pointer">
|
||||
<span>🛒</span>
|
||||
<span>In Winkelwagen • € <span x-text="calculatedPrice"></span></span>
|
||||
<span>In Winkelmandje • € <span x-text="calculatedPrice"></span></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-center space-x-4 text-xs font-bold text-slate-600 pt-1">
|
||||
<span class="flex items-center space-x-1">
|
||||
<span>🚚</span>
|
||||
<span>Gratis verzending vanaf € 50,-</span>
|
||||
</span>
|
||||
<div class="flex items-center justify-center space-x-3 text-[11px] text-slate-500 font-bold pt-1">
|
||||
<span>🚚 Gratis verzending vanaf €50</span>
|
||||
<span>•</span>
|
||||
<span class="flex items-center space-x-1">
|
||||
<span>📦</span>
|
||||
<span>PostNL Track & Trace</span>
|
||||
</span>
|
||||
<span>📦 PostNL Track & Trace</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user