diff --git a/src/app/page.tsx b/src/app/page.tsx index cc4f68a..97c1668 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -44,7 +44,7 @@ export default function LandingPage() { description="Handcrafted with traditional recipes passed down through generations. Every loaf tells a story of heritage, quality, and culinary excellence." tag="Est. 2020" tagAnimation="slide-up" - background={{ variant: "plain" }} + background={{ variant: "floatingGradient" }} imageSrc="http://img.b2bpic.net/free-photo/delicious-roti-assortment-table-with-copy-space_23-2149033977.jpg" imageAlt="Fresh traditional Afghan naan bread" buttons={[ @@ -67,6 +67,7 @@ export default function LandingPage() { imageSrc="http://img.b2bpic.net/free-photo/woman-shopping-ramadan-side-view_23-2150154492.jpg" imageAlt="Kamiyab Bakery traditional interior" mediaAnimation="slide-up" + metricsAnimation="slide-up" useInvertedBackground={false} /> diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..0d74b90 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,50 @@ -"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; } -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 = '', +}) => { + const chars = text.split(''); + const charWidth = 20; + const width = chars.length * charWidth + 40; + const height = 60; return ( - - {logoText} - + + + + + + + + {chars.map((char, index) => ( + + {char} + + ))} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;