Merge version_1 into main

Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
2026-03-11 02:41:55 +00:00
2 changed files with 19 additions and 39 deletions

View File

@@ -50,10 +50,10 @@ export default function LandingPage() {
background={{ variant: "plain" }}
mediaItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/cook-white-frying-meat-pan-stove_23-2148040251.jpg", imageAlt: "Chef preparing premium wagyu beef" },
{ imageSrc: "http://img.b2bpic.net/free-photo/chef-cooking-dinner_410324-73.jpg?_wi=1", imageAlt: "Teppanyaki griddle with sizzling ingredients" },
{ imageSrc: "http://img.b2bpic.net/free-photo/chef-cooking-dinner_410324-73.jpg", imageAlt: "Teppanyaki griddle with sizzling ingredients" },
{ imageSrc: "http://img.b2bpic.net/free-photo/delicious-sushi-with-shrimps_1203-599.jpg", imageAlt: "Fresh seafood display" },
{ imageSrc: "http://img.b2bpic.net/free-photo/rich-christal-chandelier-hangs-dinner-table-with-red-roses-greenery_8353-7354.jpg", imageAlt: "Elegant dining ambiance" },
{ imageSrc: "http://img.b2bpic.net/free-photo/chef-cooking-dinner_410324-73.jpg?_wi=2", imageAlt: "Chef's signature flambe technique" }
{ imageSrc: "http://img.b2bpic.net/free-photo/chef-cooking-dinner_410324-73.jpg", imageAlt: "Chef's signature flambe technique" }
]}
buttons={[
{ text: "Reserve a Table", href: "reserve" },
@@ -75,6 +75,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-photo/high-angle-woman-preparing-blue-matcha-home_23-2150687524.jpg"
imageAlt="Traditional sake ceremony preparation"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,30 @@
"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;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, className = '' }) => {
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 * 60} 100`}
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="48"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;