// automatically change the number of columns based
// on this min-width setting...
&.grid-cols-auto
- grid-template-columns: repeat(auto-fit, minmax(270px, 1fr))
+ grid-template-columns: repeat(auto-fill, minmax(270px, 1fr))
@include('cubist::body.begin')
@php
- //#### Generate temporary cart data
- $cart_items = [];
- if(config('features.quote')){
- for ($i = 1; $i <= 6; $i++) {
- $cart_items[$i] = [
- 'id' => $i,
- 'quantity' => rand(1, 15),
- 'name' => 'Modèle '. rand(1000, 1500),
- 'category' => 'Capteur de force',
- 'image' => '/storage/products/'. rand(1,6) .'.png',
- ];
+ if (config('features.quote')) {
+ //#### Generate temporary cart data
+ $cart_items = [];
+ for ($i = 1; $i <= 6; $i++) {
+ $cart_items[$i] = [
+ 'id' => $i,
+ 'quantity' => rand(1, 15),
+ 'name' => 'Modèle '. rand(1000, 1500),
+ 'category' => 'Capteur de force',
+ 'image' => '/storage/products/'. rand(1,6) .'.png',
+ ];
+ }
+ } else {
+ $cart_items = new stdClass();
}
-}
@endphp
<div id="app" class="flex flex-col min-h-screen" data-cart-items='@json($cart_items)'>
@extends('layouts/app')
@section('content')
- @intro()
+ @intro(['padding' => 'pb-1v'])
<full-width class="bg-grey-100" padding="pt-1v pb-2v">
<content class="flex relative items-start">
-@if(config('features.quote'))
- <span class="cart-header-title">My Selection</span>
- <span class="cart-header-icon" v-html="cartItemCount"></span>
-@endif
-
+<span class="cart-header-title">My Selection</span>
+<span class="cart-header-icon" v-html="cartItemCount"></span>
<portal-target name="nav-search-toggle" slim></portal-target>
</div>
- <div class="cart-header text-right flex items-center cursor-pointer hover:text-blue" @click="openCart">
- @include('partials.cart')
- </div>
-
- <div class="cart-header-popout">
- <div class="cart-header-popout-title flex justify-between items-center px-1v py-1v">
- <span>
- {{ __('Ma sélection') }}
- </span>
-
- <a href="#" class="close-cart-popout text-white hover:text-blue" @click.prevent="closeCart">
- @svg('icon-close-thin')
- </a>
+ @if (config('features.quote'))
+ <div class="cart-header text-right flex items-center cursor-pointer hover:text-blue" @click="openCart">
+ @include('partials.cart')
</div>
- <div class="cart-header-popout-content text-navy font-body p-1v pb-0">
- <cart :items='items' @update-item-quantity="updateItemQuantity"></cart>
- </div>
- <div class="cart-header-popout-footer bg-grey-100 p-1v">
- <link-button class="block text-center">Obtenir un devis</link-button>
+
+ <div class="cart-header-popout">
+ <div class="cart-header-popout-title flex justify-between items-center px-1v py-1v">
+ <span>
+ {{ __('Ma sélection') }}
+ </span>
+
+ <a href="#" class="close-cart-popout text-white hover:text-blue" @click.prevent="closeCart">
+ @svg('icon-close-thin')
+ </a>
+ </div>
+ <div class="cart-header-popout-content text-navy font-body p-1v pb-0">
+ <cart :items='items' @update-item-quantity="updateItemQuantity"></cart>
+ </div>
+ <div class="cart-header-popout-footer bg-grey-100 p-1v">
+ <link-button class="block text-center">Obtenir un devis</link-button>
+ </div>
</div>
- </div>
+ @endif
</div>