Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 10:01:24 +00:00
2 changed files with 38 additions and 40 deletions

View File

@@ -21,7 +21,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="small"
sizing="large"
background="floatingGradient"
background="circleGradient"
cardStyle="soft-shadow"
primaryButtonStyle="gradient"
secondaryButtonStyle="radial-glow"
@@ -46,7 +46,7 @@ export default function LandingPage() {
title="Experience Premium Japanese Steakhouse Dining"
description="Authentic teppanyaki entertainment meets world-class wagyu beef at Sakura & Flame. Reserve your table for an unforgettable culinary performance."
tag="Premium Dining"
background={{ variant: "floatingGradient" }}
background={{ variant: "plain" }}
buttons={[
{ text: "Reserve Table", href: "contact" },
{ text: "View Menu", href: "experience" }
@@ -74,6 +74,7 @@ export default function LandingPage() {
imageAlt="Sakura & Flame steakhouse interior"
useInvertedBackground={true}
mediaAnimation="slide-up"
metricsAnimation="slide-up"
/>
</div>
@@ -224,7 +225,7 @@ export default function LandingPage() {
tag="Reserve Your Table"
title="Join Us for an Unforgettable Experience"
description="Secure your reservation today and prepare for an evening of culinary artistry, exceptional service, and premium Japanese steakhouse dining at its finest."
background={{ variant: "floatingGradient" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
buttonText="Reserve Now"
inputPlaceholder="Enter your email address"

View File

@@ -1,51 +1,48 @@
"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;
textAnchor?: 'start' | 'middle' | 'end';
dominantBaseline?: 'auto' | 'middle' | 'hanging';
fontSize?: number;
fontWeight?: number | string;
letterSpacing?: number;
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 = '',
textAnchor = 'middle',
dominantBaseline = 'middle',
fontSize = 24,
fontWeight = 'bold',
letterSpacing = 0,
fill = 'currentColor',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
className={className}
viewBox="0 0 200 60"
xmlns="http://www.w3.org/2000/svg"
aria-label={text}
>
<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="100"
y="30"
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill={fill}
fontFamily="inherit"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;