2026-03-18 17:14:23 +01:00
|
|
|
//* THEME
|
2026-07-08 14:55:18 +02:00
|
|
|
import DesktopNav from "$/uwil/Header/DesktopNav";
|
2026-03-18 17:14:23 +01:00
|
|
|
import MobileNav from "$/uwil/Header/MobileNav";
|
2026-10-19 17:43:33 +02:00
|
|
|
import trans from "@/hooks/use-translations";
|
2026-03-18 17:14:23 +01:00
|
|
|
import { FrontNavLinkProps } from "@/types/front";
|
2026-04-03 13:56:21 +02:00
|
|
|
import { route } from "ziggy-js";
|
2026-03-18 17:14:23 +01:00
|
|
|
|
2026-04-08 13:59:30 +02:00
|
|
|
export default function Header() {
|
2026-04-15 09:31:43 +02:00
|
|
|
const commitmentLinks = ["made-in-france", "gamme", "expertise"];
|
2026-04-07 16:21:09 +02:00
|
|
|
|
|
|
|
|
const navLinks: FrontNavLinkProps[] = [
|
|
|
|
|
{
|
2026-10-19 17:43:33 +02:00
|
|
|
title: trans(`front.ovoteam_commit`),
|
2026-04-07 16:21:09 +02:00
|
|
|
href: route(`front.engage`),
|
|
|
|
|
children: commitmentLinks.map((com) => {
|
|
|
|
|
return {
|
2026-10-19 17:43:33 +02:00
|
|
|
title: trans(`front.${com}`),
|
2026-04-08 13:59:30 +02:00
|
|
|
href: route(`front.${com}`),
|
|
|
|
|
};
|
|
|
|
|
}),
|
2026-04-07 16:21:09 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Recettes",
|
2026-07-08 18:16:46 +02:00
|
|
|
href: route("front.recipes.index"),
|
2026-04-07 16:21:09 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Produits",
|
2026-07-08 14:55:18 +02:00
|
|
|
href: route("front.products.index"),
|
2026-04-07 16:21:09 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Nous contacter",
|
2026-04-08 13:59:30 +02:00
|
|
|
href: route("front.contact-us"),
|
2026-04-07 16:21:09 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Nous rejoindre",
|
2026-04-15 09:31:43 +02:00
|
|
|
href: "https://recrutement.ldc.fr/fr/annonces?brands=2625",
|
|
|
|
|
external: true,
|
2026-04-07 16:21:09 +02:00
|
|
|
},
|
2026-04-08 13:59:30 +02:00
|
|
|
];
|
2026-04-07 16:21:09 +02:00
|
|
|
|
2026-03-18 17:14:23 +01:00
|
|
|
return (
|
2026-03-30 13:52:00 +02:00
|
|
|
<header className="bg-background w-full md:container md:mx-auto px-4 md:px-5 lg:pb-5">
|
2026-04-08 13:59:30 +02:00
|
|
|
<DesktopNav navLinks={navLinks} />
|
2026-03-18 17:14:23 +01:00
|
|
|
<MobileNav navLinks={navLinks} />
|
|
|
|
|
</header>
|
2026-04-08 13:59:30 +02:00
|
|
|
);
|
2026-03-18 17:14:23 +01:00
|
|
|
}
|