Merge version_1 into main #2
@@ -67,28 +67,28 @@ export default function LandingPage() {
|
||||
title: "Advanced Camera System", description: "Capture life's moments with professional-grade photography and cinematography capabilities.", icon: Camera,
|
||||
mediaItems: [
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/close-up-product-photography-of-an-advan-1773235939231-632ad03a.png", imageAlt: "Advanced camera system" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/beautiful-product-display-showing-innova-1773235939379-341236b1.png?_wi=1", imageAlt: "Camera interface" }
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/beautiful-product-display-showing-innova-1773235939379-341236b1.png", imageAlt: "Camera interface" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Powerful Processor", description: "Experience lightning-fast performance with our cutting-edge custom-engineered processor.", icon: Zap,
|
||||
mediaItems: [
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/sleek-representation-of-cutting-edge-pro-1773235939742-86d07f4f.png", imageAlt: "Processor technology" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/beautiful-product-display-showing-innova-1773235939379-341236b1.png?_wi=2", imageAlt: "Performance metrics" }
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/beautiful-product-display-showing-innova-1773235939379-341236b1.png", imageAlt: "Performance metrics" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "All-Day Battery", description: "Stay connected from sunrise to sunset with exceptional battery life.", icon: Battery,
|
||||
mediaItems: [
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/innovative-battery-technology-visualizat-1773235939778-dc21971f.png", imageAlt: "Battery technology" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/beautiful-product-display-showing-innova-1773235939379-341236b1.png?_wi=3", imageAlt: "Battery performance" }
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/beautiful-product-display-showing-innova-1773235939379-341236b1.png", imageAlt: "Battery performance" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Premium Build Quality", description: "Crafted from the finest materials with meticulous attention to detail.", icon: Shield,
|
||||
mediaItems: [
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/premium-product-design-showcase-highligh-1773235940891-156289a3.png?_wi=1", imageAlt: "Premium materials" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/beautiful-product-display-showing-innova-1773235939379-341236b1.png?_wi=4", imageAlt: "Design details" }
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/premium-product-design-showcase-highligh-1773235940891-156289a3.png", imageAlt: "Premium materials" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/beautiful-product-display-showing-innova-1773235939379-341236b1.png", imageAlt: "Design details" }
|
||||
]
|
||||
}
|
||||
]}
|
||||
@@ -105,7 +105,7 @@ export default function LandingPage() {
|
||||
description="Sarah Chen"
|
||||
subdescription="Tech Innovator & Product Designer"
|
||||
icon={Star}
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/premium-product-design-showcase-highligh-1773235940891-156289a3.png?_wi=2"
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ankl1VR1lMaKgN5h04HR4nBfKQ/premium-product-design-showcase-highligh-1773235940891-156289a3.png"
|
||||
imageAlt="Premium product design"
|
||||
mediaAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
|
||||
@@ -1,51 +1,53 @@
|
||||
"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;
|
||||
fontWeight?: number | string;
|
||||
letterSpacing?: number;
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 48,
|
||||
fontWeight = 700,
|
||||
letterSpacing = 0,
|
||||
}) => {
|
||||
const textWidth = text.length * (fontSize * 0.6);
|
||||
const viewBoxWidth = textWidth + 40;
|
||||
const viewBoxHeight = fontSize + 20;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
viewBox={`0 0 ${viewBoxWidth} ${viewBoxHeight}`}
|
||||
width="100%"
|
||||
height="auto"
|
||||
className={className}
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
aria-label={text}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id="logoGradient" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#ffffff" />
|
||||
<stop offset="100%" stopColor="#e0e0e0" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<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="20"
|
||||
y={fontSize + 5}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fontFamily="system-ui, -apple-system, sans-serif"
|
||||
letterSpacing={letterSpacing}
|
||||
fill="url(#logoGradient)"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user