Merge version_1 into main #2
@@ -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}
|
||||
/>
|
||||
</div>
|
||||
@@ -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,
|
||||
|
||||
@@ -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<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
||||
text,
|
||||
className = '',
|
||||
fontSize = 24,
|
||||
fontWeight = 700,
|
||||
fill = 'currentColor',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
viewBox={`0 0 ${text.length * fontSize} ${fontSize * 1.5}`}
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<text
|
||||
ref={textRef}
|
||||
x="0"
|
||||
y={verticalAlign === "center" ? "50%" : "0"}
|
||||
className="font-bold fill-current"
|
||||
style={{
|
||||
fontSize: "20px",
|
||||
letterSpacing: "-0.02em",
|
||||
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
|
||||
}}
|
||||
x="50%"
|
||||
y="50%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user