diff --git a/src/app/page.tsx b/src/app/page.tsx index 4ea6e3e..66d1f3e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -47,7 +47,7 @@ export default function LandingPage() { background={{ variant: "sparkles-gradient" }} mediaItems={[ { imageSrc: "http://img.b2bpic.net/free-photo/sushi-rolls-topped-with-sauce-sesame_140725-4243.jpg", imageAlt: "Chef preparing fresh sushi" }, - { imageSrc: "http://img.b2bpic.net/free-photo/high-angle-dish-with-caviar_23-2148494032.jpg", imageAlt: "Premium sushi plating" }, + { imageSrc: "http://img.b2bpic.net/free-photo/high-angel-dish-with-caviar_23-2148494032.jpg", imageAlt: "Premium sushi plating" }, { imageSrc: "http://img.b2bpic.net/free-photo/sake-japanese-beverage-still-life_23-2150170263.jpg", imageAlt: "Restaurant ambiance" }, { imageSrc: "http://img.b2bpic.net/free-photo/beautiful-house-surrounded-by-flowers_23-2150790412.jpg", imageAlt: "Zen garden" }, { imageSrc: "http://img.b2bpic.net/free-photo/different-sushi-delivery-varieties-sushi-lunch-dinner_132075-14214.jpg", imageAlt: "Beautiful bento box" } @@ -68,9 +68,10 @@ export default function LandingPage() { { value: "4.8★", title: "2044 avis Google" }, { value: "30-40€", title: "Prix moyen par personne" } ]} - imageSrc="http://img.b2bpic.net/free-photo/close-up-chef-preparing-traditional-japanese-food_23-2148759577.jpg?_wi=1" + imageSrc="http://img.b2bpic.net/free-photo/close-up-chef-preparing-traditional-japanese-food_23-2148759577.jpg" imageAlt="Open kitchen with chef preparing sushi" mediaAnimation="slide-up" + metricsAnimation="slide-up" useInvertedBackground={true} /> @@ -111,7 +112,7 @@ export default function LandingPage() { features={[ { id: 1, - tag: "Savoir-faire", title: "Cuisine ouverte", subtitle: "Les chefs préparent devant vous", description: "Observez nos chefs japonais préparer vos sushis avec technique et précision. Notre cuisine ouverte offre une transparence totale sur la qualité et la fraîcheur de chaque plat.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-chef-preparing-traditional-japanese-food_23-2148759577.jpg?_wi=2", imageAlt: "Open kitchen with chef" + tag: "Savoir-faire", title: "Cuisine ouverte", subtitle: "Les chefs préparent devant vous", description: "Observez nos chefs japonais préparer vos sushis avec technique et précision. Notre cuisine ouverte offre une transparence totale sur la qualité et la fraîcheur de chaque plat.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-chef-preparing-traditional-japanese-food_23-2148759577.jpg", imageAlt: "Open kitchen with chef" }, { id: 2, diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..b5e05a2 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,39 @@ -"use client"; - -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; +import React from 'react'; interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; + text: string; className?: string; + fontSize?: number; + fontWeight?: number | string; + fill?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +const SvgTextLogo: React.FC = ({ + text, + className = '', + fontSize = 24, + fontWeight = 700, + fill = 'currentColor', +}) => { return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file