diff --git a/src/app/page.tsx b/src/app/page.tsx index 5820810..5227362 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -59,7 +59,7 @@ export default function LandingPage() { imageSrc: "http://img.b2bpic.net/free-photo/side-view-shawarma-with-fried-potatoes-ayran-mayonnaise-board-cookware_176474-3213.jpg", imageAlt: "Delicious Bessarabian shawarma with spices and herbs" }, { - imageSrc: "http://img.b2bpic.net/free-photo/freshly-cooked-dish-being-taken-by-cook_1220-673.jpg?_wi=1", imageAlt: "Professional shawarma preparation in our kitchen" + imageSrc: "http://img.b2bpic.net/free-photo/freshly-cooked-dish-being-taken-by-cook_1220-673.jpg", imageAlt: "Professional shawarma preparation in our kitchen" } ]} mediaAnimation="slide-up" @@ -78,7 +78,7 @@ export default function LandingPage() { { value: "20+", title: "Years of Excellence" }, { value: "5000+", title: "Happy Customers Weekly" } ]} - imageSrc="http://img.b2bpic.net/free-photo/freshly-cooked-dish-being-taken-by-cook_1220-673.jpg?_wi=2" + imageSrc="http://img.b2bpic.net/free-photo/freshly-cooked-dish-being-taken-by-cook_1220-673.jpg" imageAlt="Our traditional shawarma cooking setup" mediaAnimation="slide-up" metricsAnimation="slide-up" @@ -122,7 +122,7 @@ export default function LandingPage() { { id: "3", value: "24", title: "/7", description: "Hours of Operation", icon: Clock }, { id: "4", value: "15", title: "min", description: "Average Delivery Time", icon: Zap } ]} - gridVariant="four-items-2x2-equal-grid" + gridVariant="uniform-all-items-equal" animationType="slide-up" textboxLayout="default" useInvertedBackground={true} diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..b0e1a2e 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,51 @@ -"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"; - className?: string; +interface SvgTextLogoProps extends SVGProps { + text?: string; + fontSize?: number; + fontFamily?: string; + letterSpacing?: number; + textAnchor?: 'start' | 'middle' | 'end'; + dominantBaseline?: 'auto' | 'middle' | 'hanging'; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - - return ( - - ( + ( + { + text = 'Logo', + fontSize = 24, + fontFamily = 'Inter, sans-serif', + letterSpacing = 0.5, + textAnchor = 'middle', + dominantBaseline = 'middle', + ...props + }, + ref + ) => { + return ( + - {logoText} - - - ); -}); + + {text} + + + ); + } +); -SvgTextLogo.displayName = "SvgTextLogo"; +SvgTextLogo.displayName = 'SvgTextLogo'; export default SvgTextLogo;