.product-gallery
&-main
- @apply bg-white relative border-gray-100 border-4 pb-100p mb-4
+ @apply bg-white relative border-gray-100 border-4 pb-100p mb-4 cursor-zoom-in
&-main-image
@apply absolute bg-contain bg-center bg-no-repeat
left: 15%
&-thumb
- @apply w-full bg-center bg-cover pb-100p border-4 border-grey-100 cursor-pointer
+ @apply w-full bg-center bg-cover border-4 border-grey-100 cursor-zoom-in
&-current
@apply border-grey-300
<div class="flex mb-2v sm:block">
{{-- Product images --}}
- <product-gallery
- :thumbnails='@json($product->getImageURLList('images', 'thumb', [$product->getEntity()->image_fallback]))'
- :images='@json($product->getImageURLList('images', 'large', [$product->getEntity()->image_fallback]))'
- class="flex-grow"
- style="max-width: 348px">
- </product-gallery>
-
+ @include('partials.product-gallery')
{{-- Product text --}}
<text-block class="product-detail-text sm:mt-6">
class="flex items-center text-grey-dark hover:text-primary">
<img class="mr-4 mb-2"
src="{{asset('images/product-details/icon-'.$document['type'].'.svg')}}"
- alt="{{__('Icône %s',$document['type'])}}">
+ alt="{{__('Icône %s',[$document['type']])}}">
{{ $document['label'] }}
</a>
</li>
--- /dev/null
+@php
+ $images=$product->getImagesData('images');
+@endphp
+
+<div class="product-gallery flex-grow" style="max-width: 348px;">
+ <div class="product-gallery-main">
+ <div class="product-gallery-main-image">
+ <img src="{{$product->getEntity()->image}}" alt="{{$product->getEntity()->image_alt}}" class="bgimg"/>
+ </div>
+ </div>
+ <div class="grid grid-cols-3 grid-gap-sm">
+ @foreach($images as $image)
+ <div class="product-gallery-thumb">
+ <img src="{{$image['url']}}" alt="{{$image['alt']}}" class="bgimg cover"/>
+ </div>
+ @endforeach
+ </div>
+ <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls " style="display: none;">
+ <div class="slides" style="width: 7680px;"></div>
+ <h3 class="title"></h3>
+ <p class="description"></p> <a class="prev">
+ <svg xmlns="http://www.w3.org/2000/svg" width="38.414" height="26" viewBox="0 0 38.414 26">
+ <g fill="none" stroke="#fff" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2">
+ <path d="M13.414 25l-12-12 12-12"></path>
+ <path d="M1.413 13h36.001"></path>
+ </g>
+ </svg>
+ </a> <a class="next">
+ <svg xmlns="http://www.w3.org/2000/svg" width="38.414" height="26" viewBox="0 0 38.414 26">
+ <g fill="none" stroke="#fff" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2">
+ <path d="M25 1l12 12-12 12"></path>
+ <path d="M37.001 13H1"></path>
+ </g>
+ </svg>
+ </a> <a class="close">×</a>
+ <ol class="indicator"></ol> <!----></div>
+</div>