Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-13 09:45:19 +00:00
2 changed files with 31 additions and 38 deletions

View File

@@ -69,10 +69,11 @@ export default function LandingPage() {
{ value: "20+", title: "Years of Excellence" },
{ value: "98%", title: "Guest Satisfaction" }
]}
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=cud80f&_wi=1"
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=cud80f"
imageAlt="Kobe Prime steakhouse interior with intimate seating"
useInvertedBackground={false}
mediaAnimation="slide-up"
metricsAnimation="slide-up"
/>
</div>
@@ -215,7 +216,7 @@ export default function LandingPage() {
id: "8", title: "What is your cancellation policy?", content: "Reservations cancelled 7+ days prior receive full credit. Cancellations 3-6 days prior are subject to 50% charge. Within 3 days, the full reservation cost applies. No-shows are charged in full."
}
]}
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=cud80f&_wi=2"
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=cud80f"
imageAlt="Kobe Prime intimate dining setting"
mediaAnimation="slide-up"
faqsAnimation="slide-up"

View File

@@ -1,51 +1,43 @@
"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;
textClassName?: 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 = '',
textClassName = '',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
className={`w-full h-auto ${className}`}
viewBox="0 0 300 100"
xmlns="http://www.w3.org/2000/svg"
aria-label={`Logo: ${text}`}
>
<defs>
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style={{ stopColor: '#fff', stopOpacity: 1 }} />
<stop offset="100%" style={{ stopColor: '#f0f0f0', stopOpacity: 1 }} />
</linearGradient>
</defs>
<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%"
dominantBaseline="middle"
textAnchor="middle"
fontSize="48"
fontWeight="bold"
fill="url(#textGradient)"
className={textClassName}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;