diff --git a/src/app/page.tsx b/src/app/page.tsx index 5cb0903..81c6a5a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -77,15 +77,15 @@ export default function LandingPage() { features={[ { id: 1, - title: "Address", description: "Retail Park, Horspath Driftway, Headington, Oxford OX3 7JN", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg?_wi=1", imageAlt: "ALDI Oxford store entrance" + title: "Address", description: "Retail Park, Horspath Driftway, Headington, Oxford OX3 7JN", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", imageAlt: "ALDI Oxford store entrance" }, { id: 2, - title: "Hours", description: "Open now · Closes 10 PM. Visit us during peak or quiet hours based on your preference.", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg?_wi=2", imageAlt: "Store operating hours" + title: "Hours", description: "Open now · Closes 10 PM. Visit us during peak or quiet hours based on your preference.", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", imageAlt: "Store operating hours" }, { id: 3, - title: "Contact", description: "Phone: 0800 042 0800. Call us for store-specific inquiries or special requests.", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg?_wi=3", imageAlt: "Customer service contact" + title: "Contact", description: "Phone: 0800 042 0800. Call us for store-specific inquiries or special requests.", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", imageAlt: "Customer service contact" } ]} textboxLayout="default" @@ -146,8 +146,8 @@ export default function LandingPage() { reviewCount: "2.1k", imageSrc: "http://img.b2bpic.net/free-photo/yellow-green-yellow-peppers-crate_23-2147916093.jpg", imageAlt: "Weekly special offers" } ]} - gridVariant="three-columns-all-equal-width" animationType="slide-up" + gridVariant="three-columns-all-equal-width" buttons={[ { text: "Explore All Products", href: "#" } ]} @@ -175,7 +175,6 @@ export default function LandingPage() { id: "4", title: "Fast Self-Checkout", subtitle: "Quick and convenient checkout experience", category: "Speed", value: "✓ Fast Service" } ]} - gridVariant="two-columns-alternating-heights" animationType="slide-up" /> @@ -189,13 +188,13 @@ export default function LandingPage() { useInvertedBackground={false} blogs={[ { - id: "1", category: "Morning", title: "Quiet Hours", excerpt: "8 AM - 11 AM: Perfect for a peaceful shopping experience with minimal crowds.", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg?_wi=4", imageAlt: "Quiet morning shopping", authorName: "ALDI Oxford", authorAvatar: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", date: "Best Time" + id: "1", category: "Morning", title: "Quiet Hours", excerpt: "8 AM - 11 AM: Perfect for a peaceful shopping experience with minimal crowds.", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", imageAlt: "Quiet morning shopping", authorName: "ALDI Oxford", authorAvatar: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", date: "Best Time" }, { - id: "2", category: "Afternoon", title: "Moderate Traffic", excerpt: "11 AM - 4 PM: Steady flow with good selection and reasonable wait times.", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg?_wi=5", imageAlt: "Afternoon shopping", authorName: "ALDI Oxford", authorAvatar: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", date: "Moderate" + id: "2", category: "Afternoon", title: "Moderate Traffic", excerpt: "11 AM - 4 PM: Steady flow with good selection and reasonable wait times.", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", imageAlt: "Afternoon shopping", authorName: "ALDI Oxford", authorAvatar: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", date: "Moderate" }, { - id: "3", category: "Evening", title: "Peak Hours", excerpt: "4 PM - 10 PM: Busier periods. Come early for shorter queues and full selections.", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg?_wi=6", imageAlt: "Evening shopping", authorName: "ALDI Oxford", authorAvatar: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", date: "Peak Time" + id: "3", category: "Evening", title: "Peak Hours", excerpt: "4 PM - 10 PM: Busier periods. Come early for shorter queues and full selections.", imageSrc: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", imageAlt: "Evening shopping", authorName: "ALDI Oxford", authorAvatar: "http://img.b2bpic.net/free-photo/attractive-young-woman-with-tattoo-glasses-visiting-local-market-fresh-vegetables_613910-17212.jpg", date: "Peak Time" } ]} animationType="slide-up" diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..2641a90 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,36 @@ -"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; + textClassName?: string; + dominantBaseline?: 'auto' | 'text-bottom' | 'middle' | 'central' | 'hanging' | 'inherit'; } -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 = '', + textClassName = '', + dominantBaseline = 'middle', +}) => { return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;