]> _ Git - pmi.git/commitdiff
wip #2882 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Jul 2019 17:16:09 +0000 (19:16 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Jul 2019 17:16:09 +0000 (19:16 +0200)
.env.production
.env.staging
config/features.php
resources/views/pages/home.blade.php

index 2c23c5b2d893ba4de6e4ed2b2ec1dab486e7e0b5..7d376538d38e555b6e78c7cd1643bf9812b7f052 100644 (file)
@@ -47,3 +47,6 @@ FEATURE_QUOTE=false
 FEATURE_NEWS=false
 FEATURE_SEARCH=false
 FEATURE_I18N=false
+FEATURE_TEAM=false
+FEATURE_CLIENTS=false
+FEATURE_PARTNERS=false
index 04aff2bd726f7c25b2d691a078ec8ddb15d13c94..f79a4b59a20f5f3e3103d1405251e532fba4173d 100644 (file)
@@ -46,3 +46,6 @@ FEATURE_QUOTE=false
 FEATURE_NEWS=false
 FEATURE_SEARCH=false
 FEATURE_I18N=false
+FEATURE_TEAM=false
+FEATURE_CLIENTS=false
+FEATURE_PARTNERS=false
index 8fe00be18e46e1d3adfa50daa9bf1710f1fa7a54..397f405a877b2ef4c8c9adc689c55b81d5a85d3a 100644 (file)
@@ -4,4 +4,7 @@ return [
     'quote' => env('FEATURE_QUOTE', true),
     'news' => env('FEATURE_NEWS', true),
     'i18n' => env('FEATURE_I18N', true),
+    'team' => env('FEATURE_TEAM', true),
+    'partners' => env('FEATURE_PARTNERS', true),
+    'clients' => env('FEATURE_CLIENTS', true),
 ];
index dd7b5cd983768eaf8d0cc3f4c27377e9b84134ef..03e4431b0267861fcf24309c98afd3b8158a92be 100644 (file)
@@ -16,7 +16,9 @@
                     <text-block title="Wheel Force Transducer" title-class="h1 text-inherit">
 
                         <p>
-                            Wheel Force Transducers (WFT) are used for measuring all wheel forces and moments. Field and laboratory test of passenger cars, light duty trucks, heavy duty trucks, vans, SUVs, class 8 trucks, heavy duty construction and farm equipment.
+                            Wheel Force Transducers (WFT) are used for measuring all wheel forces and moments. Field and
+                            laboratory test of passenger cars, light duty trucks, heavy duty trucks, vans, SUVs, class 8
+                            trucks, heavy duty construction and farm equipment.
                         </p>
 
                         <p>
@@ -28,7 +30,7 @@
                 </column>
 
                 <column class="overlap-bottom md:-mr-2v sm:-ml-2v sm:mb-0">
-                    <flexible-image src="storage/uploads/images/home-car.jpg" />
+                    <flexible-image src="storage/uploads/images/home-car.jpg"/>
                 </column>
 
             </columns>
@@ -42,7 +44,7 @@
     <full-width class="bg-grey-100">
         <content>
 
-            <text-block class="mb-2v" title="Nos Produits" />
+            <text-block class="mb-2v" title="Nos Produits"/>
 
             <columns>
                 <column>
     {{-- Solutions / Applications --}}
     <full-width class="bg-navy text-white antialiased">
         <content>
-            <text-block title-class="h1 text-inherit" title="Solutions / Applications" />
+            <text-block title-class="h1 text-inherit" title="Solutions / Applications"/>
 
             <grid cols="3" class="sm:grid-cols-2 xs:grid-cols-1">
                 @foreach ($page->get('solutions', []) as $solution)
                     <a class="solutions-link" href="{{ $nav->getHrefByID($solution['page']) }}">
-                        <span class="solutions-link-bg" style="background-image:url({{ $page->getImageURLbyCollection($solution['image']) }})"></span>
+                        <span class="solutions-link-bg"
+                              style="background-image:url({{ $page->getImageURLbyCollection($solution['image']) }})"></span>
                         <span class="solutions-link-text">{{ $solution['title'] }}</span>
                     </a>
                 @endforeach
         {{-- News --}}
         <full-width>
             <content>
-                <text-block title="Actualités" />
+                <text-block title="Actualités"/>
 
                 <grid cols="4" class="md:grid-cols-2 xs:grid-cols-1 xs:grid-gap-20v">
                     @foreach ($news as $newsItem)
 
                         <div>
                             {{--Todo: handle missing images + get correct image size--}}
-                            <img class="mb-4" src="{{ $newsItem->getFirstMediaUrl($newsItem->image, 'thumb') }}" alt="{{ $newsItem->title }}">
+                            <img class="mb-4" src="{{ $newsItem->getFirstMediaUrl($newsItem->image, 'thumb') }}"
+                                 alt="{{ $newsItem->title }}">
                             <h4 class="font-display">{{ $newsItem->title }}</h4>
                             <p>{{ $newsItem['chapo'] }}</p>
 
         </full-width>
     @endif
 
-    {{-- Our Clients --}}
-    <full-width class="bg-grey-100">
-        <content>
-            <text-block title="Nos clients" />
+    @if(config('features.clients'))
+        {{-- Our Clients --}}
+        <full-width class="bg-grey-100">
+            <content>
+                <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>
-        </content>
-    </full-width>
+                <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>
+            </content>
+        </full-width>
+    @endif
 
 @endsection