diff --git a/src/app/page.tsx b/src/app/page.tsx index e243a80..9d38806 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -62,7 +62,7 @@ export default function LandingPage() { id: "3", imageSrc: "http://img.b2bpic.net/free-photo/delicious-mushroom-pizza-with-cheese-fresh-vegetables-marble_114579-15514.jpg", imageAlt: "Seafood pizza fresh toppings" }, { - id: "4", imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-with-shrimp-mussel-calamari-squid-cheese_141793-2273.jpg?_wi=1", imageAlt: "Pizza al forno traditional oven" + id: "4", imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-with-shrimp-mussel-calamari-squid-cheese_141793-2273.jpg", imageAlt: "Pizza al forno traditional oven" }, { id: "5", imageSrc: "http://img.b2bpic.net/free-photo/baking-pizza-wood-fired-oven_23-2150134280.jpg", imageAlt: "Pizza tonda italian round style" @@ -87,9 +87,10 @@ export default function LandingPage() { { value: "28+", title: "Years of Tradition" }, { value: "10K+", title: "Happy Customers" } ]} - imageSrc="http://img.b2bpic.net/free-photo/wooden-chair-table_1203-7265.jpg?_wi=1" + imageSrc="http://img.b2bpic.net/free-photo/wooden-chair-table_1203-7265.jpg" imageAlt="Pizzeria Dolce cozy interior" mediaAnimation="slide-up" + metricsAnimation="slide-up" useInvertedBackground={false} /> @@ -139,7 +140,7 @@ export default function LandingPage() { id: "3", name: "Vegetarian", price: "$15.99", imageSrc: "http://img.b2bpic.net/free-photo/top-view-mushroom-pizza-with-tomatoes-olives-mushrooms-with-fresh-tomatoes-peppers-grey-desk-pizza-dough-italian-food_140725-22912.jpg", imageAlt: "Fresh Vegetarian Pizza", initialQuantity: 1 }, { - id: "4", name: "Quattro Formaggi", price: "$17.99", imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-with-shrimp-mussel-calamari-squid-cheese_141793-2273.jpg?_wi=2", imageAlt: "Four Cheese Gourmet Pizza", initialQuantity: 1 + id: "4", name: "Quattro Formaggi", price: "$17.99", imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-with-shrimp-mussel-calamari-squid-cheese_141793-2273.jpg", imageAlt: "Four Cheese Gourmet Pizza", initialQuantity: 1 } ]} gridVariant="uniform-all-items-equal" @@ -224,7 +225,7 @@ export default function LandingPage() { tagAnimation="slide-up" background={{ variant: "plain" }} useInvertedBackground={false} - imageSrc="http://img.b2bpic.net/free-photo/wooden-chair-table_1203-7265.jpg?_wi=2" + imageSrc="http://img.b2bpic.net/free-photo/wooden-chair-table_1203-7265.jpg" imageAlt="Pizzeria Dolce contact" mediaAnimation="slide-up" mediaPosition="right" diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..d940fa4 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,28 @@ -"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; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +const SvgTextLogo: React.FC = ({ text, className = '' }) => { return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file