Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 04:18:54 +00:00
2 changed files with 55 additions and 44 deletions

View File

@@ -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" }}
/>
</div>
@@ -120,6 +120,7 @@ export default function LandingPage() {
]}
useInvertedBackground={false}
mediaAnimation="blur-reveal"
metricsAnimation="slide-up"
/>
</div>
@@ -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"

View File

@@ -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<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text = 'Logo',
className = '',
textClassName = '',
fontSize = 32,
fontWeight = 700,
letterSpacing = 0,
dominantBaseline = 'central',
}) => {
const svgRef = useRef<SVGSVGElement>(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 (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
className={className}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 200 60"
width="200"
height="60"
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
}}
x="100"
y="30"
textAnchor="middle"
dominantBaseline={dominantBaseline}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
className={textClassName}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;