diff --git a/resources/sass/fo/pages/commitments.scss b/resources/sass/fo/pages/commitments.scss old mode 100755 new mode 100644 index df36b9f3..8b713172 --- a/resources/sass/fo/pages/commitments.scss +++ b/resources/sass/fo/pages/commitments.scss @@ -97,7 +97,7 @@ } .row { - width: 390px; + width: 100%; @include media-breakpoint-up(md) { width: 500px; @@ -429,13 +429,13 @@ .pictogram { top: -3rem; left: -2rem; - width: 8rem; + width: 6rem; &-reversed { top: -3rem; right: -2rem; left: auto; - width: 8rem; + width: 6rem; } } diff --git a/resources/ts/fo/base/common.ts b/resources/ts/fo/base/common.ts index 21926f46..6d1a69d9 100644 --- a/resources/ts/fo/base/common.ts +++ b/resources/ts/fo/base/common.ts @@ -284,7 +284,7 @@ document.addEventListener("DOMContentLoaded", function () { "swiper-cards-commitments": { modules: [Navigation], grabCursor: true, - slidesPerView: 1.3, + slidesPerView: 1, navigation: { nextEl: "#swiper-cards-commitments ~ .swiper-cards-commitments-button-next", prevEl: "#swiper-cards-commitments ~ .swiper-cards-commitments-button-prev", diff --git a/resources/views/fo/layouts/main-menu/menu-nodes/breedings.blade.php b/resources/views/fo/layouts/main-menu/menu-nodes/breedings.blade.php index fda8ced3..e8f1670c 100644 --- a/resources/views/fo/layouts/main-menu/menu-nodes/breedings.blade.php +++ b/resources/views/fo/layouts/main-menu/menu-nodes/breedings.blade.php @@ -29,9 +29,7 @@ ], [ 'name' => __('L\'élevage de volailles'), - 'link' => route( - 'fo.breeding.show', - $breedingPages->where('type', \App\Enums\StaticPageType::breedingPoultry)->first()), + 'link' => route('fo.breeding.show', 'slug'), ], [ 'name' => __('Le métier d\'élevage de volailles'), diff --git a/resources/views/fo/partials/breeding-card.blade.php b/resources/views/fo/partials/breeding-card.blade.php index 7d59e5df..00e6f9fe 100644 --- a/resources/views/fo/partials/breeding-card.blade.php +++ b/resources/views/fo/partials/breeding-card.blade.php @@ -9,7 +9,8 @@
- {{ $picture['title'] }} + {{ $picture['title'] }}
diff --git a/resources/views/fo/partials/commitments/complex-flex-items.blade.php b/resources/views/fo/partials/commitments/complex-flex-items.blade.php index 6c5f3a3c..82720be3 100644 --- a/resources/views/fo/partials/commitments/complex-flex-items.blade.php +++ b/resources/views/fo/partials/commitments/complex-flex-items.blade.php @@ -1,11 +1,11 @@ -
+
@if (isset($title) && isset($picto)) -
-
- {{ $picto_alt }} -
-

{{ $title }}

+
+
+ {{ $picto_alt }} +
+

{{ $title }}

@if (isset($subtitle))

{{ $subtitle }}

@endif @@ -14,15 +14,14 @@
@endif
-
-
+
+
@foreach ($collection as $item) -
+
- {{ $item->picto_alt }} + {{ $item->picto_alt }}