From c6539de2fba95f48664d04018be37e61001beceb Mon Sep 17 00:00:00 2001 From: K Muller Date: Fri, 22 Aug 2025 11:44:00 +0200 Subject: [PATCH] feat: :sparkles: engagement page + breadcrumb in front --- config/breadcrumbs.php | 3 +- lang/fr/front.php | 4 + .../front/ctas/with-download.blade.php | 20 ++ .../breadcrumbs/breadcrumb-body.blade.php | 7 + .../breadcrumbs/breadcrumb-layout.blade.php | 13 + .../views/front/layouts/header.blade.php | 12 +- .../front/pages/nos-engagements.blade.php | 129 +++++++++- .../engagements-page/engagements-1.blade.php | 82 +++++++ .../engagements-page/engagements-2.blade.php | 88 +++++++ .../engagements-page/engagements-4.blade.php | 65 +++++ .../engagements-page/engagements-5.blade.php | 230 ++++++++++++++++++ .../engagements-page/engagements-6.blade.php | 14 ++ resources/views/front/partials/hero.blade.php | 2 +- routes/breadcrumbs-front.php | 43 ++++ routes/web-front.php | 11 +- 15 files changed, 711 insertions(+), 12 deletions(-) create mode 100644 resources/views/components/front/ctas/with-download.blade.php create mode 100644 resources/views/front/breadcrumbs/breadcrumb-body.blade.php create mode 100644 resources/views/front/breadcrumbs/breadcrumb-layout.blade.php create mode 100644 resources/views/front/partials/engagements-page/engagements-1.blade.php create mode 100644 resources/views/front/partials/engagements-page/engagements-2.blade.php create mode 100644 resources/views/front/partials/engagements-page/engagements-4.blade.php create mode 100644 resources/views/front/partials/engagements-page/engagements-5.blade.php create mode 100644 resources/views/front/partials/engagements-page/engagements-6.blade.php create mode 100644 routes/breadcrumbs-front.php diff --git a/config/breadcrumbs.php b/config/breadcrumbs.php index a438f6ec..b6b0c720 100644 --- a/config/breadcrumbs.php +++ b/config/breadcrumbs.php @@ -23,7 +23,7 @@ return [ * */ - 'view' => null, + 'view' => 'front/breadcrumbs/breadcrumb-layout', /** *-------------------------------------------------------------------------- @@ -39,6 +39,7 @@ return [ 'files' => [ base_path('routes/breadcrumbs-back.php'), + base_path('routes/breadcrumbs-front.php'), ], /** diff --git a/lang/fr/front.php b/lang/fr/front.php index 88d96c27..5304ae75 100644 --- a/lang/fr/front.php +++ b/lang/fr/front.php @@ -2,4 +2,8 @@ return [ "go_to_the_back_end" => "accéder au back-office", + "homepage" => "LDC", + "nos-engagements" => "nos engagements", + "nous-connaitre" => "nous connaître", + "nos-marques" => "nos marques" ]; diff --git a/resources/views/components/front/ctas/with-download.blade.php b/resources/views/components/front/ctas/with-download.blade.php new file mode 100644 index 00000000..d45214b0 --- /dev/null +++ b/resources/views/components/front/ctas/with-download.blade.php @@ -0,0 +1,20 @@ +{{ $title }} + + + + + telecharger + + + + + + diff --git a/resources/views/front/breadcrumbs/breadcrumb-body.blade.php b/resources/views/front/breadcrumbs/breadcrumb-body.blade.php new file mode 100644 index 00000000..51b36a85 --- /dev/null +++ b/resources/views/front/breadcrumbs/breadcrumb-body.blade.php @@ -0,0 +1,7 @@ +@hasSection('breadcrumb') + @if (Breadcrumbs::exists(app()->view->getSections()['breadcrumb'])) + {{ call_user_func_array('Breadcrumbs::render', array_merge([app()->view->getSections()['breadcrumb']], Arr::wrap($brParam))) }} + @endif +@elseif(Breadcrumbs::exists(request()->route()->getName())) + {{ Breadcrumbs::render(request()->route()->getName()) }} +@endif diff --git a/resources/views/front/breadcrumbs/breadcrumb-layout.blade.php b/resources/views/front/breadcrumbs/breadcrumb-layout.blade.php new file mode 100644 index 00000000..3d927cbd --- /dev/null +++ b/resources/views/front/breadcrumbs/breadcrumb-layout.blade.php @@ -0,0 +1,13 @@ +@if (count($breadcrumbs) && request()->route()->getName() !== "front.homepage") + +@endif diff --git a/resources/views/front/layouts/header.blade.php b/resources/views/front/layouts/header.blade.php index a62f462c..91ff0487 100644 --- a/resources/views/front/layouts/header.blade.php +++ b/resources/views/front/layouts/header.blade.php @@ -57,25 +57,25 @@ Nos marques
  • - Nos engagements + Nos engagements