FEATURE_SEARCH=true
FEATURE_I18N=false
FEATURE_TEAM=false
-FEATURE_CLIENTS=false
-FEATURE_PARTNERS=false
+FEATURE_CLIENTS=true
+FEATURE_PARTNERS=true
FEATURE_SEARCH=true
FEATURE_I18N=false
FEATURE_TEAM=false
-FEATURE_CLIENTS=false
-FEATURE_PARTNERS=false
+FEATURE_CLIENTS=true
+FEATURE_PARTNERS=true
+++ /dev/null
-require('./carrousel');
--- /dev/null
+document.addEventListener('DOMContentLoaded', function () {
+ window.wall = new Logowall(document.getElementsByClassName('.logowall')[0]);
+});
+
+function Logowall(element) {
+ this.element = element;
+ this.items = element.children;
+ this.nbItems = this.items.length;
+ this.nbLines = 2;
+ this.perLine = this.nbItems / this.nbLines;
+ this.init();
+}
+
+
+logowall.prototype = {
+ init: function () {
+ this.distributeLines();
+ this.initEvents();
+ },
+
+ distributeLines: function () {
+
+ },
+
+ initEvents: function () {
+ var $this = this;
+
+ window.addEventListener('resize', function () {
+ $this.resize();
+ });
+ window.addEventListener('orientationchange', function () {
+ $this.resize();
+ });
+
+ $this.resize();
+ },
+
+ resize: function () {
+
+ },
+};
--- /dev/null
+.logowall
+ max-width 100%
+ overflow hidden
+
+ .line
+ display block
+ white-space nowrap
+
+ > div
+ display: inline-block;
+ width 25%
+ padding: 0 20px 20px 0
+
+ @media (max-width 1024px)
+ width 33.333%
+
+ @media (max-width 640px)
+ width 50%
+
+ > *
+ background: #fff;
@extends('layouts/app')
+@push('scripts')
+ <script src="{{ mix('/js/logowall.js') }}"></script>
+@endpush
+
+
@section('content')
@intro(['padding' => 'pb-4v'])
@endsection
@push('scripts')
- <script src="{{ mix('/js/home.js') }}"></script>
+ <script src="{{ mix('/js/carrousel.js') }}"></script>
@endpush
@section('content')
{{-- Our Clients --}}
<full-width class="bg-grey-100">
<content>
- <text-block title="Nos clients"/>
+ <text-block :title="__('Nos clients')"/>
- <grid cols="4" class="sm:grid-cols-2">
- @for ($i = 1; $i <= 8; $i++)
- <div class="bg-white hover:bg-grey-200 cursor-pointer" style="padding-bottom: 58%"></div>
- @endfor
- </grid>
+ @include("partials.logowall",['logos'=>$page->get('logos')])
</content>
</full-width>
@endif
--- /dev/null
+@php
+ if(count($logos)%2==1){
+ array_pop($logos);
+ }
+@endphp
+
+@foreach ($logos as $i=>$logo)
+ @php
+ $stack='line'.($i%2);
+ @endphp
+
+ @push($stack)
+ <div>
+ @if($logo['url'])
+ <a href="{{$logo['url']}}" target="_blank">
+ @endif
+ <img src="{{$page->getImageURLByCollection($logo['logo'])}}" alt="{{$logo['title']}}"/>
+ @if($logo['url'])
+ </a>
+ @endif
+ </div>
+ @endpush
+@endforeach
+
+<div class="logowall">
+ <div class="line">@stack('line0')</div>
+ <div class="line">@stack('line1')</div>
+</div>
mix.js('resources/js/app.js', 'public/js')
.js('resources/js/vendor/**/**/app.js', 'public/js/vendor.js')
- .js('resources/js/home.js', 'public/js')
+ .js('resources/js/carrousel.js', 'public/js')
+ .js('resources/js/logowall.js', 'public/js')
.js('resources/js/product-details.js','public/js')
.stylus('resources/styles/app.styl', 'public/css', {
use: [