style: 💄 after re7 #17
This commit is contained in:
parent
4eca9c7d24
commit
ecae3660d0
34 changed files with 437 additions and 124 deletions
19
app/Enums/Contact/ActivitySectorEnum.php
Normal file
19
app/Enums/Contact/ActivitySectorEnum.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Contact;
|
||||
|
||||
use Uwil\LaravelCommon\Traits\Enums\BaseEnum;
|
||||
|
||||
enum ActivitySectorEnum: int
|
||||
{
|
||||
use BaseEnum;
|
||||
|
||||
case retailer = 1;
|
||||
|
||||
/**
|
||||
* Optionnal labels definition.
|
||||
*/
|
||||
private const LABELS = [
|
||||
self::retailer->name => 'Distribution',
|
||||
];
|
||||
}
|
||||
19
app/Enums/Contact/ObjectEnum.php
Normal file
19
app/Enums/Contact/ObjectEnum.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Contact;
|
||||
|
||||
use Uwil\LaravelCommon\Traits\Enums\BaseEnum;
|
||||
|
||||
enum ObjectEnum: int
|
||||
{
|
||||
use BaseEnum;
|
||||
|
||||
case message = 1;
|
||||
|
||||
/**
|
||||
* Optionnal labels definition.
|
||||
*/
|
||||
private const LABELS = [
|
||||
self::message->name => 'Message',
|
||||
];
|
||||
}
|
||||
|
|
@ -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.
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
]
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
]
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ parameters:
|
|||
paths:
|
||||
- app/
|
||||
|
||||
level: 5
|
||||
level: 7
|
||||
|
|
|
|||
14
resources/sass/front/vendor/_cookie-notice.scss
vendored
14
resources/sass/front/vendor/_cookie-notice.scss
vendored
|
|
@ -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%);
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
<form onSubmit={submit}>
|
||||
<form>
|
||||
<InputGroup className="rounded-full">
|
||||
<InputGroupInput
|
||||
value={data.search}
|
||||
|
|
@ -28,7 +30,11 @@ export default function SearchInput() {
|
|||
placeholder="Rechercher..."
|
||||
/>
|
||||
<InputGroupAddon align="inline-end">
|
||||
<Button variant="ghost" className="rounded-full w-7 py-0 h-7">
|
||||
<Button
|
||||
onClick={submit}
|
||||
variant="ghost"
|
||||
className="rounded-full w-7 py-0 h-7"
|
||||
>
|
||||
<SearchIcon />
|
||||
</Button>
|
||||
</InputGroupAddon>
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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],
|
||||
})}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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<ButtonProps, "variant" | "size"> & {
|
||||
variant?: ButtonProps["variant"] | CustomButtonVariant;
|
||||
|
|
@ -25,6 +25,7 @@ type ThemeButtonProps = Omit<ButtonProps, "variant" | "size"> & {
|
|||
|
||||
const customVariantSizes: Record<CustomSize, string> = {
|
||||
xs: "h-7 px-3 text-sm",
|
||||
md: "h-10 px-6 py-2 text-md",
|
||||
};
|
||||
|
||||
const customVariantStyles: Record<CustomButtonVariant, string> = {
|
||||
|
|
@ -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 ?? "";
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
<li {...props}>
|
||||
<NavigationMenuLink asChild>
|
||||
<Link href={href}>
|
||||
<div className="flex flex-col gap-1 text-sm py-1.5">
|
||||
<div className="leading-none font-medium">{title}</div>
|
||||
</div>
|
||||
</Link>
|
||||
{external ? (
|
||||
<a href={href} target="_blank" rel="noreferrer">
|
||||
<div className="flex flex-col gap-1 text-sm py-1.5">
|
||||
<div className="leading-none font-medium">{title}</div>
|
||||
</div>
|
||||
</a>
|
||||
) : (
|
||||
<Link href={href}>
|
||||
<div className="flex flex-col gap-1 text-sm py-1.5">
|
||||
<div className="leading-none font-medium">{title}</div>
|
||||
</div>
|
||||
</Link>
|
||||
)}
|
||||
</NavigationMenuLink>
|
||||
</li>
|
||||
);
|
||||
|
|
@ -67,6 +79,7 @@ export default function DesktopNav({
|
|||
<ListItem
|
||||
href={child.href ?? ""}
|
||||
title={child.title}
|
||||
external={child.external}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
|
|
@ -84,7 +97,13 @@ export default function DesktopNav({
|
|||
"text-md font-bold",
|
||||
)}
|
||||
>
|
||||
<Link href={link.href}>{link.title}</Link>
|
||||
{link.external ? (
|
||||
<a href={link.href} target="_blank" rel="noreferrer">
|
||||
{link.title}
|
||||
</a>
|
||||
) : (
|
||||
<Link href={link.href}>{link.title}</Link>
|
||||
)}
|
||||
</NavigationMenuLink>
|
||||
</NavigationMenuItem>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
<Button variant="ghost" className="cursor-pointor [&_svg]:size-7" asChild>
|
||||
<Link href="#FIXME">
|
||||
<Link href={route("front.search")}>
|
||||
<Search />
|
||||
</Link>
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -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 ? (
|
||||
<a
|
||||
href={href ?? "#"}
|
||||
target="_blank"
|
||||
className={cn("text-xl font-bold", className)}
|
||||
rel="noreferrer"
|
||||
>
|
||||
{title}
|
||||
</a>
|
||||
) : (
|
||||
<Link href={href ?? "#"} className="text-xl font-bold">
|
||||
{title}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
export default function MobileNav({
|
||||
navLinks,
|
||||
}: {
|
||||
|
|
@ -27,7 +49,7 @@ export default function MobileNav({
|
|||
const [activeMenu, setActiveMenu] = useState<FrontNavLinkProps | null>(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 (
|
||||
<div className={cn("lg:hidden", headerClasses)}>
|
||||
<GoToSearchPage />
|
||||
|
|
@ -82,12 +104,8 @@ export default function MobileNav({
|
|||
<ChevronRight />
|
||||
</Button>
|
||||
) : (
|
||||
<Link
|
||||
href={link.href ?? "#"}
|
||||
className="text-xl font-bold"
|
||||
>
|
||||
{link.title}
|
||||
</Link>
|
||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||
<ConditionalLink {...link} />
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
|
|
@ -115,12 +133,11 @@ export default function MobileNav({
|
|||
<ul className="list-disc pl-5 space-y-4">
|
||||
{activeMenu.children?.map((child) => (
|
||||
<li key={child.title}>
|
||||
<Link
|
||||
href={child.href ?? "#"}
|
||||
className=" font-semibold text-md"
|
||||
>
|
||||
{child.title}
|
||||
</Link>
|
||||
<ConditionalLink
|
||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||
{...child}
|
||||
className="font-semibold text-md"
|
||||
/>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
|
@ -132,7 +149,7 @@ export default function MobileNav({
|
|||
</SheetContent>
|
||||
</Sheet>
|
||||
|
||||
<Logo className="translate-y-1/2 absolute bottom-0 left-1/2 -translate-x-1/2 w-[79px] h-auto z-10" />
|
||||
<Logo className="-translate-y-1/2 absolute top-1/2 left-1/2 -translate-x-1/2 w-[79px] h-auto z-10" />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export default function HeroImage(props: HeroImageProps) {
|
|||
return (
|
||||
<section className="relative">
|
||||
<Image
|
||||
size="w-full h-screen"
|
||||
size="w-full h-auto md:h-screen"
|
||||
shape="square"
|
||||
image={{
|
||||
src: image.src,
|
||||
|
|
@ -21,7 +21,7 @@ export default function HeroImage(props: HeroImageProps) {
|
|||
title: image.title,
|
||||
}}
|
||||
/>
|
||||
<div className="bg-background rounded-l-3xl z-1 absolute bottom-0 -translate-y-[75px] right-0 w-[85%] md:w-[55%] p-10">
|
||||
<div className="bg-background rounded-l-3xl z-1 md:absolute md:bottom-0 md:-translate-y-[75px] md:right-0 w-full md:w-[55%] p-10">
|
||||
<p className={cn("font-bold text-3xl", title.font)}>{title.text}</p>
|
||||
<p className={cn("mt-4", description.font)}>{description.text}</p>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ export default function ItemCard({
|
|||
|
||||
<div className="w-full mt-6 text-center px-10 md:px-0">
|
||||
{title?.text && (
|
||||
<h4 className={cn("text-xl md:text-3xl", titleFont, titleWeight)}>
|
||||
<h4 className={cn("text-3xl md:text-3xl", titleFont, titleWeight)}>
|
||||
{title.text}
|
||||
</h4>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import { cn } from "@/lib/utils";
|
|||
export default function ListSectionTitle() {
|
||||
return (
|
||||
<div className="flex items-center justify-start gap-20 mb-6">
|
||||
<h3 className={cn("text-5xl font-bold")}>Recettes</h3>
|
||||
<p className=" opacity-[60%] text-2xl">(12/150)</p>
|
||||
<h3 className={cn("text-3xl font-bold")}>Recettes</h3>
|
||||
<p className=" opacity-[60%] text-xl">(12/150)</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ const Section = forwardRef<HTMLDivElement, Props>((props, ref) => {
|
|||
<section ref={ref} className={cn(variant, "text-center py-20", className)}>
|
||||
<Container className={cn(containerClassName)}>
|
||||
{btnPlacement === verticalPlacements.TOP && button && (
|
||||
<div className="mb-5">
|
||||
<div className="mb-10">
|
||||
<Button
|
||||
variant={btnVariant}
|
||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||
|
|
@ -63,11 +63,11 @@ const Section = forwardRef<HTMLDivElement, Props>((props, ref) => {
|
|||
</div>
|
||||
)}
|
||||
{(title || subtitle || description) && (
|
||||
<Container className={cn("space-y-5 mb-12")}>
|
||||
<Container className={cn("space-y-5 mb-16")}>
|
||||
{title && (
|
||||
<h2
|
||||
className={cn(
|
||||
"text-5xl max-w-5xl mx-auto uppercase",
|
||||
"text-3xl md:text-5xl max-w-5xl mx-auto uppercase",
|
||||
title.font,
|
||||
title.weight ?? "font-bold",
|
||||
)}
|
||||
|
|
@ -78,7 +78,7 @@ const Section = forwardRef<HTMLDivElement, Props>((props, ref) => {
|
|||
{subtitle && (
|
||||
<h3
|
||||
className={cn(
|
||||
"text-3xl mx-auto max-w-2xl uppercase",
|
||||
"text-2xl md:text-3xl mx-auto max-w-2xl uppercase",
|
||||
subtitle.font,
|
||||
subtitle.weight ?? "font-bold",
|
||||
)}
|
||||
|
|
@ -101,7 +101,7 @@ const Section = forwardRef<HTMLDivElement, Props>((props, ref) => {
|
|||
)}
|
||||
<div>{children}</div>
|
||||
{btnPlacement === verticalPlacements.BOTTOM && button && (
|
||||
<div className="mt-5">
|
||||
<div className="mt-16">
|
||||
<Button
|
||||
variant={btnVariant}
|
||||
link={{
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ export default function TripleColSection(props: TripleColSectionProps) {
|
|||
},
|
||||
})}
|
||||
>
|
||||
<TripleCol cols={cols} />
|
||||
<TripleCol cols={cols} variant={variant} />
|
||||
</Section>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
<div className="grid md:grid-cols-3 grid-cols-1 md:gap-8">
|
||||
{cols.map((col, index) => {
|
||||
const isLast = index === cols.length - 1;
|
||||
return (
|
||||
<div className="text-center flex flex-col items-center md:gap-5">
|
||||
<div className="text-center flex flex-col items-center gap-3 md:gap-5">
|
||||
<Image
|
||||
size={`${width} ${height}`}
|
||||
image={col.image}
|
||||
|
|
@ -61,7 +64,9 @@ export default function TripleCol(props: Props) {
|
|||
</p>
|
||||
|
||||
{!isLast && (
|
||||
<Separator className="md:hidden w-[70%] bg-primary h-3 my-12" />
|
||||
<Separator
|
||||
className={cn("md:hidden w-[70%] h-3 my-12", separatorVariant)}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
]}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export default function ContactUs() {
|
|||
/>
|
||||
<div className="mt-20">
|
||||
<Image
|
||||
size="mx-auto w-[97%] md:w-72 lg:w-72 aspect-square"
|
||||
size="mx-auto w-[97%] md:w-96 lg:w-96 aspect-square"
|
||||
image={{
|
||||
src: "/assets/img/elephant.jpg",
|
||||
alt: "ALT",
|
||||
|
|
|
|||
|
|
@ -9,11 +9,11 @@ import {
|
|||
DynamicPageModelWithRelations,
|
||||
} from "@/back/types/dynamic-pages";
|
||||
import { AppEnv } from "@/types/global";
|
||||
import { useFormatedDate } from "@/hooks/use-formated-value";
|
||||
import { cn } from "@/lib/utils";
|
||||
// * THEME
|
||||
import AppLayout from "../Layouts/AppLayout";
|
||||
import PageHeader from "../Components/Theme/PageHeader";
|
||||
import Section from "../Components/Theme/Section";
|
||||
import PageHeader from "$/uwil/PageHeader";
|
||||
import Section from "$/uwil/Section";
|
||||
|
||||
type DynamicPageDefaultProps = {
|
||||
dynamicPageModel: DynamicPageModelWithRelations;
|
||||
|
|
@ -217,9 +217,6 @@ export default function DynamicPageDefault({
|
|||
}}
|
||||
/>
|
||||
<Section className="text-start tiptap">
|
||||
<small className="my-5">
|
||||
{useFormatedDate(String(dynamicPageModel.updated_at))}
|
||||
</small>
|
||||
{currentLocaleConfig && currentLocaleContent ? (
|
||||
<table className="w-1/2 mx-auto border-collapse">
|
||||
<tbody>
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
<AppLayout>
|
||||
<Head title={useTrans("front.expertise")} />
|
||||
<Section className="md:hidden py-3">
|
||||
<Breadcrumbs
|
||||
breadcrumbs={[
|
||||
{
|
||||
title: "Accueil",
|
||||
url: "/",
|
||||
},
|
||||
{
|
||||
title: "Ovoteam s'engage",
|
||||
url: "",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</Section>
|
||||
<HeroImage
|
||||
title={{
|
||||
text: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nesciunt unde esse est maiores tempora, sequi, soluta officiis quae aliquid sit ducimus.",
|
||||
|
|
@ -30,7 +45,7 @@ export default function Expertise() {
|
|||
src: "/assets/img/elephant.jpg",
|
||||
}}
|
||||
/>
|
||||
<Section className="py-0 pt-12">
|
||||
<Section className="py-0 pt-12 hidden md:block">
|
||||
<Breadcrumbs
|
||||
breadcrumbs={[
|
||||
{
|
||||
|
|
@ -46,6 +61,7 @@ export default function Expertise() {
|
|||
</Section>
|
||||
<CarouselSection
|
||||
variant={bgColors.BACKGROUND}
|
||||
carousel={usePeekCarouselOptions()}
|
||||
title={{
|
||||
text: "Les dates marquantes de la marque",
|
||||
}}
|
||||
|
|
@ -157,12 +173,14 @@ export default function Expertise() {
|
|||
}}
|
||||
>
|
||||
<CarouselSection
|
||||
sectionClassName="py-0"
|
||||
variant={bgColors.PRIMARY}
|
||||
carousel={{
|
||||
centeredSlides: isMobile,
|
||||
wrapperClass: isMobile ? "pb-20" : "pb-0",
|
||||
breakpoints: {
|
||||
0: {
|
||||
slidesPerView: 1,
|
||||
slidesPerView: 1.3,
|
||||
spaceBetween: 0,
|
||||
},
|
||||
768: {
|
||||
|
|
@ -236,6 +254,8 @@ export default function Expertise() {
|
|||
</Section>
|
||||
|
||||
<Section
|
||||
className="py-0 pt-20 pb-8"
|
||||
containerClassName="px-0"
|
||||
subtitle={{
|
||||
text: "Les industries agroalimentaires",
|
||||
}}
|
||||
|
|
@ -247,10 +267,11 @@ export default function Expertise() {
|
|||
sectionClassName="py-0 pt-8"
|
||||
variant={bgColors.BACKGROUND}
|
||||
carousel={{
|
||||
centeredSlides: isMobile,
|
||||
wrapperClass: isMobile ? "pb-20" : "pb-0",
|
||||
breakpoints: {
|
||||
0: {
|
||||
slidesPerView: 1,
|
||||
slidesPerView: 1.3,
|
||||
spaceBetween: 0,
|
||||
},
|
||||
768: {
|
||||
|
|
@ -313,8 +334,10 @@ export default function Expertise() {
|
|||
]}
|
||||
/>
|
||||
</Section>
|
||||
<Separator className="mx-auto w-[70%] md:w-[65%] bg-primary h-3 my-12" />
|
||||
<Separator className="mx-auto w-[70%] md:w-[65%] bg-primary h-3 my-6" />
|
||||
<Section
|
||||
className="py-8"
|
||||
containerClassName="px-0"
|
||||
subtitle={{
|
||||
text: "Grandes et moyennes surfaces",
|
||||
}}
|
||||
|
|
@ -323,13 +346,14 @@ export default function Expertise() {
|
|||
}}
|
||||
>
|
||||
<CarouselSection
|
||||
sectionClassName="py-0 pt-8"
|
||||
sectionClassName="py-0 pt-8 md:max-w-5xl md:mx-auto"
|
||||
variant={bgColors.BACKGROUND}
|
||||
carousel={{
|
||||
centeredSlides: isMobile,
|
||||
wrapperClass: isMobile ? "pb-20" : "pb-0",
|
||||
breakpoints: {
|
||||
0: {
|
||||
slidesPerView: 1,
|
||||
slidesPerView: 1.3,
|
||||
spaceBetween: 0,
|
||||
},
|
||||
768: {
|
||||
|
|
@ -380,7 +404,7 @@ export default function Expertise() {
|
|||
]}
|
||||
/>
|
||||
</Section>
|
||||
<Section>
|
||||
<Section className="py-0 pt-8 pb-20">
|
||||
<BackToHome />
|
||||
</Section>
|
||||
</AppLayout>
|
||||
|
|
|
|||
|
|
@ -12,20 +12,7 @@ export default function Expertise() {
|
|||
return (
|
||||
<AppLayout>
|
||||
<Head title={useTrans("front.gamme")} />
|
||||
<HeroImage
|
||||
title={{
|
||||
text: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nesciunt unde esse est maiores tempora, sequi, soluta officiis quae aliquid sit ducimus.",
|
||||
}}
|
||||
description={{
|
||||
text: "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Alias commodi esse quas, ad dicta cumque est nemo officia repellat eum neque vel quos optio consectetur odit voluptatum laudantium itaque. Facere. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus, quaerat. Illum odit vero voluptatibus eveniet minus. Repudiandae minus commodi temporibus voluptatibus quos quidem ut excepturi praesentium doloremque autem, eos laborum.",
|
||||
}}
|
||||
image={{
|
||||
alt: "Alt",
|
||||
title: "title",
|
||||
src: "/assets/img/elephant.jpg",
|
||||
}}
|
||||
/>
|
||||
<Section className="py-0 pt-12">
|
||||
<Section className="md:hidden py-3">
|
||||
<Breadcrumbs
|
||||
breadcrumbs={[
|
||||
{
|
||||
|
|
@ -39,7 +26,34 @@ export default function Expertise() {
|
|||
]}
|
||||
/>
|
||||
</Section>
|
||||
<Section>
|
||||
<HeroImage
|
||||
title={{
|
||||
text: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nesciunt unde esse est maiores tempora, sequi, soluta officiis quae aliquid sit ducimus.",
|
||||
}}
|
||||
description={{
|
||||
text: "Lorem ipsum dolor sit amet consectetur, adipisicing elit. Alias commodi esse quas, ad dicta cumque est nemo officia repellat eum neque vel quos optio consectetur odit voluptatum laudantium itaque. Facere. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus, quaerat. Illum odit vero voluptatibus eveniet minus. Repudiandae minus commodi temporibus voluptatibus quos quidem ut excepturi praesentium doloremque autem, eos laborum.",
|
||||
}}
|
||||
image={{
|
||||
alt: "Alt",
|
||||
title: "title",
|
||||
src: "/assets/img/elephant.jpg",
|
||||
}}
|
||||
/>
|
||||
<Section className="py-0 pt-12 hidden md:block">
|
||||
<Breadcrumbs
|
||||
breadcrumbs={[
|
||||
{
|
||||
title: "Accueil",
|
||||
url: "/",
|
||||
},
|
||||
{
|
||||
title: "Ovoteam s'engage",
|
||||
url: "",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</Section>
|
||||
<Section className="py-8 md:py-20">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-5">
|
||||
<div className="order-1 md:order-2 p-3 flex items-center justify-center">
|
||||
<Image
|
||||
|
|
@ -80,6 +94,7 @@ export default function Expertise() {
|
|||
</div>
|
||||
</Section>
|
||||
<TripleColSection
|
||||
className="py-8 md:py-20"
|
||||
cols={[
|
||||
{
|
||||
title: {
|
||||
|
|
@ -123,7 +138,7 @@ export default function Expertise() {
|
|||
]}
|
||||
variant="bg-background"
|
||||
/>
|
||||
<Section>
|
||||
<Section className="py-0 pt-8 pb-20 md:py-20">
|
||||
<BackToHome />
|
||||
</Section>
|
||||
</AppLayout>
|
||||
|
|
|
|||
|
|
@ -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?",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
<AppLayout>
|
||||
<Head title={useTrans("front.made-in-france")} />
|
||||
<Section className="md:hidden py-3">
|
||||
<Breadcrumbs
|
||||
breadcrumbs={[
|
||||
{
|
||||
title: "Accueil",
|
||||
url: "/",
|
||||
},
|
||||
{
|
||||
title: "Ovoteam s'engage",
|
||||
url: "",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</Section>
|
||||
<HeroImage
|
||||
title={{
|
||||
text: "Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nesciunt unde esse est maiores tempora, sequi, soluta officiis quae aliquid sit ducimus.",
|
||||
|
|
@ -26,7 +41,7 @@ export default function MadeInFrance() {
|
|||
src: "/assets/img/elephant.jpg",
|
||||
}}
|
||||
/>
|
||||
<Section className="py-0 pt-12">
|
||||
<Section className="py-0 pt-12 hidden md:block">
|
||||
<Breadcrumbs
|
||||
breadcrumbs={[
|
||||
{
|
||||
|
|
@ -89,6 +104,7 @@ export default function MadeInFrance() {
|
|||
/>
|
||||
|
||||
<CarouselSection
|
||||
carousel={usePeekCarouselOptions()}
|
||||
variant={bgColors.PRIMARY}
|
||||
title={{
|
||||
text: "Certifications",
|
||||
|
|
|
|||
144
resources/ts/front/Pages/Search.tsx
Normal file
144
resources/ts/front/Pages/Search.tsx
Normal file
|
|
@ -0,0 +1,144 @@
|
|||
// * REACT/INERTIA
|
||||
import { Head, useForm } from "@inertiajs/react";
|
||||
// * SHADCN
|
||||
import {
|
||||
InputGroup,
|
||||
InputGroupAddon,
|
||||
InputGroupInput,
|
||||
} from "@/components/ui/input-group";
|
||||
import { Button } from "@/components/ui/button";
|
||||
// * LUCIDE
|
||||
import { SearchIcon, X } from "lucide-react";
|
||||
// * THEME
|
||||
import Section from "$/uwil/Section";
|
||||
import AppLayout from "../Layouts/AppLayout";
|
||||
import PageHeader from "$/uwil/PageHeader";
|
||||
import ListSectionTitle from "$/uwil/ListSectionTitle";
|
||||
import ItemCard from "$/uwil/ItemCard";
|
||||
import BackToHome from "$/uwil/BackToHome";
|
||||
// * BASE
|
||||
import useTrans from "@/hooks/use-translations";
|
||||
import InputError from "$/base/InputError";
|
||||
import { verticalPlacements } from "../lib/constants";
|
||||
import str from "@/hooks/use-string";
|
||||
import { GetTranslation } from "@/lib/utils";
|
||||
|
||||
export default function Search() {
|
||||
const { data, setData, processing, errors } = useForm({
|
||||
search: "",
|
||||
});
|
||||
const submit = (e) => {
|
||||
e.preventDefault();
|
||||
};
|
||||
return (
|
||||
<AppLayout>
|
||||
<Head title={useTrans("front.search")} />
|
||||
<PageHeader
|
||||
title={{
|
||||
text: "Rechercher",
|
||||
}}
|
||||
description={{
|
||||
text: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quo mollitia minus cum obcaecati necessitatibus? Molestias, harum. Sapiente eos ipsa ullam esse laborum id libero consectetur voluptate labore eaque. Optio, corporis?",
|
||||
}}
|
||||
/>
|
||||
<Section className="py-0 pt-20 hidden md:block">
|
||||
<form onSubmit={submit} className="max-w-lg mx-auto">
|
||||
<InputGroup className="rounded-full h-10">
|
||||
<InputGroupInput
|
||||
value={data.search}
|
||||
onChange={(e) => setData("search", e.target.value)}
|
||||
disabled={processing}
|
||||
placeholder="Rechercher..."
|
||||
/>
|
||||
<InputGroupAddon align="inline-end">
|
||||
<Button variant="ghost" className="w-7 py-0 h-7">
|
||||
<X />
|
||||
</Button>
|
||||
<Button variant="ghost" className="rounded-full w-7 py-0 h-7">
|
||||
<SearchIcon />
|
||||
</Button>
|
||||
</InputGroupAddon>
|
||||
</InputGroup>
|
||||
<InputError message={errors?.search} />
|
||||
</form>
|
||||
</Section>
|
||||
|
||||
<Section
|
||||
button={{
|
||||
href: "/FIXME",
|
||||
label: str(GetTranslation("front.see.all_products"))
|
||||
.ucFirst()
|
||||
.value(),
|
||||
icon: {
|
||||
icon: "chevron-right",
|
||||
},
|
||||
placement: verticalPlacements.TOP,
|
||||
}}
|
||||
>
|
||||
<ListSectionTitle />
|
||||
<div className="inline-grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-10 lg:gap-16">
|
||||
{["1", "2", "3", "4"].map(() => {
|
||||
return (
|
||||
<div>
|
||||
<ItemCard
|
||||
image={{
|
||||
alt: "alt",
|
||||
title: "title",
|
||||
src: "/assets/img/elephant.jpg",
|
||||
}}
|
||||
title={{
|
||||
text: "Oeuf poché moulé",
|
||||
}}
|
||||
button={{
|
||||
label: "Voir le produit",
|
||||
href: "/ddd",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</Section>
|
||||
<Section
|
||||
className="pb-10"
|
||||
button={{
|
||||
href: "/FIXME",
|
||||
label: str(GetTranslation("front.see.all_products"))
|
||||
.ucFirst()
|
||||
.value(),
|
||||
icon: {
|
||||
icon: "chevron-right",
|
||||
},
|
||||
placement: verticalPlacements.BOTTOM,
|
||||
}}
|
||||
>
|
||||
<ListSectionTitle />
|
||||
<div className="inline-grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-10 lg:gap-16">
|
||||
{["1", "2", "3", "4"].map(() => {
|
||||
return (
|
||||
<div>
|
||||
<ItemCard
|
||||
image={{
|
||||
alt: "alt",
|
||||
title: "title",
|
||||
src: "/assets/img/elephant.jpg",
|
||||
}}
|
||||
title={{
|
||||
text: "Oeuf poché moulé",
|
||||
}}
|
||||
button={{
|
||||
label: "Voir le produit",
|
||||
href: "/ddd",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</Section>
|
||||
<Section className="py-0 pb-20">
|
||||
<BackToHome />
|
||||
</Section>
|
||||
</AppLayout>
|
||||
);
|
||||
}
|
||||
1
resources/ts/types/front.d.ts
vendored
1
resources/ts/types/front.d.ts
vendored
|
|
@ -30,6 +30,7 @@ type ImageProps = {
|
|||
type FrontNavLinkProps = {
|
||||
title: string;
|
||||
href?: string;
|
||||
external?: boolean;
|
||||
children?: FrontNavLinkProps[];
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
use App\Http\Controllers\Front\ContactController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
|
||||
|
|
@ -23,6 +24,10 @@ Route::get('/nous-contacter', function () {
|
|||
return Inertia::render('front/Pages/Contact/ContactUs');
|
||||
})->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');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue