Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="mediumLarge"
|
||||
sizing="mediumSizeLargeTitles"
|
||||
background="circleGradient"
|
||||
background="none"
|
||||
cardStyle="glass-depth"
|
||||
primaryButtonStyle="gradient"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -48,18 +48,18 @@ export default function LandingPage() {
|
||||
tag="خصوصی پیش کش"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
leftCarouselItems={[
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnMPs4XNXjP6oRod0MSZc3xd01/uploaded-1773223895044-zzo5tuf2.png?_wi=1", imageAlt: "Binary Quotex Trading Book" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg?_wi=1", imageAlt: "Simple Trading Book" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnMPs4XNXjP6oRod0MSZc3xd01/uploaded-1773223895044-zzo5tuf2.png?_wi=2", imageAlt: "Trading Technicals Book" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg?_wi=2", imageAlt: "Day Trading Guide" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/stylish-black-yellow-annual-report-flyer-template-design_1017-25266.jpg", imageAlt: "Binary Quotex Trading Book" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg", imageAlt: "Simple Trading Book" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/stylish-black-yellow-annual-report-flyer-template-design_1017-25266.jpg", imageAlt: "Trading Technicals Book" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg", imageAlt: "Day Trading Guide" }
|
||||
]}
|
||||
rightCarouselItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg?_wi=3", imageAlt: "Day Trading for a Living" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnMPs4XNXjP6oRod0MSZc3xd01/uploaded-1773223895044-zzo5tuf2.png?_wi=3", imageAlt: "ES Trading Basics" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg?_wi=4", imageAlt: "Trading Chart Patterns" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnMPs4XNXjP6oRod0MSZc3xd01/uploaded-1773223895044-zzo5tuf2.png?_wi=4", imageAlt: "Advanced Trading Strategies" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg", imageAlt: "Day Trading for a Living" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/stylish-black-yellow-annual-report-flyer-template-design_1017-25266.jpg", imageAlt: "ES Trading Basics" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg", imageAlt: "Trading Chart Patterns" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-vector/stylish-black-yellow-annual-report-flyer-template-design_1017-25266.jpg", imageAlt: "Advanced Trading Strategies" }
|
||||
]}
|
||||
carouselPosition="right"
|
||||
buttons={[
|
||||
@@ -81,12 +81,12 @@ export default function LandingPage() {
|
||||
animationType="slide-up"
|
||||
useInvertedBackground={false}
|
||||
products={[
|
||||
{ id: "book1", name: "Binary Quotex - 25 Sure Shot Pattern", price: "₨1,500", variant: "اردو میں - PDF فارمیٹ", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnMPs4XNXjP6oRod0MSZc3xd01/uploaded-1773223895044-zzo5tuf2.png?_wi=5", imageAlt: "Binary Quotex Book" },
|
||||
{ id: "book2", name: "Simple Trading Book", price: "₨1,200", variant: "اردو میں - PDF فارمیٹ", imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg?_wi=5", imageAlt: "Simple Trading Book" },
|
||||
{ id: "book3", name: "How to Day Trade for a Living", price: "₨2,000", variant: "اردو میں - PDF فارمیٹ", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnMPs4XNXjP6oRod0MSZc3xd01/uploaded-1773223895044-zzo5tuf2.png?_wi=6", imageAlt: "Day Trading Guide" },
|
||||
{ id: "book4", name: "Trading Technicals Book", price: "₨1,800", variant: "اردو میں - PDF فارمیٹ", imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg?_wi=6", imageAlt: "Trading Technicals" },
|
||||
{ id: "book5", name: "ES Trading for Beginners", price: "₨1,500", variant: "اردو میں - PDF فارمیٹ", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnMPs4XNXjP6oRod0MSZc3xd01/uploaded-1773223895044-zzo5tuf2.png?_wi=7", imageAlt: "ES Trading" },
|
||||
{ id: "book6", name: "Trading Chart Patterns", price: "₨2,200", variant: "اردو میں - PDF فارمیٹ", imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg?_wi=7", imageAlt: "Chart Patterns" }
|
||||
{ id: "book1", name: "Binary Quotex - 25 Sure Shot Pattern", price: "₨1,500", variant: "اردو میں - PDF فارمیٹ", imageSrc: "http://img.b2bpic.net/free-vector/stylish-black-yellow-annual-report-flyer-template-design_1017-25266.jpg", imageAlt: "Binary Quotex Book" },
|
||||
{ id: "book2", name: "Simple Trading Book", price: "₨1,200", variant: "اردو میں - PDF فارمیٹ", imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg", imageAlt: "Simple Trading Book" },
|
||||
{ id: "book3", name: "How to Day Trade for a Living", price: "₨2,000", variant: "اردو میں - PDF فارمیٹ", imageSrc: "http://img.b2bpic.net/free-vector/stylish-black-yellow-annual-report-flyer-template-design_1017-25266.jpg", imageAlt: "Day Trading Guide" },
|
||||
{ id: "book4", name: "Trading Technicals Book", price: "₨1,800", variant: "اردو میں - PDF فارمیٹ", imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg", imageAlt: "Trading Technicals" },
|
||||
{ id: "book5", name: "ES Trading for Beginners", price: "₨1,500", variant: "اردو میں - PDF فارمیٹ", imageSrc: "http://img.b2bpic.net/free-vector/stylish-black-yellow-annual-report-flyer-template-design_1017-25266.jpg", imageAlt: "ES Trading" },
|
||||
{ id: "book6", name: "Trading Chart Patterns", price: "₨2,200", variant: "اردو میں - PDF فارمیٹ", imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg", imageAlt: "Chart Patterns" }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
@@ -100,10 +100,10 @@ export default function LandingPage() {
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
features={[
|
||||
{ id: "feature1", title: "فوری PDF ڈاؤن لوڈ", description: "WhatsApp کے ذریعے پیمنٹ کے بعد فوری PDF حاصل کریں۔ کوئی انتظار نہیں۔", tag: "فوری", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnMPs4XNXjP6oRod0MSZc3xd01/uploaded-1773223895044-zzo5tuf2.png?_wi=8" },
|
||||
{ id: "feature2", title: "اردو میں مکمل", description: "تمام کتابیں اردو میں لکھی گئی ہیں تاکہ آپ بہتری سے سمجھ سکیں۔", tag: "اردو", imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg?_wi=8" },
|
||||
{ id: "feature3", title: "تجربہ کار تاجروں کی طرف سے", description: "حقیقی بازار کے تجربے سے لکھی گئی عملی رہنمائی۔", tag: "عملی", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnMPs4XNXjP6oRod0MSZc3xd01/uploaded-1773223895044-zzo5tuf2.png?_wi=9" },
|
||||
{ id: "feature4", title: "سب کے لیے", description: "ابتدائی سے پیشہ ور تاجروں کے لیے مناسب۔", tag: "تمام", imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg?_wi=9" }
|
||||
{ id: "feature1", title: "فوری PDF ڈاؤن لوڈ", description: "WhatsApp کے ذریعے پیمنٹ کے بعد فوری PDF حاصل کریں۔ کوئی انتظار نہیں۔", tag: "فوری", imageSrc: "http://img.b2bpic.net/free-vector/stylish-black-yellow-annual-report-flyer-template-design_1017-25266.jpg" },
|
||||
{ id: "feature2", title: "اردو میں مکمل", description: "تمام کتابیں اردو میں لکھی گئی ہیں تاکہ آپ بہتری سے سمجھ سکیں۔", tag: "اردو", imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg" },
|
||||
{ id: "feature3", title: "تجربہ کار تاجروں کی طرف سے", description: "حقیقی بازار کے تجربے سے لکھی گئی عملی رہنمائی۔", tag: "عملی", imageSrc: "http://img.b2bpic.net/free-vector/stylish-black-yellow-annual-report-flyer-template-design_1017-25266.jpg" },
|
||||
{ id: "feature4", title: "سب کے لیے", description: "ابتدائی سے پیشہ ور تاجروں کے لیے مناسب۔", tag: "تمام", imageSrc: "http://img.b2bpic.net/free-vector/geometric-lines-brochure-pack_23-2148163501.jpg" }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,51 +1,37 @@
|
||||
"use client";
|
||||
|
||||
import { memo } from "react";
|
||||
import useSvgTextLogo from "./useSvgTextLogo";
|
||||
import { cls } from "@/lib/utils";
|
||||
import React, { forwardRef } from 'react';
|
||||
|
||||
interface SvgTextLogoProps {
|
||||
logoText: string;
|
||||
adjustHeightFactor?: number;
|
||||
verticalAlign?: "top" | "center";
|
||||
text: string;
|
||||
className?: string;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
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"
|
||||
}}
|
||||
const SvgTextLogo = forwardRef<SVGSVGElement, SvgTextLogoProps>(
|
||||
({ text, className = '', ...props }, ref) => {
|
||||
return (
|
||||
<svg
|
||||
ref={ref}
|
||||
viewBox="0 0 300 100"
|
||||
className={`w-full h-auto ${className}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
{...props}
|
||||
>
|
||||
{logoText}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
<text
|
||||
x="50%"
|
||||
y="50%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
fontSize="24"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
SvgTextLogo.displayName = 'SvgTextLogo';
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user