Merge version_1 into main #2
@@ -100,13 +100,13 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Crystal Frame Glasses", price: "$85", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/premium-eyeglasses-in-multiple-color-var-1773242337758-7dd0aaff.png?_wi=1", imageAlt: "Crystal frame eyeglasses"
|
||||
id: "1", name: "Crystal Frame Glasses", price: "$85", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/premium-eyeglasses-in-multiple-color-var-1773242337758-7dd0aaff.png", imageAlt: "Crystal frame eyeglasses"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Gold Accent Frames", price: "$95", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/premium-eyeglasses-in-multiple-color-var-1773242337758-7dd0aaff.png?_wi=2", imageAlt: "Gold accent eyeglasses"
|
||||
id: "2", name: "Gold Accent Frames", price: "$95", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/premium-eyeglasses-in-multiple-color-var-1773242337758-7dd0aaff.png", imageAlt: "Gold accent eyeglasses"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Classic Black Frames", price: "$75", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/premium-eyeglasses-in-multiple-color-var-1773242337758-7dd0aaff.png?_wi=3", imageAlt: "Classic black frames"
|
||||
id: "3", name: "Classic Black Frames", price: "$75", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/premium-eyeglasses-in-multiple-color-var-1773242337758-7dd0aaff.png", imageAlt: "Classic black frames"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Premium Leather Bag", price: "$240", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/luxury-fashion-handbag-in-black-leather--1773242338609-0924956d.png", imageAlt: "Luxury leather handbag"
|
||||
@@ -138,6 +138,7 @@ export default function LandingPage() {
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/interactive-product-customization-interf-1773242338291-a722b0c7.png"
|
||||
imageAlt="Interactive product customization interface"
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="blur-reveal"
|
||||
useInvertedBackground={true}
|
||||
tagAnimation="blur-reveal"
|
||||
/>
|
||||
@@ -152,10 +153,10 @@ export default function LandingPage() {
|
||||
tagAnimation="blur-reveal"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Sarah Mitchell", role: "Fashion Blogger", testimonial: "This app changed how I shop online! I finally found glasses that actually suit my face shape. The virtual try-on is so accurate.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/professional-headshot-of-a-confident-you-1773242337940-0b2014ca.png?_wi=1", imageAlt: "Sarah Mitchell profile"
|
||||
id: "1", name: "Sarah Mitchell", role: "Fashion Blogger", testimonial: "This app changed how I shop online! I finally found glasses that actually suit my face shape. The virtual try-on is so accurate.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/professional-headshot-of-a-confident-you-1773242337940-0b2014ca.png", imageAlt: "Sarah Mitchell profile"
|
||||
},
|
||||
{
|
||||
id: "2", name: "James Chen", role: "Tech Enthusiast", testimonial: "The AI technology is mind-blowing. I can see exactly how accessories look before spending a dime. No more buyer's remorse!", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/professional-headshot-of-a-confident-man-1773242337854-5774651d.png?_wi=1", imageAlt: "James Chen profile"
|
||||
id: "2", name: "James Chen", role: "Tech Enthusiast", testimonial: "The AI technology is mind-blowing. I can see exactly how accessories look before spending a dime. No more buyer's remorse!", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/professional-headshot-of-a-confident-man-1773242337854-5774651d.png", imageAlt: "James Chen profile"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Emily Rodriguez", role: "Style Consultant", testimonial: "I recommend this to all my clients. The lighting adaptation feature is incredible—products look exactly as they will in real life.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/professional-headshot-of-a-stylish-young-1773242337873-8773eae7.png", imageAlt: "Emily Rodriguez profile"
|
||||
@@ -164,10 +165,10 @@ export default function LandingPage() {
|
||||
id: "4", name: "David Kim", role: "Photography Expert", testimonial: "As someone who works with lighting daily, I'm impressed by the accuracy. This is the future of e-commerce.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/professional-headshot-of-a-confident-you-1773242337826-5b0a7516.png", imageAlt: "David Kim profile"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Lisa Thompson", role: "Online Shopper", testimonial: "Finally, I can try things on without the hassle of returns. This app saved me so much time and money.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/professional-headshot-of-a-confident-you-1773242337940-0b2014ca.png?_wi=2", imageAlt: "Lisa Thompson profile"
|
||||
id: "5", name: "Lisa Thompson", role: "Online Shopper", testimonial: "Finally, I can try things on without the hassle of returns. This app saved me so much time and money.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/professional-headshot-of-a-confident-you-1773242337940-0b2014ca.png", imageAlt: "Lisa Thompson profile"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Michael Barnes", role: "Fashion Designer", testimonial: "Brilliant execution. The UI is smooth, the technology is cutting-edge, and the user experience is seamless. Bravo!", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/professional-headshot-of-a-confident-man-1773242337854-5774651d.png?_wi=2", imageAlt: "Michael Barnes profile"
|
||||
id: "6", name: "Michael Barnes", role: "Fashion Designer", testimonial: "Brilliant execution. The UI is smooth, the technology is cutting-edge, and the user experience is seamless. Bravo!", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwuV8snIeijgzTcY55PvewWER/professional-headshot-of-a-confident-man-1773242337854-5774651d.png", imageAlt: "Michael Barnes profile"
|
||||
}
|
||||
]}
|
||||
textboxLayout="default"
|
||||
|
||||
@@ -1,51 +1,35 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
letterSpacing?: number;
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 48,
|
||||
letterSpacing = 2,
|
||||
}) => {
|
||||
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 * (fontSize * 0.6)} ${fontSize}`}
|
||||
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"
|
||||
}}
|
||||
y={fontSize * 0.75}
|
||||
fontSize={fontSize}
|
||||
letterSpacing={letterSpacing}
|
||||
fill="currentColor"
|
||||
fontWeight="bold"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user