Merge version_1 into main #2
@@ -68,10 +68,10 @@ export default function LandingPage() {
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
products={[
|
||||
{
|
||||
id: "eclipse-pro", name: "Eclipse Motion Pro", price: "$249", imageSrc: "http://img.b2bpic.net/free-photo/grunge-old-vintage-clock_1232-1718.jpg?_wi=1", imageAlt: "Eclipse Motion Pro watch art"
|
||||
id: "eclipse-pro", name: "Eclipse Motion Pro", price: "$249", imageSrc: "http://img.b2bpic.net/free-photo/grunge-old-vintage-clock_1232-1718.jpg", imageAlt: "Eclipse Motion Pro watch art"
|
||||
},
|
||||
{
|
||||
id: "velocity-chrome", name: "Velocity Chrome", price: "$189", imageSrc: "http://img.b2bpic.net/free-photo/grunge-old-vintage-clock_1232-1718.jpg?_wi=2", imageAlt: "Velocity Chrome watch art"
|
||||
id: "velocity-chrome", name: "Velocity Chrome", price: "$189", imageSrc: "http://img.b2bpic.net/free-photo/grunge-old-vintage-clock_1232-1718.jpg", imageAlt: "Velocity Chrome watch art"
|
||||
},
|
||||
{
|
||||
id: "timeless-heritage", name: "Timeless Heritage", price: "$279", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-modern-cool-black-digital-watch-with-brown-leather-strap_181624-3545.jpg", imageAlt: "Timeless Heritage watch art"
|
||||
@@ -90,7 +90,7 @@ export default function LandingPage() {
|
||||
{ value: "500+", title: "Satisfied Collectors" },
|
||||
{ value: "12", title: "Years of Expertise" }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/side-view-people-looking-old-item_23-2149640697.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/side-view-people-looking-old-item_23-2149640697.jpg"
|
||||
imageAlt="Watch craftsmanship and artistry"
|
||||
useInvertedBackground={false}
|
||||
mediaAnimation="slide-up"
|
||||
@@ -176,7 +176,7 @@ export default function LandingPage() {
|
||||
faqsAnimation="blur-reveal"
|
||||
mediaPosition="left"
|
||||
animationType="smooth"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/side-view-people-looking-old-item_23-2149640697.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/side-view-people-looking-old-item_23-2149640697.jpg"
|
||||
imageAlt="Watch art craftsmanship"
|
||||
faqs={[
|
||||
{
|
||||
|
||||
@@ -1,51 +1,34 @@
|
||||
"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;
|
||||
}
|
||||
|
||||
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 = '',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
className={`w-full h-full ${className}`}
|
||||
viewBox="0 0 1000 200"
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
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"
|
||||
className={`fill-current text-4xl font-bold ${textClassName}`}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user