Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 23:16:03 +00:00
2 changed files with 37 additions and 43 deletions

View File

@@ -51,7 +51,7 @@ export default function LandingPage() {
{ text: "Order Online", href: "https://order.example.com" }
]}
layoutOrder="default"
imageSrc="http://img.b2bpic.net/free-photo/elevated-view-fish-ball-soup-with-rice-sauces-noodles_23-2148093236.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/elevated-view-fish-ball-soup-with-rice-sauces-noodles_23-2148093236.jpg"
imageAlt="Steaming bowl of authentic Japanese ramen"
mediaAnimation="slide-up"
frameStyle="card"
@@ -71,7 +71,7 @@ export default function LandingPage() {
products={[
{
id: "1", brand: "JINYA", name: "Tonkotsu Black", price: "$16.95", rating: 5,
reviewCount: "487", imageSrc: "http://img.b2bpic.net/free-photo/japanese-food-bowls-arrangement_23-2148809847.jpg?_wi=1", imageAlt: "Tonkotsu Black Ramen with rich pork broth"
reviewCount: "487", imageSrc: "http://img.b2bpic.net/free-photo/japanese-food-bowls-arrangement_23-2148809847.jpg", imageAlt: "Tonkotsu Black Ramen with rich pork broth"
},
{
id: "2", brand: "JINYA", name: "Spicy Chicken Ramen", price: "$15.95", rating: 5,
@@ -79,7 +79,7 @@ export default function LandingPage() {
},
{
id: "3", brand: "JINYA", name: "Vegan Ramen", price: "$14.95", rating: 5,
reviewCount: "328", imageSrc: "http://img.b2bpic.net/free-photo/homemade-asian-japanese-food-with-sauce-wooden-spoon-sesame-seeds-white-backdrop_23-2148123709.jpg?_wi=1", imageAlt: "Plant-based Vegan Ramen with vegetable broth"
reviewCount: "328", imageSrc: "http://img.b2bpic.net/free-photo/homemade-asian-japanese-food-with-sauce-wooden-spoon-sesame-seeds-white-backdrop_23-2148123709.jpg", imageAlt: "Plant-based Vegan Ramen with vegetable broth"
}
]}
/>
@@ -129,19 +129,19 @@ export default function LandingPage() {
animationType="slide-up"
plans={[
{
id: "ramen-bowls", title: "Ramen Bowls", price: "From $12.95", period: "Happy Hour Price", imageSrc: "http://img.b2bpic.net/free-photo/japanese-food-bowls-arrangement_23-2148809847.jpg?_wi=2", imageAlt: "Ramen bowls special pricing", button: { text: "See Menu", href: "#menu" },
id: "ramen-bowls", title: "Ramen Bowls", price: "From $12.95", period: "Happy Hour Price", imageSrc: "http://img.b2bpic.net/free-photo/japanese-food-bowls-arrangement_23-2148809847.jpg", imageAlt: "Ramen bowls special pricing", button: { text: "See Menu", href: "#menu" },
features: [
"All signature ramen included", "Rich authentic broths", "Premium noodle quality", "Fresh ingredient toppings"
]
},
{
id: "japanese-beer", title: "Japanese Beer & Drinks", price: "From $4.95", period: "Happy Hour Price", imageSrc: "http://img.b2bpic.net/free-photo/elevated-view-fish-ball-soup-with-rice-sauces-noodles_23-2148093236.jpg?_wi=2", imageAlt: "Japanese beverage selection", button: { text: "See Drinks", href: "#menu" },
id: "japanese-beer", title: "Japanese Beer & Drinks", price: "From $4.95", period: "Happy Hour Price", imageSrc: "http://img.b2bpic.net/free-photo/elevated-view-fish-ball-soup-with-rice-sauces-noodles_23-2148093236.jpg", imageAlt: "Japanese beverage selection", button: { text: "See Drinks", href: "#menu" },
features: [
"Premium Japanese imports", "Craft beer selection", "Traditional sake", "House specialty cocktails"
]
},
{
id: "small-plates", title: "Small Plates & Appetizers", price: "From $6.95", period: "Happy Hour Price", imageSrc: "http://img.b2bpic.net/free-photo/homemade-asian-japanese-food-with-sauce-wooden-spoon-sesame-seeds-white-backdrop_23-2148123709.jpg?_wi=2", imageAlt: "Small plates appetizers", button: { text: "See Appetizers", href: "#menu" },
id: "small-plates", title: "Small Plates & Appetizers", price: "From $6.95", period: "Happy Hour Price", imageSrc: "http://img.b2bpic.net/free-photo/homemade-asian-japanese-food-with-sauce-wooden-spoon-sesame-seeds-white-backdrop_23-2148123709.jpg", imageAlt: "Small plates appetizers", button: { text: "See Appetizers", href: "#menu" },
features: [
"Gyoza dumplings", "Edamame", "Spring rolls", "Seasonal vegetables"
]
@@ -200,4 +200,4 @@ export default function LandingPage() {
</div>
</ThemeProvider>
);
}
}

View File

@@ -1,51 +1,45 @@
"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;
fontSize?: number;
fontWeight?: number | string;
fontFamily?: string;
fill?: string;
className?: 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,
fontSize = 48,
fontWeight = 'bold',
fontFamily = 'system-ui, -apple-system, sans-serif',
fill = '#000000',
className = '',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width="100%"
height="100%"
viewBox="0 0 400 100"
preserveAspectRatio="xMidYMid meet"
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}
fontFamily={fontFamily}
fill={fill}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;