diff --git a/app/Http/Controllers/Fo/StaticPageController.php b/app/Http/Controllers/Fo/StaticPageController.php index 8490373..32bcbf4 100644 --- a/app/Http/Controllers/Fo/StaticPageController.php +++ b/app/Http/Controllers/Fo/StaticPageController.php @@ -91,6 +91,7 @@ class StaticPageController extends Controller $siteSection = $sectionModels->where('section', PageSectionEnum::unveil_sites)->first(); $historySection = $sectionModels->where('section', PageSectionEnum::unveil_history)->first(); $commitmentSection = $sectionModels->where('section', PageSectionEnum::unveil_commitments)->first(); + $navLinks = Sticky::query()->where('type', StaticPageType::unveil)->get(); $viewBox = null; $initialZoom = null; @@ -119,7 +120,8 @@ class StaticPageController extends Controller 'localSection', 'siteSection', 'historySection', - 'commitmentSection' + 'commitmentSection', + 'navLinks' )); } @@ -277,7 +279,7 @@ class StaticPageController extends Controller $paritySection = $sectionModels->where('section', PageSectionEnum::hire_parity)->first(); $findSection = $sectionModels->where('section', PageSectionEnum::hire_find)->first(); $carouselSectionParity = Carousel::query()->where('section_id', PageSectionEnum::hire_parity)->where('published', true)->get(); - $navLinks = Sticky::query()->where('type', StaticPageType::we_hire)->get(); + $navLinks = Sticky::query()->where('type', StaticPageType::we_hire)->get(); return view('fo.pages.hire', \compact( 'staticPageModel', diff --git a/database/migrations/2026_03_25_150536_stickies_seeder.php b/database/migrations/2026_03_25_150536_stickies_seeder.php new file mode 100644 index 0000000..a853afb --- /dev/null +++ b/database/migrations/2026_03_25_150536_stickies_seeder.php @@ -0,0 +1,26 @@ + StickySeeder::class + ]); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + // + } +}; diff --git a/database/seeders/Mandatory/StickySeeder.php b/database/seeders/Mandatory/StickySeeder.php index 13c42dd..0f580ba 100644 --- a/database/seeders/Mandatory/StickySeeder.php +++ b/database/seeders/Mandatory/StickySeeder.php @@ -48,5 +48,40 @@ class StickySeeder extends Seeder 'anchor' => 'on-se-retrouve' ], ); + Sticky::query()->updateOrCreate( + [ + 'type' => StaticPageType::unveil, + 'title' => 'VOLENA', + 'anchor' => 'key-numbers' + ], + ); + Sticky::query()->updateOrCreate( + [ + 'type' => StaticPageType::unveil, + 'title' => 'Notre mission', + 'anchor' => 'missions' + ], + ); + Sticky::query()->updateOrCreate( + [ + 'type' => StaticPageType::unveil, + 'title' => 'Filière 100% française', + 'anchor' => 'local' + ], + ); + Sticky::query()->updateOrCreate( + [ + 'type' => StaticPageType::unveil, + 'title' => 'Nos sites', + 'anchor' => 'sites' + ], + ); + Sticky::query()->updateOrCreate( + [ + 'type' => StaticPageType::unveil, + 'title' => 'Notre histoire', + 'anchor' => 'history' + ], + ); } } diff --git a/resources/lang/fr/models.php b/resources/lang/fr/models.php index d219ee3..85f0428 100644 --- a/resources/lang/fr/models.php +++ b/resources/lang/fr/models.php @@ -17,7 +17,7 @@ return [ 'network' => 'réseau|réseaux', 'aisle' => 'rayon', 'brand' => 'marque', - 'carousel' => 'carrousel|carrousels' + 'carousel' => 'carrousel|carrousels', 'sticky' => 'menu d\'ancre|menu d\'ancres' ] ]; diff --git a/resources/sass/fo/pages/_unveil.scss b/resources/sass/fo/pages/_unveil.scss index 3e3a095..36269fc 100644 --- a/resources/sass/fo/pages/_unveil.scss +++ b/resources/sass/fo/pages/_unveil.scss @@ -139,4 +139,45 @@ } } } + + .unveil-navigation { + @include media-breakpoint-up(md) { + position: fixed; + z-index: 10; + bottom: 4rem; + left: 4rem; + max-width: 15rem; + + &-wrapper { + height: 0; + opacity: 0; + transform: translateY(25%); + transition: .3s; + visibility: hidden; + + &.show { + height: auto; + opacity: 1; + transform: translateY(0); + visibility: visible; + } + } + } + + .col-md-12 { + @include media-breakpoint-up(md) { + width: fit-content; + } + + .badge { + width: .5rem; + height: .5rem; + + @include media-breakpoint-up(md) { + width: 1rem; + height: 1rem; + } + } + } + } } diff --git a/resources/views/bo/pages/stickies/index-list.blade.php b/resources/views/bo/pages/stickies/index-list.blade.php index 74a3241..0db8cff 100644 --- a/resources/views/bo/pages/stickies/index-list.blade.php +++ b/resources/views/bo/pages/stickies/index-list.blade.php @@ -11,7 +11,7 @@
@foreach ($stickyModels as $stickyModel) -