diff --git a/app/Enums/Contact/ActivitySectorEnum.php b/app/Enums/Contact/ActivitySectorEnum.php new file mode 100644 index 00000000..c9c0c0ca --- /dev/null +++ b/app/Enums/Contact/ActivitySectorEnum.php @@ -0,0 +1,19 @@ +name => 'Distribution', + ]; +} diff --git a/app/Enums/Contact/ObjectEnum.php b/app/Enums/Contact/ObjectEnum.php new file mode 100644 index 00000000..2a587620 --- /dev/null +++ b/app/Enums/Contact/ObjectEnum.php @@ -0,0 +1,19 @@ +name => 'Message', + ]; +} diff --git a/app/Http/Middlewares/HandleInertiaRequests.php b/app/Http/Middlewares/HandleInertiaRequests.php index ccba42fc..ce6b919a 100644 --- a/app/Http/Middlewares/HandleInertiaRequests.php +++ b/app/Http/Middlewares/HandleInertiaRequests.php @@ -2,6 +2,8 @@ namespace App\Http\Middlewares; +use App\Enums\Contact\ActivitySectorEnum; +use App\Enums\Contact\ObjectEnum; use Illuminate\Http\Request; use Inertia\Middleware; use Uwil\LaravelCommon\Helpers\InertiaHelper; @@ -38,6 +40,8 @@ class HandleInertiaRequests extends Middleware ...InertiaHelper::errorProps(parent::share($request)), 'recaptchaKey' => config('services.google.recaptcha.public'), 'dynamicPages' => $dynamicPages, + 'activitySectorEnum' => ActivitySectorEnum::toArray(), + 'objectEnum' => ObjectEnum::toArray() // More props here. ]; diff --git a/lang/en/validation.php b/lang/en/validation.php index 0a06ae2e..adfde2da 100644 --- a/lang/en/validation.php +++ b/lang/en/validation.php @@ -38,7 +38,7 @@ return [ "placeholder" => "what is your message?" ], "terms" => "The information collected through this form is processed by the Data Controller to respond to your contact request. To learn about your rights, you can consult the", - "optin" => "I would like to subscribe to the newsletter" + "optin" => "I would like to subscribe to the newsletter." ] ], ]; diff --git a/lang/fr/cookie-notice.php b/lang/fr/cookie-notice.php index 3d37e536..f22b7c04 100644 --- a/lang/fr/cookie-notice.php +++ b/lang/fr/cookie-notice.php @@ -27,19 +27,19 @@ return [ 'youtube' => [ 'name' => 'Youtube', 'description' => 'Les cookies placés via les services de partage de vidéos sont destinés à permettre à l’utilisateur de visionner des contenus multimédias directement sur le site.', - 'labelLink' => 'En apprendre plus', + 'labelLink' => 'En savoir +', 'warning' => 'Vous devez accepter les cookies pour visionner cette vidéo', 'accept' => 'Autoriser' ], 'matomo' => [ 'title' => 'Matomo', 'description' => 'Les services de mesure d’audience permettent de générer des statistiques de fréquentation utiles à l’amélioration du site.', - 'labelLink' => 'En apprendre plus', + 'labelLink' => 'En savoir +', ], 'recaptcha' => [ 'title' => 'reCAPTCHA', 'description' => 'Les cookies qui sont déposés via le recaptcha sur les formulaires ont pour finalité d’empêcher que ceux-ci ne soient soumis par des robots.', - 'labelLink' => 'En apprendre plus', + 'labelLink' => 'En savoir +', 'warning' => 'Vous devez accepter les cookies reCAPTCHA pour envoyer le formulaire', 'accept' => 'Accepter reCAPTCHA' ] diff --git a/lang/fr/front.php b/lang/fr/front.php index b8f5f2ce..30930d60 100644 --- a/lang/fr/front.php +++ b/lang/fr/front.php @@ -2,6 +2,7 @@ return [ "homepage" => "Accueil", + "search" => "Rechercher", "contactpage" => "Nous contacter", "back_to_your_website" => "Retour à la page d'accueil", "ovoteam_product" => "produits ovoteam", diff --git a/lang/fr/validation.php b/lang/fr/validation.php index c151b68d..55f41fb0 100644 --- a/lang/fr/validation.php +++ b/lang/fr/validation.php @@ -30,7 +30,7 @@ return [ "placeholder" => "choisir une activité" ], "object" => [ - "label" => "object du message", + "label" => "objet du message", "placeholder" => "choisir un objet" ], "message" => [ @@ -38,7 +38,7 @@ return [ "placeholder" => "quel est votre message ?" ], "terms" => "Les informations recueillies à partir de ce formulaire sont traitées par le Responsable de Traitement pour donner suite à votre demande de contact. Pour connaître vos droits, vous pouvez consulter la", - "optin" => "je souhaite m'inscrire à la newsletter" + "optin" => "je souhaite m'inscrire à la newsletter." ] ], ]; diff --git a/phpstan.neon b/phpstan.neon index 1fdaadd3..48592866 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -5,4 +5,4 @@ parameters: paths: - app/ - level: 5 + level: 7 diff --git a/resources/sass/front/vendor/_cookie-notice.scss b/resources/sass/front/vendor/_cookie-notice.scss index f9302017..93ea6839 100644 --- a/resources/sass/front/vendor/_cookie-notice.scss +++ b/resources/sass/front/vendor/_cookie-notice.scss @@ -5,6 +5,7 @@ $ck-title-font: "Gotham", $ck-text-font: "Gotham", $ck-btn-background-color: hsl(40 100% 64%), + $ck-borders-color: "#fff" ); @use "@ldc-web/cookie-notice/src/scss/themes/standard"; @@ -13,18 +14,31 @@ height: auto; } +@media (min-width: 764px) { + #cn-wrapper .cn-nav { + border-top: 2.5px solid #fff; + gap: 2.5px; + } +} + .cn-cookie-wrapper { background-color: hsl(40 100% 64%); } .cn-banner-btn { font-weight: bold; + border: 3px; } .cn-content { width: inherit; } +.cn-cookie-link{ + font-weight: bold; + text-decoration: underline; +} + #cn-cookie-btn svg { path { fill: hsl(227 65% 19%); diff --git a/resources/ts/front/Components/Base/Inputs/SearchInput.tsx b/resources/ts/front/Components/Base/Inputs/SearchInput.tsx index 004a0787..d30873ab 100644 --- a/resources/ts/front/Components/Base/Inputs/SearchInput.tsx +++ b/resources/ts/front/Components/Base/Inputs/SearchInput.tsx @@ -1,6 +1,6 @@ // * Packages import { SearchIcon } from "lucide-react"; -import { useForm } from "@inertiajs/react"; +import { router, useForm } from "@inertiajs/react"; // * Components shadcn import { Button } from "@/components/ui/button"; // * Other @@ -10,16 +10,18 @@ import { InputGroupAddon, InputGroupInput, } from "@/components/ui/input-group"; +import { route } from "ziggy-js"; export default function SearchInput() { const { data, setData, processing, errors } = useForm({ search: "", }); - const submit = (e) => { - e.preventDefault(); + const submit = () => { + // e.preventDefault(); + router.visit(route("front.search")); }; return ( -
+ - diff --git a/resources/ts/front/Components/Base/Inputs/SimpleString.tsx b/resources/ts/front/Components/Base/Inputs/SimpleString.tsx index 5af088e9..18eeb0d5 100644 --- a/resources/ts/front/Components/Base/Inputs/SimpleString.tsx +++ b/resources/ts/front/Components/Base/Inputs/SimpleString.tsx @@ -80,7 +80,7 @@ export default function SimpleString({ required={required} disabled={disabled} className={cn( - "rounded-full", + "rounded-full text-sm", type === "password" || checkVisibility ? "w-[calc(100%-40px-0.25rem)]" : "w-full", diff --git a/resources/ts/front/Components/Base/Inputs/SimpleTextarea.tsx b/resources/ts/front/Components/Base/Inputs/SimpleTextarea.tsx index 7b07014e..0bcc2f3b 100644 --- a/resources/ts/front/Components/Base/Inputs/SimpleTextarea.tsx +++ b/resources/ts/front/Components/Base/Inputs/SimpleTextarea.tsx @@ -59,7 +59,7 @@ export default function SimpleTextarea({ }} required={required} disabled={disabled} - className={cn("w-full", { + className={cn("w-full text-sm", { "border-destructive/50": localErrors[name], })} /> diff --git a/resources/ts/front/Components/Theme/Button.tsx b/resources/ts/front/Components/Theme/Button.tsx index dcdd72ab..b70c319b 100644 --- a/resources/ts/front/Components/Theme/Button.tsx +++ b/resources/ts/front/Components/Theme/Button.tsx @@ -9,7 +9,7 @@ import { cn } from "@/lib/utils"; import { CustomButtonVariant, IconConfig } from "@/types/front"; import { Link } from "@inertiajs/react"; -type CustomSize = "xs"; +type CustomSize = "xs" | "md"; type ThemeButtonProps = Omit & { variant?: ButtonProps["variant"] | CustomButtonVariant; @@ -25,6 +25,7 @@ type ThemeButtonProps = Omit & { const customVariantSizes: Record = { xs: "h-7 px-3 text-sm", + md: "h-10 px-6 py-2 text-md", }; const customVariantStyles: Record = { @@ -53,9 +54,10 @@ export default function Button({ : ""; const getSizeClasses = () => { - if (size && size in customVariantSizes) + if (size && size in customVariantSizes) { return customVariantSizes[size as CustomSize]; - return "h-8 px-5"; + } + return "h-9 px-5 text-md"; }; const iconClassName = icon?.className ?? ""; diff --git a/resources/ts/front/Components/Theme/Header/DesktopNav.tsx b/resources/ts/front/Components/Theme/Header/DesktopNav.tsx index d9d44eb5..584ee908 100644 --- a/resources/ts/front/Components/Theme/Header/DesktopNav.tsx +++ b/resources/ts/front/Components/Theme/Header/DesktopNav.tsx @@ -20,17 +20,29 @@ import SearchInput from "../../Base/Inputs/SearchInput"; function ListItem({ title, href, + external, ...props -}: React.ComponentPropsWithoutRef<"li"> & { href: string }) { +}: React.ComponentPropsWithoutRef<"li"> & { + href: string; + external?: boolean; +}) { return ( /* eslint-disable react/jsx-props-no-spreading */
  • - -
    -
    {title}
    -
    - + {external ? ( + +
    +
    {title}
    +
    +
    + ) : ( + +
    +
    {title}
    +
    + + )}
  • ); @@ -67,6 +79,7 @@ export default function DesktopNav({ ); })} @@ -84,7 +97,13 @@ export default function DesktopNav({ "text-md font-bold", )} > - {link.title} + {link.external ? ( + + {link.title} + + ) : ( + {link.title} + )} ); diff --git a/resources/ts/front/Components/Theme/Header/GoToSearchPage.tsx b/resources/ts/front/Components/Theme/Header/GoToSearchPage.tsx index 9b2389ea..b63936b6 100644 --- a/resources/ts/front/Components/Theme/Header/GoToSearchPage.tsx +++ b/resources/ts/front/Components/Theme/Header/GoToSearchPage.tsx @@ -2,11 +2,12 @@ import { Button } from "@/components/ui/button"; import { Link } from "@inertiajs/react"; import { Search } from "lucide-react"; +import { route } from "ziggy-js"; export default function GoToSearchPage() { return ( diff --git a/resources/ts/front/Components/Theme/Header/Header.tsx b/resources/ts/front/Components/Theme/Header/Header.tsx index b3398216..f726a140 100644 --- a/resources/ts/front/Components/Theme/Header/Header.tsx +++ b/resources/ts/front/Components/Theme/Header/Header.tsx @@ -6,7 +6,7 @@ import { route } from "ziggy-js"; import { GetTranslation } from "@/lib/utils"; export default function Header() { - const commitmentLinks = ["gamme", "made-in-france", "expertise"]; + const commitmentLinks = ["made-in-france", "gamme", "expertise"]; const navLinks: FrontNavLinkProps[] = [ { @@ -33,7 +33,8 @@ export default function Header() { }, { title: "Nous rejoindre", - href: "", + href: "https://recrutement.ldc.fr/fr/annonces?brands=2625", + external: true, }, ]; diff --git a/resources/ts/front/Components/Theme/Header/MobileNav.tsx b/resources/ts/front/Components/Theme/Header/MobileNav.tsx index de300c98..893fcd3c 100644 --- a/resources/ts/front/Components/Theme/Header/MobileNav.tsx +++ b/resources/ts/front/Components/Theme/Header/MobileNav.tsx @@ -19,6 +19,28 @@ import { import Logo from "$/uwil/Logo"; import SocialNetworks from "$/uwil/SocialNetworks"; +function ConditionalLink({ + title, + external, + href, + className, +}: FrontNavLinkProps & { className?: string }) { + return external ? ( + + {title} + + ) : ( + + {title} + + ); +} + export default function MobileNav({ navLinks, }: { @@ -27,7 +49,7 @@ export default function MobileNav({ const [activeMenu, setActiveMenu] = useState(null); const goBack = () => setActiveMenu(null); const headerClasses = - "h-[65px] flex flex-row items-center justify-between relative"; + "h-[140px] flex flex-row items-start justify-between relative pt-2"; return (
    @@ -82,12 +104,8 @@ export default function MobileNav({ ) : ( - - {link.title} - + // eslint-disable-next-line react/jsx-props-no-spreading + )}
    ))} @@ -115,12 +133,11 @@ export default function MobileNav({
      {activeMenu.children?.map((child) => (
    • - - {child.title} - +
    • ))}
    @@ -132,7 +149,7 @@ export default function MobileNav({ - + ); } diff --git a/resources/ts/front/Components/Theme/HeroImage.tsx b/resources/ts/front/Components/Theme/HeroImage.tsx index de3cb8a2..54f35c7e 100644 --- a/resources/ts/front/Components/Theme/HeroImage.tsx +++ b/resources/ts/front/Components/Theme/HeroImage.tsx @@ -13,7 +13,7 @@ export default function HeroImage(props: HeroImageProps) { return (
    -
    +

    {title.text}

    {description.text}

    diff --git a/resources/ts/front/Components/Theme/ItemCard.tsx b/resources/ts/front/Components/Theme/ItemCard.tsx index 85b7c170..699dcb1c 100644 --- a/resources/ts/front/Components/Theme/ItemCard.tsx +++ b/resources/ts/front/Components/Theme/ItemCard.tsx @@ -44,7 +44,7 @@ export default function ItemCard({
    {title?.text && ( -

    +

    {title.text}

    )} diff --git a/resources/ts/front/Components/Theme/ListSectionTitle.tsx b/resources/ts/front/Components/Theme/ListSectionTitle.tsx index 5562b28c..17939c8a 100644 --- a/resources/ts/front/Components/Theme/ListSectionTitle.tsx +++ b/resources/ts/front/Components/Theme/ListSectionTitle.tsx @@ -3,8 +3,8 @@ import { cn } from "@/lib/utils"; export default function ListSectionTitle() { return (
    -

    Recettes

    -

    (12/150)

    +

    Recettes

    +

    (12/150)

    ); } diff --git a/resources/ts/front/Components/Theme/Section.tsx b/resources/ts/front/Components/Theme/Section.tsx index 79a3b643..e44e8cbe 100644 --- a/resources/ts/front/Components/Theme/Section.tsx +++ b/resources/ts/front/Components/Theme/Section.tsx @@ -46,7 +46,7 @@ const Section = forwardRef((props, ref) => {
    {btnPlacement === verticalPlacements.TOP && button && ( -
    +
    )} {(title || subtitle || description) && ( - + {title && (

    ((props, ref) => { {subtitle && (

    ((props, ref) => { )}
    {children}
    {btnPlacement === verticalPlacements.BOTTOM && button && ( -
    +

    ); } diff --git a/resources/ts/front/Components/Theme/TripleCol.tsx b/resources/ts/front/Components/Theme/TripleCol.tsx index 103fbeb8..5a36ca90 100644 --- a/resources/ts/front/Components/Theme/TripleCol.tsx +++ b/resources/ts/front/Components/Theme/TripleCol.tsx @@ -2,7 +2,7 @@ import { ImageProps, TextProps } from "@/types/front"; import Image from "$/uwil/Image"; import { cn } from "@/lib/utils"; import { Separator } from "@/components/ui/separator"; -import { fonts } from "@/front/lib/constants"; +import { BgColorName, bgColors, fonts } from "@/front/lib/constants"; export type TripleColType = { image: ImageProps; @@ -13,20 +13,23 @@ export type TripleColType = { type Props = { cols: TripleColType[]; + variant?: BgColorName; }; export default function TripleCol(props: Props) { - const { cols } = props; + const { cols, variant } = props; const width = "w-72 lg:w-56"; const height = "aspect-square lg:h-56"; + const separatorVariant = + variant === bgColors.BACKGROUND ? bgColors.PRIMARY : bgColors.BACKGROUND; return (
    {cols.map((col, index) => { const isLast = index === cols.length - 1; return ( -
    +
    {!isLast && ( - + )}
    ); diff --git a/resources/ts/front/Pages/Commitment.tsx b/resources/ts/front/Pages/Commitment.tsx index af70fbf2..08789baf 100644 --- a/resources/ts/front/Pages/Commitment.tsx +++ b/resources/ts/front/Pages/Commitment.tsx @@ -1,12 +1,14 @@ +// * REACT/INERTIA import { Head } from "@inertiajs/react"; +// * THEME import AppLayout from "../Layouts/AppLayout"; -import useTrans from "@/hooks/use-translations"; import PageHeader from "$/uwil/PageHeader"; import TripleColSection from "$/uwil/Sections/TripleColSection"; -import { bgColors } from "../lib/constants"; -import str from "@/hooks/use-string"; -import { GetTranslation } from "@/lib/utils"; +import { bgColors, fonts, simpleWeights } from "../lib/constants"; import CarouselSection from "$/uwil/Sections/CarouselSection"; +// * OTHER +import useTrans from "@/hooks/use-translations"; +// * ZIGGY import { route } from "ziggy-js"; export default function Commitment() { @@ -143,15 +145,13 @@ export default function Commitment() { src: "/assets/img/elephant.jpg", }, title: { - text: "Oeuf poché moulé", + text: "1963", + font: fonts.GOTHAM, + weight: simpleWeights.BOLD, }, description: { text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam.", }, - button: { - label: str(GetTranslation("front.see.product")).ucFirst().value(), - href: "/ddd", - }, }, { image: { @@ -160,15 +160,13 @@ export default function Commitment() { src: "/assets/img/elephant.jpg", }, title: { - text: "Oeuf poché moulé", + text: "1963", + font: fonts.GOTHAM, + weight: simpleWeights.BOLD, }, description: { text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam.", }, - button: { - label: str(GetTranslation("front.see.product")).ucFirst().value(), - href: "/ddd", - }, }, { image: { @@ -177,15 +175,13 @@ export default function Commitment() { src: "/assets/img/elephant.jpg", }, title: { - text: "Oeuf poché moulé", + text: "1963", + font: fonts.GOTHAM, + weight: simpleWeights.BOLD, }, description: { text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam.", }, - button: { - label: str(GetTranslation("front.see.product")).ucFirst().value(), - href: "/ddd", - }, }, { image: { @@ -194,15 +190,13 @@ export default function Commitment() { src: "/assets/img/elephant.jpg", }, title: { - text: "Oeuf poché moulé", + text: "1963", + font: fonts.GOTHAM, + weight: simpleWeights.BOLD, }, description: { text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam.", }, - button: { - label: str(GetTranslation("front.see.product")).ucFirst().value(), - href: "/ddd", - }, }, { image: { @@ -211,15 +205,13 @@ export default function Commitment() { src: "/assets/img/elephant.jpg", }, title: { - text: "Oeuf poché moulé", + text: "1963", + font: fonts.GOTHAM, + weight: simpleWeights.BOLD, }, description: { text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam.", }, - button: { - label: str(GetTranslation("front.see.product")).ucFirst().value(), - href: "/ddd", - }, }, { image: { @@ -228,15 +220,13 @@ export default function Commitment() { src: "/assets/img/elephant.jpg", }, title: { - text: "Oeuf poché moulé", + text: "1963", + font: fonts.GOTHAM, + weight: simpleWeights.BOLD, }, description: { text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam.", }, - button: { - label: str(GetTranslation("front.see.product")).ucFirst().value(), - href: "/ddd", - }, }, ]} /> diff --git a/resources/ts/front/Pages/Contact/ContactUs.tsx b/resources/ts/front/Pages/Contact/ContactUs.tsx index e193522d..99416a96 100644 --- a/resources/ts/front/Pages/Contact/ContactUs.tsx +++ b/resources/ts/front/Pages/Contact/ContactUs.tsx @@ -22,7 +22,7 @@ export default function ContactUs() { />
    - - {useFormatedDate(String(dynamicPageModel.updated_at))} - {currentLocaleConfig && currentLocaleContent ? ( diff --git a/resources/ts/front/Pages/Expertise.tsx b/resources/ts/front/Pages/Expertise.tsx index b9e9a3b2..468dab7d 100644 --- a/resources/ts/front/Pages/Expertise.tsx +++ b/resources/ts/front/Pages/Expertise.tsx @@ -11,12 +11,27 @@ import { bgColors } from "../lib/constants"; import useDeviceType from "@/hooks/use-device-type"; import { Separator } from "@/components/ui/separator"; import BackToHome from "$/uwil/BackToHome"; +import { usePeekCarouselOptions } from "../lib/carousels"; export default function Expertise() { const { isMobile } = useDeviceType(); return ( +
    + +
    -
    +
    - +
    -
    +
    diff --git a/resources/ts/front/Pages/Gamme.tsx b/resources/ts/front/Pages/Gamme.tsx index 6147f92f..482d6f72 100644 --- a/resources/ts/front/Pages/Gamme.tsx +++ b/resources/ts/front/Pages/Gamme.tsx @@ -12,20 +12,7 @@ export default function Expertise() { return ( - -
    +
    -
    + +
    + +
    +
    -
    +
    diff --git a/resources/ts/front/Pages/Home.tsx b/resources/ts/front/Pages/Home.tsx index eef19e57..dcdba74f 100644 --- a/resources/ts/front/Pages/Home.tsx +++ b/resources/ts/front/Pages/Home.tsx @@ -133,9 +133,6 @@ export default function Home() { title: { text: "Plaintel (22)", }, - subtitle: { - text: "Hôtellerie", - }, description: { text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Velit dicta explicabo quos accusamus unde nostrum nemo delectus consequatur aliquam iste porro, ab asperiores incidunt autem veniam. In reiciendis totam nesciunt. Lorem ipsum dolor sit amet consectetur adipisicing elit. Eum voluptatibus temporibus autem amet maxime fuga dignissimos quo necessitatibus iusto nam. Rerum placeat esse perspiciatis suscipit eos ipsa ad alias totam?", }, diff --git a/resources/ts/front/Pages/MadeInFrance.tsx b/resources/ts/front/Pages/MadeInFrance.tsx index de8514b8..34843f8f 100644 --- a/resources/ts/front/Pages/MadeInFrance.tsx +++ b/resources/ts/front/Pages/MadeInFrance.tsx @@ -8,11 +8,26 @@ import Breadcrumbs from "$/uwil/Breadcrumbs"; import Section from "$/uwil/Section"; import HeroImage from "$/uwil/HeroImage"; import BackToHome from "$/uwil/BackToHome"; +import { usePeekCarouselOptions } from "../lib/carousels"; export default function MadeInFrance() { return ( +
    + +
    -
    +
    { + e.preventDefault(); + }; + return ( + + + +
    + + + setData("search", e.target.value)} + disabled={processing} + placeholder="Rechercher..." + /> + + + + + + + +
    + +
    + +
    + {["1", "2", "3", "4"].map(() => { + return ( +
    + +
    + ); + })} +
    +
    +
    + +
    + {["1", "2", "3", "4"].map(() => { + return ( +
    + +
    + ); + })} +
    +
    +
    + +
    +
    + ); +} diff --git a/resources/ts/types/front.d.ts b/resources/ts/types/front.d.ts index 34c8125f..fb2f20f8 100644 --- a/resources/ts/types/front.d.ts +++ b/resources/ts/types/front.d.ts @@ -30,6 +30,7 @@ type ImageProps = { type FrontNavLinkProps = { title: string; href?: string; + external?: boolean; children?: FrontNavLinkProps[]; }; diff --git a/routes/breadcrumbs/front.php b/routes/breadcrumbs/front.php index 1f20b429..bb34fb17 100644 --- a/routes/breadcrumbs/front.php +++ b/routes/breadcrumbs/front.php @@ -92,3 +92,19 @@ Breadcrumbs::for('front.gamme', function (Generator $trail) use ($pageHome, $cur route('front.gamme') ); }); + +Breadcrumbs::for('front.contact-us', function (Generator $trail) use ($currentLocale, $pageHome) { + $trail->parent(sprintf("front.dynamic-pages.%s.%s", $pageHome->id_key, $currentLocale)); + $trail->push( + __('front.contactpage'), + route('front.contact-us') + ); +}); + +Breadcrumbs::for('front.search', function (Generator $trail) use ($currentLocale, $pageHome) { + $trail->parent(sprintf("front.dynamic-pages.%s.%s", $pageHome->id_key, $currentLocale)); + $trail->push( + __('front.search'), + route('front.search') + ); +}); diff --git a/routes/web-front.php b/routes/web-front.php index bec960d5..ac17e775 100644 --- a/routes/web-front.php +++ b/routes/web-front.php @@ -1,5 +1,6 @@ name('contact-us'); +Route::get('/rechercher', function () { + return Inertia::render('front/Pages/Search'); +})->name('search'); + Route::get('/demo', function () { return inertia('front/Pages/Demo'); })->name('demo');