Merge version_1 into main #1

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

View File

@@ -44,7 +44,7 @@ export default function LandingPage() {
<HeroBillboard
title="Fresh Flavor & Unique Vibes in Cincinnati"
description="Experience bold, made-to-order meals in a vibrant, locally loved atmosphere. From spicy honey garlic wings to creative fries and fresh seafood tacos, every dish is prepared with care and served with a smile."
background={{ variant: "plain" }}
background={{ variant: "floatingGradient" }}
tag="Local Favorite"
tagIcon={Sparkles}
imageSrc="http://img.b2bpic.net/free-photo/hot-steaming-crispy-fried-chicken-wings_84443-82019.jpg"
@@ -114,6 +114,7 @@ export default function LandingPage() {
id: "2", value: "500+", description: "Happy customers sharing their love for our wings, fries, and unique atmosphere"
}
]}
metricsAnimation="slide-up"
/>
</div>

View File

@@ -1,51 +1,51 @@
"use client";
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
import { useMemo } from 'react';
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
text: string;
className?: string;
textClassName?: string;
ariaLabel?: 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 = '',
textClassName = '',
ariaLabel,
}) => {
const letters = useMemo(() => text.split(''), [text]);
const letterSpacing = 8;
const startX = 10;
const fontSize = 24;
const fontWeight = 700;
const totalWidth = letters.length * letterSpacing + startX + 20;
const height = fontSize + 20;
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
viewBox={`0 0 ${totalWidth} ${height}`}
className={`inline-block ${className}`}
aria-label={ariaLabel || text}
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"
}}
>
{logoText}
</text>
{letters.map((letter, index) => (
<text
key={index}
x={startX + index * letterSpacing}
y={fontSize}
fontSize={fontSize}
fontWeight={fontWeight}
fill="currentColor"
textAnchor="start"
dominantBaseline="auto"
className={textClassName}
>
{letter}
</text>
))}
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;