diff --git a/src/app/page.tsx b/src/app/page.tsx index 4063070..5892498 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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} /> @@ -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." diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..b6136e5 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -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 { + text: string; className?: string; + textClassName?: string; + dominantBaseline?: "auto" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "hanging"; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - - return ( - - ( + ({ text = "Logo", className = "", textClassName = "", dominantBaseline = "middle", ...props }, ref) => { + return ( + - {logoText} - - - ); -}); + + {text} + + + ); + } +); SvgTextLogo.displayName = "SvgTextLogo";