From df6f4ece2b9760d53b5bbd2817c928935fc40cdb Mon Sep 17 00:00:00 2001 From: Nicolas Demangeat Date: Fri, 27 Sep 2024 11:50:17 +0200 Subject: [PATCH] fix: :bug: display the good date for news + improve display header picture --- resources/sass/fo/pages/news.scss | 2 +- .../breeding/section/header-section.blade.php | 2 +- .../views/fo/layouts/header-banner.blade.php | 2 +- .../views/fo/pages/breeding/article.blade.php | 2 +- resources/views/fo/pages/news/show.blade.php | 69 +++++++++++-------- .../views/fo/pages/products/show.blade.php | 16 ++--- 6 files changed, 50 insertions(+), 43 deletions(-) diff --git a/resources/sass/fo/pages/news.scss b/resources/sass/fo/pages/news.scss index 2dede0af..3b7d7ab9 100644 --- a/resources/sass/fo/pages/news.scss +++ b/resources/sass/fo/pages/news.scss @@ -39,7 +39,7 @@ } @include media-breakpoint-up(xxl) { - right: 12vw; + right: 16vw; max-width: 45%; } diff --git a/resources/views/components/fo/breeding/section/header-section.blade.php b/resources/views/components/fo/breeding/section/header-section.blade.php index a804b138..67c40fee 100644 --- a/resources/views/components/fo/breeding/section/header-section.blade.php +++ b/resources/views/components/fo/breeding/section/header-section.blade.php @@ -17,7 +17,7 @@ {{ $badge->label }} @endif -
+
@if (isset($badge) && !empty($picto)) {{ $picto_alt }} diff --git a/resources/views/fo/layouts/header-banner.blade.php b/resources/views/fo/layouts/header-banner.blade.php index 7a9dae28..da50e36f 100644 --- a/resources/views/fo/layouts/header-banner.blade.php +++ b/resources/views/fo/layouts/header-banner.blade.php @@ -13,7 +13,7 @@ {{ $badge->label }}
@endif -
+
@if (isset($badge) && !empty($picto)) {{ $picto_alt }} diff --git a/resources/views/fo/pages/breeding/article.blade.php b/resources/views/fo/pages/breeding/article.blade.php index da4be709..cd9826e9 100644 --- a/resources/views/fo/pages/breeding/article.blade.php +++ b/resources/views/fo/pages/breeding/article.blade.php @@ -17,7 +17,7 @@
@include('modules.breadcrumbs.breadcrumb-body', ['brParam' => [$staticPageModel, $newsBreedingModel]])
-
+

{{ $newsBreedingModel->title }}

    diff --git a/resources/views/fo/pages/news/show.blade.php b/resources/views/fo/pages/news/show.blade.php index c86cb8be..bc60c7ec 100644 --- a/resources/views/fo/pages/news/show.blade.php +++ b/resources/views/fo/pages/news/show.blade.php @@ -10,45 +10,54 @@ {{-- HEADER --}}
    -
    -
    - @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $newsModel]) -

    {{ $newsModel->title }}

    -
    -
    -
      -
    • -

      {{ $newsModel->newsCategory->title }}

      -
    • -
    • -

      {{ str($newsModel->created_at->isoFormat('LL'))->ucFirst() }}

      -
    • -
    • - @include('fo.partials.button-share', [ - 'link' => route('fo.news.show', $newsModel->slug), - 'elementName' => __('news') - ]) -
    • -
    -
    -
    -
    - {{ $newsModel->picture_alt }} +
    +
    +
    + @include('modules.breadcrumbs.breadcrumb-body', ['brParam' => $newsModel]) +

    {{ $newsModel->title }}

    -
    -
    - {{ $newsModel->picture_alt }} +
    +
    +
      +
    • +

      {{ $newsModel->newsCategory->title }}

      +
    • +
    • +

      {{ str($newsModel->updated_at->isoFormat('LL'))->ucFirst() }}

      +
    • +
    • + @include('fo.partials.button-share', [ + 'link' => route('fo.news.show', $newsModel->slug), + 'elementName' => __('news') + ]) +
    • +
    +
    +
    +
    +
    +
    + {{ $newsModel->picture_alt }} +
    +
    +
    +
    + {{ $newsModel->picture_alt }} +
    + {{-- CONTENT --}}
    -

    {{ $newsModel->subtitle }}

    +

    + {{ $newsModel->subtitle }} +

    {!! clean($newsModel->content) !!}
    diff --git a/resources/views/fo/pages/products/show.blade.php b/resources/views/fo/pages/products/show.blade.php index ed42d1fa..0d031db1 100644 --- a/resources/views/fo/pages/products/show.blade.php +++ b/resources/views/fo/pages/products/show.blade.php @@ -50,8 +50,8 @@ {{ $productModel->packaging_alt }} {{ $productModel->picture_alt }} + src="{{ asset($productModel->picture) }}" title="{{ $productModel->picture ? $productModel->picture_title : '' }}" + alt="{{ $productModel->picture ? $productModel->picture_alt : '' }}">
    @if (!is_null($nextProductModel) && $productModel->getKey() !== $nextProductModel->getKey()) $productModel->labels->where( - 'published', - true), + 'col-sm-8 col-lg-12 col-xxl-8' => $productModel->labels->where('published', true), ])>

    {{ $productModel->label }}

@@ -319,8 +317,8 @@ data-aos-duration="750" data-aos-delay="1250" data-aos-once="true" data-aos-anchor-placement="bottom-bottom">
- {{ $recipeModel->picture_alt }} + {{ $recipeModel->consumptionMoment->picture_alt }}

{{ $staticPageModel->data['animation_text_1']['value'] }} @@ -335,8 +333,8 @@ {{ $productModel->packaging_alt }} {{ $productModel->picture_alt }} + src="{{ asset($productModel->picture) }}" title="{{ $productModel->picture ? $productModel->picture_title : '' }}" + alt="{{ $productModel->picture ? $productModel->picture_alt : '' }}">

@if ($recipeModel)