Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 23:59:30 +00:00
2 changed files with 29 additions and 42 deletions

View File

@@ -88,6 +88,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-photo/coffee-shop-cafe-restaurant-bistro-freshness-concept_53876-41421.jpg"
imageAlt="Warm and inviting restaurant interior"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
useInvertedBackground={false}
/>
</div>
@@ -159,6 +160,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-photo/front-view-man-making-coffee_23-2150354579.jpg"
imageAlt="Ethiopian coffee ceremony - cultural dining experience"
mediaPosition="right"
mediaAnimation="slide-up"
inputPlaceholder="your@email.com"
buttonText="Request Reservation"
termsText="We confirm reservations quickly by phone. Your information is secure and will only be used to confirm your booking."

View File

@@ -1,50 +1,35 @@
"use client";
import React, { SVGProps } from "react";
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text: string;
className?: string;
textClassName?: string;
dominantBaseline?: "auto" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "hanging";
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
>
<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"
}}
const SvgTextLogo = React.forwardRef<SVGSVGElement, SvgTextLogoProps>(
({ text = "Logo", className = "", textClassName = "", dominantBaseline = "middle", ...props }, ref) => {
return (
<svg
ref={ref}
viewBox="0 0 200 100"
className={`w-auto h-auto ${className}`}
preserveAspectRatio="xMidYMid meet"
{...props}
>
{logoText}
</text>
</svg>
);
});
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
className={`text-2xl font-bold fill-foreground ${textClassName}`}
>
{text}
</text>
</svg>
);
}
);
SvgTextLogo.displayName = "SvgTextLogo";