From 158e77f210cc25ba23a19d8f28aeaf4b3ef4602e Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 04:18:49 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index f99c578..0a42542 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -8,7 +8,7 @@ import MetricSplitMediaAbout from "@/components/sections/about/MetricSplitMediaA import TestimonialCardTwo from "@/components/sections/testimonial/TestimonialCardTwo"; import ContactCTA from "@/components/sections/contact/ContactCTA"; import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal"; -import { Cake, Heart, Sparkles, Star } from "lucide-react"; +import { Cake, Heart, Sparkles, Star, ThumbsUp } from "lucide-react"; export default function LandingPage() { return ( @@ -18,7 +18,7 @@ export default function LandingPage() { borderRadius="pill" contentWidth="small" sizing="largeSizeMediumTitles" - background="noise" + background="circleGradient" cardStyle="solid" primaryButtonStyle="gradient" secondaryButtonStyle="radial-glow" @@ -30,7 +30,7 @@ export default function LandingPage() { navItems={[ { name: "Menu", id: "menu" }, { name: "About", id: "about" }, - { name: "Contact", id: "contact" } + { name: "Contact", id: "contact-cta" } ]} button={{ text: "Order Now", href: "contact-cta" @@ -67,7 +67,7 @@ export default function LandingPage() { { text: "💬 Order on WhatsApp", href: "https://wa.me/923265455287" } ]} buttonAnimation="blur-reveal" - background={{ variant: "noise" }} + background={{ variant: "sparkles-gradient" }} /> @@ -120,6 +120,7 @@ export default function LandingPage() { ]} useInvertedBackground={false} mediaAnimation="blur-reveal" + metricsAnimation="slide-up" /> @@ -135,27 +136,27 @@ export default function LandingPage() { testimonials={[ { id: "1", name: "Adnan Aslam", role: "Customer", testimonial: "Finally I got best premium taste in Manga Mandi. The quality and freshness are outstanding. Highly recommended!", icon: Star, - imageSrc: "http://img.b2bpic.net/free-photo/studio-portrait-serious-bearded-male-dressed-suit_613910-14795.jpg?_wi=1", imageAlt: "Adnan Aslam" + imageSrc: "http://img.b2bpic.net/free-photo/studio-portrait-serious-bearded-male-dressed-suit_613910-14795.jpg", imageAlt: "Adnan Aslam" }, { id: "2", name: "Mobeen Alam", role: "Customer", testimonial: "Freshness mixed with taste and quality. They made my celebration even more special with their beautiful cake design.", icon: Heart, - imageSrc: "http://img.b2bpic.net/free-photo/shot-beautiful-young-businesswoman-wearing-blue-chiffon-shirt-while-standing-with-folded-arms-black-wall_158595-6868.jpg?_wi=1", imageAlt: "Mobeen Alam" + imageSrc: "http://img.b2bpic.net/free-photo/shot-beautiful-young-businesswoman-wearing-blue-chiffon-shirt-while-standing-with-folded-arms-black-wall_158595-6868.jpg", imageAlt: "Mobeen Alam" }, { id: "3", name: "Fatima Khan", role: "Customer", testimonial: "Best cakes in Manga Mandi! Professional service, beautiful packaging, and most importantly - absolutely delicious!", icon: Cake, imageSrc: "http://img.b2bpic.net/free-photo/smiley-woman-posing-her-home_23-2148708980.jpg", imageAlt: "Fatima Khan" }, { - id: "4", name: "Hassan Ali", role: "Customer", testimonial: "I order from Lush Layers for every celebration. They never disappoint. Premium quality at reasonable prices!", icon: Star, + id: "4", name: "Hassan Ali", role: "Customer", testimonial: "I order from Lush Layers for every celebration. They never disappoint. Premium quality at reasonable prices!", icon: ThumbsUp, imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-bearded-smiling-black-man-wool-suit_613910-15883.jpg", imageAlt: "Hassan Ali" }, { id: "5", name: "Sarah Ahmed", role: "Customer", testimonial: "Customized my wedding cake perfectly. The attention to detail and beautiful execution made my day magical!", icon: Star, - imageSrc: "http://img.b2bpic.net/free-photo/studio-portrait-serious-bearded-male-dressed-suit_613910-14795.jpg?_wi=2", imageAlt: "Sarah Ahmed" + imageSrc: "http://img.b2bpic.net/free-photo/studio-portrait-serious-bearded-male-dressed-suit_613910-14795.jpg", imageAlt: "Sarah Ahmed" }, { id: "6", name: "Ahmed Hassan", role: "Customer", testimonial: "Consistent quality, fresh ingredients, and friendly service. Lush Layers is my go-to cake shop every time!", icon: Heart, - imageSrc: "http://img.b2bpic.net/free-photo/shot-beautiful-young-businesswoman-wearing-blue-chiffon-shirt-while-standing-with-folded-arms-black-wall_158595-6868.jpg?_wi=2", imageAlt: "Ahmed Hassan" + imageSrc: "http://img.b2bpic.net/free-photo/shot-beautiful-young-businesswoman-wearing-blue-chiffon-shirt-while-standing-with-folded-arms-black-wall_158595-6868.jpg", imageAlt: "Ahmed Hassan" } ]} carouselMode="buttons" -- 2.49.1 From c4426bceb2d216cbbb5d3c6cd12de5a45f288936 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 04:18:49 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 80 +++++++++++-------- 1 file changed, 45 insertions(+), 35 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..84b3382 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,61 @@ -"use client"; - -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; +import React, { useEffect, useRef } from 'react'; interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; + text?: string; className?: string; + textClassName?: string; + fontSize?: number; + fontWeight?: number | string; + letterSpacing?: number; + dominantBaseline?: 'auto' | 'text-top' | 'hanging' | 'middle' | 'central' | 'text-bottom' | 'ideographic' | 'mathematical' | 'inherit'; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +export const SvgTextLogo: React.FC = ({ + text = 'Logo', + className = '', + textClassName = '', + fontSize = 32, + fontWeight = 700, + letterSpacing = 0, + dominantBaseline = 'central', +}) => { + const svgRef = useRef(null); + + useEffect(() => { + if (svgRef.current) { + const textElement = svgRef.current.querySelector('text'); + if (textElement) { + const bbox = textElement.getBBox(); + svgRef.current.setAttribute('viewBox', `${bbox.x - 10} ${bbox.y - 10} ${bbox.width + 20} ${bbox.height + 20}`); + svgRef.current.setAttribute('width', String(bbox.width + 20)); + svgRef.current.setAttribute('height', String(bbox.height + 20)); + } + } + }, [text]); return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file -- 2.49.1