Merge version_1 into main #2
@@ -10,7 +10,7 @@ import TestimonialCardSixteen from '@/components/sections/testimonial/Testimonia
|
||||
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
|
||||
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
|
||||
import FooterCard from '@/components/sections/footer/FooterCard';
|
||||
import { Sparkles, Truck, ShoppingCart, Instagram, Facebook, Twitter } from 'lucide-react';
|
||||
import { Sparkles, Truck, ShoppingCart, Instagram, Facebook, Twitter, Dress } from 'lucide-react';
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="smallMedium"
|
||||
sizing="largeSmall"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="outline"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -47,7 +47,7 @@ export default function LandingPage() {
|
||||
{ text: "Shop Collection", href: "#products" },
|
||||
{ text: "Contact Us", href: "#contact" }
|
||||
]}
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "circleGradient" }}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/sexual-blond-woman-black-dress-chair-luxury-apartments_613910-7014.jpg"
|
||||
imageAlt="luxury fashion model elegant styling"
|
||||
frameStyle="card"
|
||||
@@ -90,7 +90,7 @@ export default function LandingPage() {
|
||||
label: "Premium Quality Fabrics", value: "Hand-picked materials designed for comfort and elegance"
|
||||
},
|
||||
{
|
||||
icon: ShoppingCart,
|
||||
icon: Dress,
|
||||
label: "Unique Designer Styles", value: "Stand out with exclusive fashion collections"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,51 +1,44 @@
|
||||
"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;
|
||||
svgClassName?: string;
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
||||
text,
|
||||
className = '',
|
||||
textClassName = '',
|
||||
svgClassName = '',
|
||||
}) => {
|
||||
const svgWidth = text.length * 40;
|
||||
const svgHeight = 60;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
>
|
||||
<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"
|
||||
}}
|
||||
<div className={`flex items-center justify-center ${className}`}>
|
||||
<svg
|
||||
width={svgWidth}
|
||||
height={svgHeight}
|
||||
viewBox={`0 0 ${svgWidth} ${svgHeight}`}
|
||||
className={svgClassName}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
role="img"
|
||||
aria-label={text}
|
||||
>
|
||||
{logoText}
|
||||
</text>
|
||||
</svg>
|
||||
<text
|
||||
x="50%"
|
||||
y="50%"
|
||||
dominantBaseline="middle"
|
||||
textAnchor="middle"
|
||||
className={`text-2xl font-bold fill-current ${textClassName}`}
|
||||
>
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user