Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 04:25:31 +00:00
2 changed files with 27 additions and 40 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="small"
sizing="mediumLargeSizeLargeTitles"
background="blurBottom"
background="circleGradient"
cardStyle="layered-gradient"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="radial-glow"
@@ -45,7 +45,7 @@ export default function LandingPage() {
description="Discover traditional Milanese and Pugliese cuisine at Osteria il Melograno — homemade flavors, generous portions, and warm Italian hospitality. A hidden gem celebrating Italy's culinary heritage with handmade pasta, fresh seafood, and classic recipes passed down through generations."
tag="Tradizione Italiana"
tagIcon={Sparkles}
background={{ variant: "blurBottom" }}
background={{ variant: "animated-grid" }}
buttons={[
{ text: "🍽 Book a Table", href: "#reserve" },
{ text: "📖 View Menu", href: "#menu" }
@@ -59,6 +59,7 @@ export default function LandingPage() {
<AboutMetric
title="Loved by Over 795 Guests"
useInvertedBackground={false}
metricsAnimation="opacity"
metrics={[
{ icon: Star, label: "Average Rating", value: "4.3/5" },
{ icon: Users, label: "Happy Guests", value: "795+" },
@@ -184,7 +185,7 @@ export default function LandingPage() {
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/chef-working-together-professional-kitchen_23-2149727994.jpg"
imageAlt="professional restaurant kitchen chef cooking"
mediaAnimation="fade"
mediaAnimation="opacity"
mediaPosition="right"
buttonText="Send Message"
/>

View File

@@ -1,51 +1,37 @@
"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;
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'baseline' | 'central';
}
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,
dominantBaseline = 'middle',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width="200"
height="50"
viewBox="0 0 200 50"
className={className}
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="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
className={textClassName || 'text-lg font-bold'}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;