diff --git a/src/app/page.tsx b/src/app/page.tsx index 8e0125d..d6799eb 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -54,9 +54,9 @@ export default function LandingPage() { buttonAnimation="slide-up" background={{ variant: "plain" }} carouselItems={[ - { id: "1", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-delicious-pizza-table_23-2148305632.jpg?_wi=1", imageAlt: "Margherita Pizza" }, - { id: "2", imageSrc: "http://img.b2bpic.net/free-photo/pizza-word-written-flour-wooden-board_23-2148753794.jpg?_wi=1", imageAlt: "Pepperoni Pizza" }, - { id: "3", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-baking-delicious-pizza_23-2150235780.jpg?_wi=1", imageAlt: "Specialty Pizza" }, + { id: "1", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-delicious-pizza-table_23-2148305632.jpg", imageAlt: "Margherita Pizza" }, + { id: "2", imageSrc: "http://img.b2bpic.net/free-photo/pizza-word-written-flour-wooden-board_23-2148753794.jpg", imageAlt: "Pepperoni Pizza" }, + { id: "3", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-baking-delicious-pizza_23-2150235780.jpg", imageAlt: "Specialty Pizza" }, { id: "4", imageSrc: "http://img.b2bpic.net/free-photo/thyme-kneaded-dough-with-dusted-flour-black-kitchen-worktop_23-2147975142.jpg", imageAlt: "Gourmet Pizza" }, { id: "5", imageSrc: "http://img.b2bpic.net/free-photo/pizza-wooden-plate_181624-990.jpg", imageAlt: "Classic Pizza" }, { id: "6", imageSrc: "http://img.b2bpic.net/free-photo/top-view-square-pizza-with-tomatoes_23-2149235619.jpg", imageAlt: "Wood-Fired Pizza" } @@ -79,9 +79,9 @@ export default function LandingPage() { animationType="slide-up" gridVariant="three-columns-all-equal-width" products={[ - { id: "1", name: "Margherita Classic", price: "$14.99", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-delicious-pizza-table_23-2148305632.jpg?_wi=2", imageAlt: "Margherita Pizza" }, - { id: "2", name: "Pepperoni Perfection", price: "$16.99", imageSrc: "http://img.b2bpic.net/free-photo/pizza-word-written-flour-wooden-board_23-2148753794.jpg?_wi=2", imageAlt: "Pepperoni Pizza" }, - { id: "3", name: "House Special", price: "$18.99", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-baking-delicious-pizza_23-2150235780.jpg?_wi=2", imageAlt: "House Special Pizza" } + { id: "1", name: "Margherita Classic", price: "$14.99", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-delicious-pizza-table_23-2148305632.jpg", imageAlt: "Margherita Pizza" }, + { id: "2", name: "Pepperoni Perfection", price: "$16.99", imageSrc: "http://img.b2bpic.net/free-photo/pizza-word-written-flour-wooden-board_23-2148753794.jpg", imageAlt: "Pepperoni Pizza" }, + { id: "3", name: "House Special", price: "$18.99", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-baking-delicious-pizza_23-2150235780.jpg", imageAlt: "House Special Pizza" } ]} /> diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..077e7f0 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,29 @@ -"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;