diff --git a/src/app/page.tsx b/src/app/page.tsx index 52c9117..be98776 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -58,7 +58,7 @@ export default function LandingPage() { { text: "Order Online", href: "https://www.swiggy.com" }, { text: "Call Now", href: "tel:+919876543210" } ]} - imageSrc="http://img.b2bpic.net/free-photo/top-view-delicious-chicken-skewers-wooden-board-other-stuffs-black-table_140725-147312.jpg?_wi=1" + imageSrc="http://img.b2bpic.net/free-photo/top-view-delicious-chicken-skewers-wooden-board-other-stuffs-black-table_140725-147312.jpg" imageAlt="Grilled kebabs from Miya Kebabs" mediaAnimation="slide-up" imagePosition="right" @@ -108,19 +108,19 @@ export default function LandingPage() { features={[ { id: "1", title: "Authentic Tandoor Flavors", tags: ["Traditional", "Cooked Fresh"], - imageSrc: "http://img.b2bpic.net/free-photo/group-friends-having-lunch-together-restaurant_23-2150520113.jpg?_wi=1", imageAlt: "Authentic tandoor cooking" + imageSrc: "http://img.b2bpic.net/free-photo/group-friends-having-lunch-together-restaurant_23-2150520113.jpg", imageAlt: "Authentic tandoor cooking" }, { id: "2", title: "Veg & Non-Veg Excellence", tags: ["All Options", "Delicious"], - imageSrc: "http://img.b2bpic.net/free-photo/people-walking-near-sign-board-subway_23-2148184350.jpg?_wi=1", imageAlt: "Variety of menu options" + imageSrc: "http://img.b2bpic.net/free-photo/people-walking-near-sign-board-subway_23-2148184350.jpg", imageAlt: "Variety of menu options" }, { id: "3", title: "Late Night Dining Till 12:30 AM", tags: ["Night Owls", "Premium"], - imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-chicken-skewers-wooden-board-other-stuffs-black-table_140725-147312.jpg?_wi=2", imageAlt: "Late night dining experience" + imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-chicken-skewers-wooden-board-other-stuffs-black-table_140725-147312.jpg", imageAlt: "Late night dining experience" }, { id: "4", title: "Prime Baner High Street Location", tags: ["Easy Access", "Convenient"], - imageSrc: "http://img.b2bpic.net/free-photo/group-friends-having-lunch-together-restaurant_23-2150520113.jpg?_wi=2", imageAlt: "Prime location at Baner High Street" + imageSrc: "http://img.b2bpic.net/free-photo/group-friends-having-lunch-together-restaurant_23-2150520113.jpg", imageAlt: "Prime location at Baner High Street" } ]} /> @@ -167,10 +167,11 @@ export default function LandingPage() { { value: "Open Daily", title: "12 PM - 12:30 AM" }, { value: "Baner", title: "Balewaldi High Street" } ]} - imageSrc="http://img.b2bpic.net/free-photo/people-walking-near-sign-board-subway_23-2148184350.jpg?_wi=2" + imageSrc="http://img.b2bpic.net/free-photo/people-walking-near-sign-board-subway_23-2148184350.jpg" imageAlt="Miya Kebabs storefront location" useInvertedBackground={false} mediaAnimation="slide-up" + metricsAnimation="slide-up" /> diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..ff1e74b 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;