pages gammes
This commit is contained in:
parent
1e3462a68a
commit
bc5bea467a
4 changed files with 356 additions and 7 deletions
144
public/canard/css/app.css
vendored
144
public/canard/css/app.css
vendored
|
|
@ -3937,6 +3937,150 @@ blockquote :last-child, li :last-child, p :last-child {
|
|||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* main products START */
|
||||
.ranges__row {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
margin: 0 -12px -15px;
|
||||
}
|
||||
|
||||
.ranges__row-block {
|
||||
box-sizing: border-box;
|
||||
flex: 25%;
|
||||
padding: 0 12px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.ranges__row-block_wide {
|
||||
flex: 35%;
|
||||
}
|
||||
|
||||
.ranges__item {
|
||||
box-sizing: border-box;
|
||||
width: 216px;
|
||||
width: 100%;
|
||||
height: 346px;
|
||||
padding: 20px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.range__title {
|
||||
display: block;
|
||||
text-align: center;
|
||||
height: 50px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.range__title:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.range__image {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 180px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.range__image img {
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.range__bottom {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.range__price {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.range .range__btn {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.ranges__image {
|
||||
/*width: 417px;*/
|
||||
/*min-height: 346px;*/
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ranges__image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
-o-object-fit: cover;
|
||||
object-fit: cover;
|
||||
-o-object-position: center center;
|
||||
object-position: center center;
|
||||
}
|
||||
|
||||
.ranges-mobile__slider {
|
||||
position: relative;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.ranges-mobile__slider::before {
|
||||
content: "";
|
||||
display: block;
|
||||
width: 15%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 2;
|
||||
background: linear-gradient(to right, rgba(244, 240, 233, 0) 0%, #f4f0e9 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#00f4f0e9", endColorstr="#f4f0e9",GradientType=1 );
|
||||
}
|
||||
|
||||
.ranges-mobile__btn {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.ranges-mobile__nav .swiper-nav__arrow {
|
||||
position: absolute;
|
||||
bottom: 160px;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.ranges-mobile__nav .swiper-nav__arrow.disabled {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.ranges-mobile__nav .swiper-nav__arrow_prev {
|
||||
left: -35px;
|
||||
}
|
||||
|
||||
.ranges-mobile__nav .swiper-nav__arrow_next {
|
||||
right: -35px;
|
||||
}
|
||||
|
||||
.ranges-mobile__slider .swiper-slide {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* main products END */
|
||||
@media screen and (max-width: 1240px) {
|
||||
.wrapper {
|
||||
width: 1024px;
|
||||
}
|
||||
|
||||
.ranges__row-block {
|
||||
flex: 25%;
|
||||
}
|
||||
|
||||
.ranges__row-block_wide {
|
||||
flex: 50%;
|
||||
}
|
||||
|
||||
.product__ranges .ranges__row-block_wide {
|
||||
order: 99;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 1365px) {
|
||||
.wrapper {
|
||||
width: 1240px;
|
||||
|
|
|
|||
|
|
@ -4,12 +4,59 @@
|
|||
|
||||
@section('content')
|
||||
|
||||
<div class="ranges section">
|
||||
<div class="ranges__wrapper wrapper">
|
||||
<div class="ranges__wrapper-inner wrapper-inner">
|
||||
<div class="top-block">
|
||||
<h2 class="top-block__title title mb0">{{ __('Des saveurs pour toutes vos envies...') }}</h2>
|
||||
@if (Route::current()->getName() != 'ranges')
|
||||
<a class="btn btn_blue desktop" href="{{ route('ranges') }}">{{ __('Voir toutes les gammes') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="ranges section section_dark desktop">
|
||||
<div class="ranges__wrapper wrapper">
|
||||
<div class="ranges__wrapper-inner wrapper-inner">
|
||||
<div class="ranges__list">
|
||||
<div class="ranges__row">
|
||||
@foreach ($ranges as $range)
|
||||
<div class="ranges__row-block">
|
||||
<div class="ranges__item ranges__product range">
|
||||
<div class="range__title title title_xs">{{$range->name}}</div>
|
||||
<div class="range__image">
|
||||
@if(isset($range->picture))
|
||||
<img src="{{ asset('/images/gammes/' . $range->picture ) }}">
|
||||
@else
|
||||
<img src="{{ asset(config('app.theme').'/img/pl_nophoto.png')}}">
|
||||
@endif
|
||||
</div>
|
||||
<a class="range__btn btn btn_blue" href="{{ route('range', ['rangeSlug' => $range->slug]) }}">{{ __('Voir la gamme') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
{{-- complément au multiple de 4 car on flex à 25% --}}
|
||||
@for ($i=0; $i < (4-(count($ranges) % 4));$i++)
|
||||
<div class="ranges__row-block"></div>
|
||||
@endfor
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{--
|
||||
<div class="rp-slider__nav swiper-nav">
|
||||
<div class="swiper-nav__arrow swiper-nav__arrow_prev"></div>
|
||||
<div class="swiper-nav__arrow swiper-nav__arrow_next"></div>
|
||||
</div>
|
||||
--}}
|
||||
</div>
|
||||
|
||||
<div class="btn-mobile-wrapper mobile">
|
||||
@if (Route::current()->getName() != 'ranges')
|
||||
<a class="btn btn_blue" href="{{ route('ranges') }}">{{ __('Voir toutes les gammes') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('partials.ranges-slider')
|
||||
{{-- <h1>Gammes de produits</h1>
|
||||
<ul>
|
||||
@foreach ($ranges as $range)
|
||||
<li><a href="{{ route('range', ['rangeSlug' => $range->slug]) }}">Gamme de produits - {{$range->name}}</a></li>
|
||||
@endforeach
|
||||
</ul> --}}
|
||||
@endsection
|
||||
|
|
|
|||
1
resources/views/front/canard/sass/app.scss
vendored
1
resources/views/front/canard/sass/app.scss
vendored
|
|
@ -7,6 +7,7 @@
|
|||
@import 'main';
|
||||
@import 'cart';
|
||||
@import 'tunnel';
|
||||
@import 'ranges';
|
||||
@import 'media';
|
||||
|
||||
|
||||
|
|
|
|||
157
resources/views/front/canard/sass/ranges.scss
vendored
Normal file
157
resources/views/front/canard/sass/ranges.scss
vendored
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
/* main products START */
|
||||
|
||||
.ranges__row {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
margin: 0 -12px -15px;
|
||||
}
|
||||
|
||||
.ranges__row-block {
|
||||
box-sizing: border-box;
|
||||
flex: 25%;
|
||||
padding: 0 12px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
.ranges__row-block_wide {
|
||||
flex: 35%;
|
||||
}
|
||||
|
||||
.ranges__item {
|
||||
box-sizing: border-box;
|
||||
width: 216px;
|
||||
width: 100%;
|
||||
height: 346px;
|
||||
padding: 20px;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.range__title {
|
||||
display: block;
|
||||
text-align: center;
|
||||
height: 50px;
|
||||
overflow: hidden;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.range__title:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.range__image {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 180px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.range__image img {
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.range__bottom {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.range__price {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.range .range__btn {
|
||||
margin: auto;
|
||||
// flex: 0 0 auto;
|
||||
// padding: 0;
|
||||
// width: 52px;
|
||||
// height: 48px;
|
||||
// background-image: url(../img/icon_cart-white.png);
|
||||
// background-repeat: no-repeat;
|
||||
// background-position: center center;
|
||||
}
|
||||
|
||||
.ranges__image {
|
||||
/*width: 417px;*/
|
||||
/*min-height: 346px;*/
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ranges__image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center center;
|
||||
}
|
||||
|
||||
|
||||
.ranges-mobile__slider {
|
||||
position: relative;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.ranges-mobile__slider::before {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 15%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 2;
|
||||
|
||||
background: -moz-linear-gradient(left, rgba(244,240,233,0) 0%, rgba(244,240,233,1) 100%);
|
||||
background: -webkit-linear-gradient(left, rgba(244,240,233,0) 0%,rgba(244,240,233,1) 100%);
|
||||
background: linear-gradient(to right, rgba(244,240,233,0) 0%,rgba(244,240,233,1) 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00f4f0e9', endColorstr='#f4f0e9',GradientType=1 );
|
||||
|
||||
}
|
||||
|
||||
.ranges-mobile__btn {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.ranges-mobile__nav .swiper-nav__arrow {
|
||||
position: absolute;
|
||||
bottom: 160px;
|
||||
z-index: 3
|
||||
}
|
||||
|
||||
.ranges-mobile__nav .swiper-nav__arrow.disabled {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.ranges-mobile__nav .swiper-nav__arrow_prev {
|
||||
left: -35px;
|
||||
}
|
||||
|
||||
.ranges-mobile__nav .swiper-nav__arrow_next {
|
||||
right: -35px;
|
||||
}
|
||||
|
||||
.ranges-mobile__slider .swiper-slide {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* main products END */
|
||||
|
||||
|
||||
@media screen and (max-width: 1240px) {
|
||||
.wrapper {
|
||||
width: 1024px;
|
||||
}
|
||||
|
||||
.ranges__row-block {
|
||||
flex: 25%;
|
||||
}
|
||||
|
||||
.ranges__row-block_wide {
|
||||
flex: 50%;
|
||||
}
|
||||
|
||||
.product__ranges .ranges__row-block_wide {
|
||||
order: 99;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue