diff --git a/app/Models/Section.php b/app/Models/Section.php index ad8b2fe..e5dad78 100644 --- a/app/Models/Section.php +++ b/app/Models/Section.php @@ -123,7 +123,7 @@ class Section extends Model } /** - * Empty bloc for link associated to the picture. + * Empty bloc for link. * * @param array $data * @param string $url @@ -131,13 +131,13 @@ class Section extends Model * @param string $name * @return array */ - public static function emptyPictureLinkBloc( + public static function emptyLinkBloc( array $data, string $url = '', bool $required = false, string $name = "URL à ouvrir", ) { - $data["bloc_image_link"] = [ + $data["bloc_link"] = [ 'label' => $name, 'inputType' => InputType::url->value, 'value' => $url, diff --git a/database/seeders/Development/SectionSeeder.php b/database/seeders/Development/SectionSeeder.php index 423e186..c41df6e 100644 --- a/database/seeders/Development/SectionSeeder.php +++ b/database/seeders/Development/SectionSeeder.php @@ -388,6 +388,7 @@ class SectionSeeder extends Seeder $data, $section->emptyWysiwygBloc([], 'numéro 2', clean(\fake()->randomHtml()), CkEditorConfigName::advanced) ); + $data = array_merge($data, $section->emptyLinkBloc([], 'https://www.google.com', true)); return $data; } diff --git a/resources/assets/images/others/logo_nature_eleveurs.png b/resources/assets/images/others/logo_nature_eleveurs.png new file mode 100644 index 0000000..cb1dc16 Binary files /dev/null and b/resources/assets/images/others/logo_nature_eleveurs.png differ diff --git a/resources/ts/fo/base/common.ts b/resources/ts/fo/base/common.ts index 390134d..2c4b02d 100644 --- a/resources/ts/fo/base/common.ts +++ b/resources/ts/fo/base/common.ts @@ -1,5 +1,5 @@ import Swiper from "swiper"; -import { Keyboard, Navigation, Pagination } from "swiper/modules"; +import { Autoplay, Keyboard, Navigation, Pagination } from "swiper/modules"; document.addEventListener("DOMContentLoaded", function () { // Define a multiplier according to the window size. @@ -45,10 +45,14 @@ document.addEventListener("DOMContentLoaded", function () { } }, "swiper-teams": { - modules: [Navigation, Pagination], + modules: [Autoplay, Navigation, Pagination], grabCursor: true, slidesPerView: 1, loop: true, + autoplay: { + delay: 3000, + disableOnInteraction: false, + }, pagination: { el: ".swiper-teams-pagination", clickable: true, @@ -232,6 +236,7 @@ document.addEventListener("DOMContentLoaded", function () { modules: [Navigation, Keyboard], grabCursor: true, slidesPerView: 1.1, + spaceBetween: 10, navigation: { nextEl: ".swiper-commitments-testimonials-button-next", prevEl: ".swiper-commitments-testimonials-button-prev", diff --git a/resources/views/fo/pages/commitments.blade.php b/resources/views/fo/pages/commitments.blade.php index f8e7dd3..d28d75e 100644 --- a/resources/views/fo/pages/commitments.blade.php +++ b/resources/views/fo/pages/commitments.blade.php @@ -11,20 +11,20 @@ 'title' => __('Paysage d\'un champs de blé au soleil couchant avec une lisière en fond de tableau'), 'alt' => __('Image de fond'), 'displayArrow' => true, - 'buttonLink' => '#breeding', + 'buttonLink' => '#introduction', ]) @endsection @section('content')
{{-- AMBITION --}} -
+

{{ $ambitionSection->h2_title }}

@if ($ambitionSection->text) -
+
{!! clean($ambitionSection->text) !!}
@endif @@ -70,7 +70,7 @@

{{ $breedingSection->h2_title }}

@if ($breedingSection->text) -
+
{!! clean($breedingSection->text) !!}
@endif @@ -86,10 +86,11 @@ 'position' => 'right', ])
-
+
{!! clean($breedingSection->data['bloc_images_content']['value']) !!} @if ($breedingSection->data['bloc_button_on_temoigne_engagements']['value']) - {{ __('On témoigne') }} + {{ __('On témoigne') }} @endif
@@ -105,10 +106,16 @@
- {{-- FIXME: le document synthèse BO prévoyait un WYSIWYG, le doc de fonctionnalité et la créa demandent des images avec légendes ainsi qu'une vidéo ... Ils seraient donc à rentrer dans le WYSIWYG --}} -
- {{-- {!! clean($breedingSection->data['bloc_images_content']['value']) !!} --}} -

ceci est un paragraphe de remplacement

+
+
+

{{ __('Faîtes vous votre avis vous-même') }}

+
+
+ + {{ __('Logo Nature d\'éleveurs') }} + +
@@ -129,7 +136,7 @@
@if ($lifeSection->text) -
+
{!! clean($lifeSection->text) !!}
@endif @@ -161,10 +168,9 @@
@endif - {{-- FIXME: partie remerciement à compléter --}}
-
+
{!! clean($lifeSection->data['bloc_numero2_content']['value']) !!}
@@ -172,7 +178,7 @@ @if ($lifeSection->data['bloc_button_on_bouge']['value']) @@ -218,7 +224,8 @@ @if ($earthSection->data['bloc_button_on_temoigne_engagements']['value']) @endif @@ -249,7 +256,8 @@
{{ __('En savoir plus sur BREEAM') }} + href="{{ $earthSection->data['bloc_link']['value'] }}" + target="_blank">{{ __('En savoir plus sur BREEAM') }}
@@ -257,7 +265,6 @@
- {{-- FIXME: sliders (image/text) à compléter ici --}}
@@ -276,7 +283,7 @@
@if ($feedSection->text) -
+
{!! clean($feedSection->text) !!}
@endif @@ -300,34 +307,35 @@ ])
- {{-- @if ($feedSection->data['bloc_button_on_temoigne_engagements']['value']) --}} -
-
- {{ __('On témoigne') }} + @if ($feedSection->data['bloc_button_on_temoigne_engagements']['value']) + -
- {{-- @endif --}} + @endif
-
+
{!! clean($feedSection->data['bloc_numero2_content']['value']) !!}
-
+
{!! clean($feedSection->data['bloc_numero3_content']['value']) !!}
- {{-- @if ($feedSection->data['bloc_button_on_produit']['value']) --}} -
-
- {{ __('On produit') }} + @if ($feedSection->data['bloc_button_on_produit']['value']) + -
- {{-- @endif --}} + @endif
{{-- TESTIMONIALS --}} @@ -352,7 +360,6 @@
- {{-- FIXME: Dans le doc fonctionnalité, il est dit que la coulur de fond change en fonction du type de témoignage. Dans la créa, c'est seulement la couleur du job qui change. Qu'est-ce qu'on fait ? --}} @foreach ($testimonialModels as $testimonial)
@include('fo.partials.testimonials.card', [ @@ -394,8 +401,7 @@ {{ $testimonialsSection->data['bloc_string_titre_h3_de_la_section_numero2']['value'] }} @if ($testimonialsSection->text) -
- {{-- FIXME: un lien est prévu dans la créa et pas dans le bo, il peut être inséré via le WYSIWYG --}} +
{!! clean($testimonialsSection->text) !!}
@endif