-
- {title.text}
-
-
+
+ {title?.text && (
+
+ {title.text}
+
+ )}
+ {subtitle?.text && (
+
{subtitle.text}
+ )}
{description?.text && (
{
const { className } = props;
return (
-
+
)
}
export default Logo;
diff --git a/resources/ts/front/Components/Theme/NutritionalValueList.tsx b/resources/ts/front/Components/Theme/NutritionalValueList.tsx
new file mode 100644
index 00000000..4ea2d4ad
--- /dev/null
+++ b/resources/ts/front/Components/Theme/NutritionalValueList.tsx
@@ -0,0 +1,56 @@
+import { cn } from "@/lib/utils";
+
+type Props = {
+ rows: Row[];
+ /** On which value is based all the values
+ * @example "Pour 100g"
+ */
+ baseValue: string;
+}
+
+type Row = {
+ label?: string;
+ value: string;
+ subRow?: Row;
+}
+
+export default function NutritionalValueList({ rows, baseValue }: Props) {
+ return (
+
+
+
+
+
+ {rows.map((row, index) => {
+ return (
+
+ )
+ })}
+
+
+ )
+}
+
+const Row = ({ row, index }: { row: Row, index?: number }) => {
+ const isEven = index !== undefined && index % 2 === 0;
+ return (
+ <>
+
+
{row.label}
+ {row.subRow && (
+
{row.subRow?.label ?? ""}
+ )}
+
+
+
+
{row.value}
+ {row.subRow && (
+
{row.subRow?.value ?? ""}
+ )}
+
+
+ >
+ )
+}
diff --git a/resources/ts/front/Components/Theme/PageHeader.tsx b/resources/ts/front/Components/Theme/PageHeader.tsx
index c87afefd..788d4e55 100644
--- a/resources/ts/front/Components/Theme/PageHeader.tsx
+++ b/resources/ts/front/Components/Theme/PageHeader.tsx
@@ -1,6 +1,8 @@
import Breadcrumbs from "$/uwil/Breadcrumbs"
import { cn } from "@/lib/utils";
import { TextProps } from "@/types/front"
+import Section from "$/uwil/Section";
+import { bgColors } from "@/front/lib/constants";
type PageHeaderProps = {
title: TextProps;
@@ -9,21 +11,19 @@ type PageHeaderProps = {
const PageHeader = (props: PageHeaderProps) => {
const { title, description } = props;
return (
-
-
-
-
{title.text}
-
{description.text}
-
-
+
+
+ {title.text}
+ {description.text}
+
)
}
export default PageHeader;
diff --git a/resources/ts/front/Components/Theme/Section.tsx b/resources/ts/front/Components/Theme/Section.tsx
index 03a9cbcd..6c64d1c4 100644
--- a/resources/ts/front/Components/Theme/Section.tsx
+++ b/resources/ts/front/Components/Theme/Section.tsx
@@ -28,41 +28,47 @@ const Section = forwardRef
((props, ref) => {
const btnVariant = variant === bgColors.BACKGROUND ? "default" : "inverted";
const btnPlacement = (button && button.placement) ?? verticalPlacements.BOTTOM;
return (
-
-
+
+
{btnPlacement === verticalPlacements.TOP && button && (
-
+
+
+
+ )}
+ {(title || subtitle || description) && (
+
+ {title && {title.text}
}
+ {subtitle && {subtitle.text}
}
+ {description && {description.text}
}
+
)}
-
- {title && {title.text}
}
- {subtitle && {subtitle.text}
}
- {description && {description.text}
}
-
{children}
{btnPlacement === verticalPlacements.BOTTOM && button && (
-
+
+
+
)}
diff --git a/resources/ts/front/Components/Theme/Sections/CarouselSection.tsx b/resources/ts/front/Components/Theme/Sections/CarouselSection.tsx
index ec4a0377..90c57049 100644
--- a/resources/ts/front/Components/Theme/Sections/CarouselSection.tsx
+++ b/resources/ts/front/Components/Theme/Sections/CarouselSection.tsx
@@ -2,7 +2,8 @@
import { CarouselProps, TextProps } from "@/types/front";
import Section, { ButtonSectionProps } from "$/uwil/Section"
import { BgColorName } from "@/front/lib/constants";
-import Carousel from "@/front/Components/Base/Carousel/Carousel";
+import Carousel from "$/base/Carousel/Carousel";
+import { cn } from "@/lib/utils";
type CarouselSectionProps = CarouselProps & {
title?: TextProps;
@@ -10,6 +11,7 @@ type CarouselSectionProps = CarouselProps & {
description?: TextProps;
variant?: BgColorName;
button?: ButtonSectionProps;
+ sectionClassName?: string;
}
/**
@@ -49,7 +51,7 @@ type CarouselSectionProps = CarouselProps & {
* />
*/
const CarouselSection = (props: CarouselSectionProps) => {
- const { title, subtitle, description, variant, button, items, carousel } = props;
+ const { title, subtitle, description, variant, button, items, carousel, sectionClassName } = props;
const buttonProps = button
? {
button: {
@@ -67,6 +69,7 @@ const CarouselSection = (props: CarouselSectionProps) => {
: {};
return (
*/
export default function TripleColSection(props: TripleColSectionProps) {
- const { title, cols, button, variant = bgColors.BACKGROUND } = props;
+ const { title, cols, button, variant = bgColors.BACKGROUND, className } = props;
return (
{
+
return (
-
-
-
);
};
diff --git a/resources/ts/front/Layouts/AppLayout.tsx b/resources/ts/front/Layouts/AppLayout.tsx
index a88e4600..a8bc37e2 100644
--- a/resources/ts/front/Layouts/AppLayout.tsx
+++ b/resources/ts/front/Layouts/AppLayout.tsx
@@ -3,6 +3,8 @@ import { ReactNode } from "react";
import Header from "$/uwil/Header/Header";
import Footer from "$/uwil/Footer";
import GoToTop from "$/uwil/GoToTop";
+import { TooltipProvider } from "@/components/ui/tooltip";
+import { Toaster } from "@/components/ui/toaster";
interface BreadcrumbItem {
title: string;
@@ -37,7 +39,10 @@ export default function AppLayout({ children }: AppLayoutProps) {
)}
- {children}
+
+
+ {children}
+
diff --git a/resources/ts/front/Pages/Commitment.tsx b/resources/ts/front/Pages/Commitment.tsx
new file mode 100644
index 00000000..af8e05c5
--- /dev/null
+++ b/resources/ts/front/Pages/Commitment.tsx
@@ -0,0 +1,243 @@
+import { Head } from "@inertiajs/react";
+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 CarouselSection from "$/uwil/Sections/CarouselSection";
+import { route } from "ziggy-js";
+
+export default function Commitment() {
+ return (
+
+
+
+
+
+
+
+ )
+}
diff --git a/resources/ts/front/Pages/Contact/ContactForm.tsx b/resources/ts/front/Pages/Contact/ContactForm.tsx
new file mode 100644
index 00000000..3f76fb60
--- /dev/null
+++ b/resources/ts/front/Pages/Contact/ContactForm.tsx
@@ -0,0 +1,149 @@
+// * PACKAGES
+import { useForm } from "@inertiajs/react";
+// * BASE
+import SimpleString from "$/base/Inputs/SimpleString";
+import EnumSelect from "$/base/Inputs/EnumSelect";
+import SimpleTextarea from "$/base/Inputs/SimpleTextarea";
+import SimpleCheckbox from "$/base/Inputs/SimpleCheckbox";
+// * THEME
+import Section from "$/uwil/Section";
+import Button from "$/uwil/Button";
+
+export default function ContactForm() {
+
+ const { data, setData, processing } = useForm({
+ name: "",
+ firstName: "",
+ phone: "",
+ mail: "",
+ entrepriseName: "",
+ activitySector: "",
+ object: "",
+ message: "",
+ terms: false,
+ optin: false,
+ });
+
+ const submit = () => { }
+
+ return (
+
+ )
+}
diff --git a/resources/ts/front/Pages/Contact/ContactUs.tsx b/resources/ts/front/Pages/Contact/ContactUs.tsx
new file mode 100644
index 00000000..6d2d9df2
--- /dev/null
+++ b/resources/ts/front/Pages/Contact/ContactUs.tsx
@@ -0,0 +1,38 @@
+// * PACKAGES
+import { Head } from "@inertiajs/react";
+// * BASE
+import AppLayout from "../../Layouts/AppLayout";
+import useTrans from "@/hooks/use-translations";
+// * THEME
+import PageHeader from "$/uwil/PageHeader";
+import ContactForm from "./ContactForm";
+import Image from "@/front/Components/Theme/Image";
+
+export default function ContactUs() {
+
+ return (
+
+
+
+
+
+
+
+
+ )
+}
diff --git a/resources/ts/front/Pages/Demo.tsx b/resources/ts/front/Pages/Demo.tsx
index 82295762..4dff0db2 100644
--- a/resources/ts/front/Pages/Demo.tsx
+++ b/resources/ts/front/Pages/Demo.tsx
@@ -1,3 +1,4 @@
+/** THEME */
import Button from "$/uwil/Button";
import ItemCard from "$/uwil/ItemCard";
import ActionSection from "$/uwil/ActionSection";
@@ -9,346 +10,747 @@ import HeroImage from "$/uwil/HeroImage";
import ListSectionTitle from "$/uwil/ListSectionTitle";
import PageHeader from "$/uwil/PageHeader";
import TripleColSection from "@/front/Components/Theme/Sections/TripleColSection";
-import AppLayout from "../Layouts/AppLayout";
import { bgColors, fonts, sidePlacements, simpleWeights, verticalPlacements } from "../lib/constants";
import Section from "$/uwil/Section";
import CarouselSection from "../Components/Theme/Sections/CarouselSection";
+import NutritionalValueList from "../Components/Theme/NutritionalValueList";
+/** OTHER */
+import { useState } from "react";
+import { Link } from "@inertiajs/react";
+import Filters from "../Components/Theme/Inputs/Filters";
const Demo = () => {
+
return (
-
+
+ Retour à la home
{/* BUTTONS */}
-
-
-
-
+
+ En savoir plus
+ `}
+ >
+
+
+
-
+
-
-
-
-
+
+
+
+
+
{/* LISTES */}
-
-
-
- {["1", "2", "3", "4"].map((item) => {
- return (
-
-
-
- )
- })}
-
+
+ {["1", "2", "3", "4"].map((item) => {
+ return (
+
+
+
+ )
+ })}
+
+
+ `}
+ >
+
+
+ {["1", "2", "3", "4"].map((item) => {
+ return (
+
+
+
+ )
+ })}
+
+
+
+
+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi placeat harum laboriosam facilis a odit sunt, vero doloribus voluptatum suscipit odio, esse."
+ }}
+ button={{
+ href: "#FIXME",
+ label: "Rejoignez-nous",
+ placement: verticalPlacements.TOP,
+ }}
+ variant={bgColors.BACKGROUND}
+ />
+ `}
+ >
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi placeat harum laboriosam facilis a odit sunt, vero doloribus voluptatum suscipit odio, esse."
+ }}
+ button={{
+ href: "#FIXME",
+ label: "Rejoignez-nous",
+ placement: verticalPlacements.TOP,
+ }}
+ variant={bgColors.BACKGROUND}
+ />
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi placeat harum laboriosam facilis a odit sunt, vero doloribus voluptatum suscipit odio, esse."
+ }}
+ button={{
+ href: "#FIXME",
+ label: "Nous contacter",
+ placement: verticalPlacements.BOTTOM,
+
+ }}
+ variant={bgColors.PRIMARY}
+ />
+
+
+
+ `}
+ >
+
+
+
+
+ `}
+ >
+
+
+
+
+ `}
+ >
+
+
+
+
`}
+ >
+
+
+
+
`}>
+
+
+
+
+ `}
+ >
+
+
+
+
+
+ `}
+ >
+
+
+
+
+ sss
+
+ `}
+ >
+
-
-
-
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi placeat harum laboriosam facilis a odit sunt, vero doloribus voluptatum suscipit odio, esse."
- }}
- button={{
- href: "#FIXME",
- label: "Rejoignez-nous",
- placement: verticalPlacements.TOP,
- }}
- variant={bgColors.BACKGROUND}
- />
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Sequi placeat harum laboriosam facilis a odit sunt, vero doloribus voluptatum suscipit odio, esse."
- }}
- button={{
- href: "#FIXME",
- label: "Nous contacter",
- placement: verticalPlacements.BOTTOM,
-
- }}
- variant={bgColors.PRIMARY}
- />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ }}
+ >
+ sss
+
+
-
-
-
-
-
+ `}
>
- sss
-
+
+
+
+
+
+
-
+
)
}
export default Demo;
-function Title({ title }: { title: string }) {
+function CopyButton({ code }: { code: string }) {
+ const [copied, setCopied] = useState(false);
+
+ const handleCopy = async () => {
+ await navigator.clipboard.writeText(code);
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1500);
+ };
+
return (
-
{title}
- )
+
+ );
+}
+
+function DemoSection({
+ title,
+ code,
+ children,
+}: {
+ title: string;
+ code?: string;
+ children: React.ReactNode;
+}) {
+ return (
+
+
+
+
{title}
+ {code && }
+
+
+ {children}
+
+ );
}
diff --git a/resources/ts/front/Pages/DynamicPageDefault.tsx b/resources/ts/front/Pages/DynamicPageDefault.tsx
index 0422565c..e15c511b 100644
--- a/resources/ts/front/Pages/DynamicPageDefault.tsx
+++ b/resources/ts/front/Pages/DynamicPageDefault.tsx
@@ -11,6 +11,9 @@ import {
import { AppEnv } from "@/types/global";
import { useFormatedDate } from "@/hooks/use-formated-value";
import { cn } from "@/lib/utils";
+import AppLayout from "../Layouts/AppLayout";
+import PageHeader from "../Components/Theme/PageHeader";
+import Section from "../Components/Theme/Section";
type DynamicPageDefaultProps = {
dynamicPageModel: DynamicPageModelWithRelations;
@@ -203,37 +206,44 @@ export default function DynamicPageDefault({
};
return (
- <>
+
-
- {currentLocaleTitle}
-
-
- {useFormatedDate(String(dynamicPageModel.updated_at))}
-
- {currentLocaleConfig && currentLocaleContent ? (
-
-
- {Object.entries(currentLocaleContent)
- .filter(([key]) => !key.startsWith("reserved_model_"))
- .map(([key, value]) => (
-
- |
- {key}
- |
- {renderField(key, value)} |
-
- ))}
-
-
- ) : (
-
- )}
- >
+
+
+
+ {useFormatedDate(String(dynamicPageModel.updated_at))}
+
+ {currentLocaleConfig && currentLocaleContent ? (
+
+
+ {Object.entries(currentLocaleContent)
+ .filter(([key]) => !key.startsWith("reserved_model_"))
+ .map(([key, value]) => (
+
+ |
+ {key}
+ |
+ {renderField(key, value)} |
+
+ ))}
+
+
+ ) : (
+
+ )}
+
+
);
}
diff --git a/resources/ts/front/Pages/Expertise.tsx b/resources/ts/front/Pages/Expertise.tsx
new file mode 100644
index 00000000..6b352f4f
--- /dev/null
+++ b/resources/ts/front/Pages/Expertise.tsx
@@ -0,0 +1,398 @@
+// * INERTIA
+import { Head } from "@inertiajs/react";
+// * THEME
+import AppLayout from "../Layouts/AppLayout";
+import useTrans from "@/hooks/use-translations";
+import HeroImage from "$/uwil/HeroImage";
+import Section from "$/uwil/Section";
+import Breadcrumbs from "$/uwil/Breadcrumbs";
+import Button from "$/uwil/Button";
+import CarouselSection from "$/uwil/Sections/CarouselSection";
+import { bgColors } from "../lib/constants";
+import useDeviceType from "@/hooks/use-device-type";
+import { Separator } from "@/components/ui/separator";
+import { route } from "ziggy-js";
+
+export default function Expertise() {
+ const { isMobile } = useDeviceType()
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )
+}
diff --git a/resources/ts/front/Pages/Gamme.tsx b/resources/ts/front/Pages/Gamme.tsx
new file mode 100644
index 00000000..7d44b108
--- /dev/null
+++ b/resources/ts/front/Pages/Gamme.tsx
@@ -0,0 +1,126 @@
+import { Head } from "@inertiajs/react";
+import AppLayout from "../Layouts/AppLayout";
+import useTrans from "@/hooks/use-translations";
+import HeroImage from "$/uwil/HeroImage";
+import Section from "$/uwil/Section";
+import Breadcrumbs from "$/uwil/Breadcrumbs";
+import TripleColSection from "$/uwil/Sections/TripleColSection";
+import Button from "$/uwil/Button";
+import Image from "$/uwil/Image";
+import { route } from "ziggy-js";
+
+export default function Expertise() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
De la sélection du pousson à la ponte, jusqu'à la production et la livraison du produit fini, nous nous assurons d'une qualité et d'une sécurité optimale.
+
Nous nous engageons dans un travail d'amélioration constant de 3 piliers clé: la santé des animaux, leur habitat et le respect de leur bien-être.
+
+ Notre démarche s'appuie sur 200 points de contrôle répartis en 5 chapitres: conception, bio sécurité, entretien, conduite de l'élevage et documentation.
+
+
En 2025, nous nous engageons à proposer des solutions en élevage alternatif sur la totalité de nos gammes.
+
En 2028, nous nous engageons à dépasser 90% de nos volumes en oeufs issus d'élevages alternatifs.
+
+
+
+
+
+
+ )
+}
diff --git a/resources/ts/front/Pages/Home.tsx b/resources/ts/front/Pages/Home.tsx
index 1d1f8e31..d144c4d7 100644
--- a/resources/ts/front/Pages/Home.tsx
+++ b/resources/ts/front/Pages/Home.tsx
@@ -11,6 +11,7 @@ import CarouselSection from "$/uwil/Sections/CarouselSection";
import ActionSection from "$/uwil/ActionSection";
import VideoBanner from "$/uwil/VideoBanner";
import { peekCarouselOptions } from "../lib/carousels";
+import { route } from "ziggy-js";
export default function Home() {
return (
@@ -170,7 +171,7 @@ export default function Home() {
}
]}
button={{
- href: "#FIXME",
+ href: route("front.engage"),
label: str(GetTranslation('front.discover_our_commit')).ucFirst().value()
}}
variant="bg-background"
diff --git a/resources/ts/front/Pages/MadeInFrance.tsx b/resources/ts/front/Pages/MadeInFrance.tsx
new file mode 100644
index 00000000..b25133c0
--- /dev/null
+++ b/resources/ts/front/Pages/MadeInFrance.tsx
@@ -0,0 +1,154 @@
+import { Head } from "@inertiajs/react";
+import AppLayout from "../Layouts/AppLayout";
+import useTrans from "@/hooks/use-translations";
+import TripleColSection from "$/uwil/Sections/TripleColSection";
+import { bgColors } from "../lib/constants";
+import CarouselSection from "$/uwil/Sections/CarouselSection";
+import Breadcrumbs from "$/uwil/Breadcrumbs";
+import Section from "$/uwil/Section";
+import Button from "$/uwil/Button";
+import HeroImage from "$/uwil/HeroImage";
+
+export default function MadeInFrance() {
+ return (
+
+
+
+
+
+
+
+
+
+ )
+}
diff --git a/resources/ts/front/lib/constants.tsx b/resources/ts/front/lib/constants.tsx
index d92d79da..0b14c2a2 100644
--- a/resources/ts/front/lib/constants.tsx
+++ b/resources/ts/front/lib/constants.tsx
@@ -43,3 +43,11 @@ export const iconMap = {
} as const
export type IconName = keyof typeof iconMap
+
+// VIDEO PROVIDER
+export const videoProvider = {
+ YOUTUBE: "youtube",
+ VIMEO: "vimeo",
+} as const
+
+export type VideoProviderName = (typeof videoProvider)[keyof typeof videoProvider];
diff --git a/resources/ts/hooks/use-cookie-video-consent.tsx b/resources/ts/hooks/use-cookie-video-consent.tsx
new file mode 100644
index 00000000..297c8cea
--- /dev/null
+++ b/resources/ts/hooks/use-cookie-video-consent.tsx
@@ -0,0 +1,26 @@
+import { VideoProviderName } from "@/front/lib/constants";
+import { useEffect, useState } from "react";
+
+export const useCookieVideoConsent = (service: VideoProviderName) => {
+ const [status, setStatus] = useState(false);
+ const [loading, setLoading] = useState(true);
+
+ useEffect(() => {
+ const interval = setInterval(() => {
+ const currentStatus =
+ window.WebCookieNotice?.getCnCookieStatus(service) === "true";
+
+ setStatus((prev) => (prev !== currentStatus ? currentStatus : prev));
+ setLoading(false);
+ }, 500);
+ return () => clearInterval(interval);
+ }, [service]);
+
+ const accept = () => {
+ // @ts-expect-error external lib
+ window.WebCookieNotice?.acceptCookie(service);
+ setStatus(true);
+ };
+
+ return { status, loading, accept };
+};
diff --git a/resources/ts/types/front.d.ts b/resources/ts/types/front.d.ts
index 5171247f..f316774d 100644
--- a/resources/ts/types/front.d.ts
+++ b/resources/ts/types/front.d.ts
@@ -26,11 +26,15 @@ type CustomButtonVariant = "tertiary" | "inverted";
type ThemeItemCardProps = {
button?: ButtonProps;
- title: TextProps;
+ title?: TextProps;
+ subtitle?: TextProps;
description?: TextProps;
image: ImageProps;
variant?: BgColorName;
-
+ size?: {
+ width: string;
+ height: string;
+ }
}
type ButtonProps = {
@@ -147,15 +151,23 @@ type CarouselProps = {
* @default false
*/
centeredSlides?: boolean;
+ /**
+ * ClassName of the wrapper slide
+ *
+ * @default undefined
+ */
+ wrapperClass?: string;
}
}
type CarouselPropsWithNavigation = CarouselProps & {
prevBtn: ReactNode;
nextBtn: ReactNode;
+ wrapperClass?: string;
}
type IconConfig = {
icon: IconName
- placement?: SidePlacementName
+ placement?: SidePlacementName;
+ className?: string;
}
diff --git a/resources/ts/window.d.ts b/resources/ts/window.d.ts
new file mode 100644
index 00000000..68145863
--- /dev/null
+++ b/resources/ts/window.d.ts
@@ -0,0 +1,8 @@
+import CookieNotice from "@ldc-web/cookie-notice";
+
+declare global {
+ interface Window {
+ CookieNotice: typeof CookieNotice;
+ Recaptcha: unknown;
+ }
+}
diff --git a/resources/views/front/app.blade.php b/resources/views/front/app.blade.php
index 4d009add..8823900b 100644
--- a/resources/views/front/app.blade.php
+++ b/resources/views/front/app.blade.php
@@ -24,6 +24,7 @@
@inertia
+ @include('front.vendor.cookie-notice.cn-cookies')
diff --git a/resources/views/front/vendor/cookie-notice/cn-cookies.blade.php b/resources/views/front/vendor/cookie-notice/cn-cookies.blade.php
new file mode 100644
index 00000000..8316c2a9
--- /dev/null
+++ b/resources/views/front/vendor/cookie-notice/cn-cookies.blade.php
@@ -0,0 +1,202 @@
+{{-- blade-formatter-disable --}}
+@php
+
+$site_name = Str::ucfirst(config('app.name'));
+$logo_picture_url = "/assets/img/logo.svg";
+$logo_title_text = __('Logo du site :name', ['name' => $site_name]);
+$logo_alt_text = __('Logo :name', ['name' => $site_name]);
+
+$strings = (object)[
+ 'modal_title' => __('cookie-notice.modal_title'),
+ 'button_customize_cookies' => __('cookie-notice.button_customize_cookies'),
+ 'button_close_cookies' => __('cookie-notice.button_close_cookies'),
+ 'button_title_open_new_tab' => __('cookie-notice.button_title_open_new_tab'),
+ 'button_toggle_cookie' => __('cookie-notice.button_toggle_cookie'),
+ 'button_forbid_all' => str(__('cookie-notice.button_forbid_all'))->upper(),
+ 'button_allow_all' => str(__('cookie-notice.button_allow_all'))->upper(),
+ 'button_customize' => str(__('cookie-notice.button_customize'))->upper(),
+ 'button_forbid_all_title' => __('cookie-notice.button_forbid_all_title'),
+ 'button_allow_all_title' => __('cookie-notice.button_allow_all_title'),
+ 'button_validate_and_close' => str(__('cookie-notice.button_validate_and_close'))->upper(),
+ 'banner_title' => __('cookie-notice.banner_title', ['site_name' => $site_name]),
+ 'banner_text' => sprintf(
+ "%s
%s",
+ __("cookie-notice.banner_text"),
+ "
" . __('cookie-notice.policy_title') . ""
+ ),
+ 'panel_title' => __('cookie-notice.panel_title'),
+ 'panel_content' => __('cookie-notice.panel_content'),
+ 'panel_subtitle' => __('cookie-notice.panel_subtitle'),
+ 'panel_details' => __('cookie-notice.panel_details'),
+ 'picture_cookie_title' => __('cookie-notice.picture_cookie_title'),
+ 'navigation_title' => __('cookie-notice.navigation_title'),
+];
+
+$cookieInline = function ($cookieName, $text, $subtext = '') {
+ return <<
diff --git a/resources/views/front/vendor/cookie-notice/templates/standard.blade.php b/resources/views/front/vendor/cookie-notice/templates/standard.blade.php
new file mode 100644
index 00000000..bbf9ae24
--- /dev/null
+++ b/resources/views/front/vendor/cookie-notice/templates/standard.blade.php
@@ -0,0 +1,78 @@
+
+
+ {{-- BANNER --}}
+
+
+
+
+ {{-- CONTENT VIEW --}}
+
+ {{-- 1ST PAGE BANNER --}}
+
+
+

+
+
+
+ {!! nl2br(e($strings->banner_title)) !!}
+
+
+
{!! clean($strings->banner_text) !!}
+
+
+
+ {{-- 2ND PAGE CUSTOMIZE PANEL --}}
+
+
+ {{-- COOKIES LIST --}}
+
+
+
+
+ {{-- NAV BAR --}}
+
+
+
+
+
+
+ {{-- COOKIE LIST LI TEMPLATE --}}
+
+
+
+
#name
+
#description
+
#link
+
+
+
+
+
+
+
+
diff --git a/routes/web-front.php b/routes/web-front.php
index 324f6d65..a79665ba 100644
--- a/routes/web-front.php
+++ b/routes/web-front.php
@@ -2,9 +2,30 @@
use App\Http\Controllers\Front\HomeController;
use Illuminate\Support\Facades\Route;
+use Inertia\Inertia;
Route::get('/', [HomeController::class, 'homepage'])->name('homepage');
+Route::get('/nos-engagements', function() {
+ return Inertia::render('front/Pages/Commitment');
+})->name('engage');
+
+Route::get('/nos-engagements/fabrique-en-france', function() {
+ return Inertia::render('front/Pages/MadeInFrance');
+})->name('made-in-france');
+
+Route::get('/nos-engagements/expertise', function() {
+ return Inertia::render('front/Pages/Expertise');
+})->name('expertise');
+
+Route::get('/nos-engagements/gamme', function() {
+ return Inertia::render('front/Pages/Gamme');
+})->name('gamme');
+
+Route::get('/nous-contacter', function() {
+ return Inertia::render('front/Pages/Contact/ContactUs');
+})->name('contact-us');
+
Route::get('/demo', function() {
return inertia('front/Pages/Demo');
})->name('demo');
diff --git a/tsconfig.json b/tsconfig.json
index f2e56c6e..5d44137d 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -21,6 +21,9 @@
],
"$/uwil/*": [
"resources/ts/front/Components/Theme/*"
+ ],
+ "$/base/*": [
+ "resources/ts/front/Components/Base/*"
]
}
},
diff --git a/vite.config.ts b/vite.config.ts
index aa52235d..c8b5bea6 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -5,30 +5,50 @@ import path from "path";
import react from '@vitejs/plugin-react';
export default defineConfig({
- plugins: [
- laravel({
- input: [
- 'resources/ts/app.tsx',
- 'resources/sass/front/app.scss',
- 'resources/sass/back/app.scss',
- ],
- refresh: true,
- }),
- react(),
- copy({
- targets: [
- {
- src: path.normalize("resources/favicons/front/*"),
- dest: path.normalize("public/")
- },
- {
- src: path.normalize("resources/favicon/back/*"),
- dest: path.normalize("public/favicon-back")
- },
- ],
- copyOnce: true,
- verbose: true
- }),
+ plugins: [
+ laravel({
+ input: [
+ 'resources/ts/app.tsx',
+ 'resources/sass/front/app.scss',
+ 'resources/sass/back/app.scss',
+ ],
+ refresh: true,
+ }),
+ react(),
+ copy({
+ targets: [
+ {
+ src: path.normalize("resources/favicons/front/*"),
+ dest: path.normalize("public/")
+ },
+ {
+ src: path.normalize("resources/favicon/back/*"),
+ dest: path.normalize("public/favicon-back")
+ },
+ ],
+ copyOnce: true,
+ verbose: true
+ }),
+ ],
+ resolve: {
+ alias: [
+ {
+ find: "&",
+ replacement: "/resources/assets",
+ },
+ {
+ find: "@",
+ replacement: "/resources/ts",
+ },
+ {
+ find: "$/uwil",
+ replacement: "/resources/ts/front/Components/Theme",
+ },
+ {
+ find: "$/base",
+ replacement: "/resources/ts/front/Components/Base",
+ },
],
},
+},
);