Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 18:47:22 +00:00
2 changed files with 21 additions and 42 deletions

View File

@@ -10,7 +10,7 @@ import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCar
import MetricCardOne from '@/components/sections/metrics/MetricCardOne';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Gift, Star, Award, Package, CheckCircle } from 'lucide-react';
import { Gift, Store, Star, Award, Package, CheckCircle } from 'lucide-react';
export default function LandingPage() {
return (
@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="mediumLarge"
sizing="largeSmallSizeMediumTitles"
background="grid"
background="circleGradient"
cardStyle="glass-depth"
primaryButtonStyle="radial-glow"
secondaryButtonStyle="layered"
@@ -48,7 +48,7 @@ export default function LandingPage() {
tag="Welcome to Yash Collection"
tagIcon={Gift}
tagAnimation="slide-up"
background={{ variant: "grid" }}
background={{ variant: "plain" }}
imageSrc="http://img.b2bpic.net/free-photo/overhead-view-craft-accessories-wooden-desk_23-2148050643.jpg"
imageAlt="Vibrant stationery and gift store display"
imagePosition="right"
@@ -120,7 +120,7 @@ export default function LandingPage() {
title="About Yash Collection"
description="A trusted destination for stationery, gifts, school supplies, and art materials. We pride ourselves on offering a wide variety of quality products at affordable prices, with a dedicated and helpful staff ready to assist every customer. Whether you're a student, parent, artist, or gift-seeker, Yash Collection is your one-stop shop."
tag="About Us"
tagIcon={Gift}
tagIcon={Store}
tagAnimation="slide-up"
imageSrc="http://img.b2bpic.net/free-photo/medium-shot-woman-holding-smartphone_23-2149148465.jpg"
imageAlt="Yash Collection store interior"
@@ -243,7 +243,7 @@ export default function LandingPage() {
{ text: "Call Now", href: "tel:+919978525458" },
{ text: "WhatsApp Us", href: "https://wa.me/919978525458" }
]}
background={{ variant: "grid" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,30 @@
"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<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, className = '' }) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={`0 0 ${text.length * 60} 100`}
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<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="50%"
y="50%"
dominantBaseline="middle"
textAnchor="middle"
fontSize="48"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;