Merge version_1 into main #2
@@ -79,13 +79,13 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
products={[
|
||||
{
|
||||
id: "flagship-pro", name: "PremiumPhone Pro Max", price: "$1,299", variant: "Black, Silver, Gold · 256GB", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/a-premium-flagship-smartphone-model-phot-1773334762947-2f858c45.png?_wi=1", imageAlt: "PremiumPhone Pro Max flagship smartphone"
|
||||
id: "flagship-pro", name: "PremiumPhone Pro Max", price: "$1,299", variant: "Black, Silver, Gold · 256GB", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/a-premium-flagship-smartphone-model-phot-1773334762947-2f858c45.png", imageAlt: "PremiumPhone Pro Max flagship smartphone"
|
||||
},
|
||||
{
|
||||
id: "mid-range-elite", name: "MidRange Elite", price: "$699", variant: "Blue, Purple, White · 128GB", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/a-mid-range-smartphone-model-shown-on-ne-1773334763076-4a7c189e.png?_wi=1", imageAlt: "MidRange Elite smartphone"
|
||||
id: "mid-range-elite", name: "MidRange Elite", price: "$699", variant: "Blue, Purple, White · 128GB", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/a-mid-range-smartphone-model-shown-on-ne-1773334763076-4a7c189e.png", imageAlt: "MidRange Elite smartphone"
|
||||
},
|
||||
{
|
||||
id: "budget-smart", name: "Smart Budget Phone", price: "$349", variant: "Red, Black, Green · 64GB", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/an-affordable-budget-friendly-smartphone-1773334763027-7744aa2d.png?_wi=1", imageAlt: "Smart Budget Phone"
|
||||
id: "budget-smart", name: "Smart Budget Phone", price: "$349", variant: "Red, Black, Green · 64GB", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/an-affordable-budget-friendly-smartphone-1773334763027-7744aa2d.png", imageAlt: "Smart Budget Phone"
|
||||
}
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
@@ -139,19 +139,19 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
plans={[
|
||||
{
|
||||
id: "flagship", title: "Premium Flagship", price: "$1,299", period: "/one-time", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/a-premium-flagship-smartphone-model-phot-1773334762947-2f858c45.png?_wi=2", imageAlt: "Premium Flagship smartphone", button: { text: "Purchase Now", href: "#" },
|
||||
id: "flagship", title: "Premium Flagship", price: "$1,299", period: "/one-time", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/a-premium-flagship-smartphone-model-phot-1773334762947-2f858c45.png", imageAlt: "Premium Flagship smartphone", button: { text: "Purchase Now", href: "#" },
|
||||
features: [
|
||||
"108MP Advanced Camera", "120Hz AMOLED Display", "Flagship Processor", "12GB RAM + 256GB Storage", "5000mAh Battery", "Premium Build Quality", "2-Year Warranty"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "midrange", title: "Mid-Range Elite", price: "$699", period: "/one-time", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/a-mid-range-smartphone-model-shown-on-ne-1773334763076-4a7c189e.png?_wi=2", imageAlt: "Mid-Range Elite smartphone", button: { text: "Purchase Now", href: "#" },
|
||||
id: "midrange", title: "Mid-Range Elite", price: "$699", period: "/one-time", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/a-mid-range-smartphone-model-shown-on-ne-1773334763076-4a7c189e.png", imageAlt: "Mid-Range Elite smartphone", button: { text: "Purchase Now", href: "#" },
|
||||
features: [
|
||||
"64MP Dual Camera", "90Hz AMOLED Display", "High-Performance Processor", "8GB RAM + 128GB Storage", "4500mAh Battery", "Sleek Design", "1-Year Warranty"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "budget", title: "Budget Smart", price: "$349", period: "/one-time", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/an-affordable-budget-friendly-smartphone-1773334763027-7744aa2d.png?_wi=2", imageAlt: "Budget Smart Phone", button: { text: "Purchase Now", href: "#" },
|
||||
id: "budget", title: "Budget Smart", price: "$349", period: "/one-time", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/an-affordable-budget-friendly-smartphone-1773334763027-7744aa2d.png", imageAlt: "Budget Smart Phone", button: { text: "Purchase Now", href: "#" },
|
||||
features: [
|
||||
"13MP Dual Camera", "60Hz HD+ Display", "Reliable Processor", "4GB RAM + 64GB Storage", "4000mAh Battery", "Compact Form Factor", "1-Year Warranty"
|
||||
]
|
||||
@@ -214,6 +214,9 @@ export default function LandingPage() {
|
||||
tag="Industry Partners"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="slide-up"
|
||||
names={[
|
||||
"Samsung", "Apple", "Google", "Sony", "Motorola", "Xiaomi", "OnePlus", "Nokia"
|
||||
]}
|
||||
logos={[
|
||||
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/samsung-brand-logo-a-simple-curved-silve-1773334762628-2b1338d7.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/apple-inc-brand-logo-iconic-apple-symbol-1773334761585-bedbba5b.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/google-brand-logo-colorful-google-wordma-1773334763139-92ef2e84.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/sony-brand-logo-sony-wordmark-or-symbol--1773334762242-60bafc56.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/motorola-brand-logo-motorola-wordmark-or-1773334762820-d6b28faa.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/xiaomi-brand-logo-xiaomi-wordmark-or-sym-1773334763054-8d2a24b2.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/oneplus-brand-logo-oneplus-wordmark-or-s-1773334763815-5562d234.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Aqz1pE6A082F00W6alWEwEwGoG/nokia-brand-logo-nokia-wordmark-or-symbo-1773334762977-7e4fda16.png"
|
||||
]}
|
||||
@@ -286,4 +289,4 @@ export default function LandingPage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
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%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
fontSize="48"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user