Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="mediumSmall"
|
||||
sizing="mediumLargeSizeLargeTitles"
|
||||
background="noiseDiagonalGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="inset"
|
||||
primaryButtonStyle="diagonal-gradient"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -44,7 +44,7 @@ export default function LandingPage() {
|
||||
<HeroCentered
|
||||
title="Fast, Affordable Delivery for Everyone"
|
||||
description="Move your personal items and business goods to any distance at minimum cost. Same-day delivery, flexible scheduling, and 100% reliable service for students, professionals, and everyday people."
|
||||
background={{ variant: "noiseDiagonalGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
avatars={[
|
||||
{ src: "http://img.b2bpic.net/free-photo/portrait-senior-woman-professional-blazer-outdoors_23-2150296635.jpg", alt: "Customer 1" },
|
||||
{ src: "http://img.b2bpic.net/free-photo/front-view-smiley-man-with-backpack_23-2149915917.jpg", alt: "Customer 2" },
|
||||
@@ -141,10 +141,10 @@ export default function LandingPage() {
|
||||
tag="Reviews"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Priya Kumar", role: "College Student", testimonial: "As a student, I needed an affordable way to send my belongings home during breaks. SwiftMove delivered within 24 hours and charged only $8. Absolutely reliable!", imageSrc: "http://img.b2bpic.net/free-photo/portrait-senior-woman-professional-blazer-outdoors_23-2150296635.jpg?_wi=1", imageAlt: "Priya Kumar"
|
||||
id: "1", name: "Priya Kumar", role: "College Student", testimonial: "As a student, I needed an affordable way to send my belongings home during breaks. SwiftMove delivered within 24 hours and charged only $8. Absolutely reliable!", imageSrc: "http://img.b2bpic.net/free-photo/portrait-senior-woman-professional-blazer-outdoors_23-2150296635.jpg", imageAlt: "Priya Kumar"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Rajesh Sharma", role: "Business Owner", testimonial: "Our company sends multiple deliveries weekly. The professional team and transparent pricing have saved us 40% compared to other services. Highly recommended!", imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-with-backpack_23-2149915917.jpg?_wi=1", imageAlt: "Rajesh Sharma"
|
||||
id: "2", name: "Rajesh Sharma", role: "Business Owner", testimonial: "Our company sends multiple deliveries weekly. The professional team and transparent pricing have saved us 40% compared to other services. Highly recommended!", imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-with-backpack_23-2149915917.jpg", imageAlt: "Rajesh Sharma"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Asha Patel", role: "Working Professional", testimonial: "I had urgent documents to deliver across the city. SwiftMove picked up within 30 minutes and guaranteed delivery. Impressive service at such affordable rates!", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-business-lady_1163-3171.jpg", imageAlt: "Asha Patel"
|
||||
@@ -153,10 +153,10 @@ export default function LandingPage() {
|
||||
id: "4", name: "Amit Verma", role: "Entrepreneur", testimonial: "The flexibility to schedule pickups and the real-time tracking feature are game-changers for my business. Customer service is always helpful and responsive.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-business-man-posing-with-crossed-arms_23-2149206527.jpg", imageAlt: "Amit Verma"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Neha Singh", role: "Freelancer", testimonial: "I send client packages regularly. SwiftMove's minimal rates mean I can pass savings to my clients. The reliability is outstanding!", imageSrc: "http://img.b2bpic.net/free-photo/portrait-senior-woman-professional-blazer-outdoors_23-2150296635.jpg?_wi=2", imageAlt: "Neha Singh"
|
||||
id: "5", name: "Neha Singh", role: "Freelancer", testimonial: "I send client packages regularly. SwiftMove's minimal rates mean I can pass savings to my clients. The reliability is outstanding!", imageSrc: "http://img.b2bpic.net/free-photo/portrait-senior-woman-professional-blazer-outdoors_23-2150296635.jpg", imageAlt: "Neha Singh"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Vikram Desai", role: "Logistics Manager", testimonial: "We partnered with SwiftMove for our B2B deliveries. Their professional team and scalable solutions have improved our delivery efficiency significantly.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-with-backpack_23-2149915917.jpg?_wi=2", imageAlt: "Vikram Desai"
|
||||
id: "6", name: "Vikram Desai", role: "Logistics Manager", testimonial: "We partnered with SwiftMove for our B2B deliveries. Their professional team and scalable solutions have improved our delivery efficiency significantly.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-with-backpack_23-2149915917.jpg", imageAlt: "Vikram Desai"
|
||||
}
|
||||
]}
|
||||
animationType="slide-up"
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
"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";
|
||||
className?: string;
|
||||
text: string;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: number;
|
||||
fill?: string;
|
||||
dominantBaseline?: 'auto' | 'baseline' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging' | 'text-top';
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
}
|
||||
|
||||
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,
|
||||
fontSize = 24,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fontWeight = 700,
|
||||
fill = '#000000',
|
||||
dominantBaseline = 'middle',
|
||||
textAnchor = 'middle',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width="100%"
|
||||
height="auto"
|
||||
viewBox="0 0 200 100"
|
||||
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%"
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
dominantBaseline={dominantBaseline}
|
||||
textAnchor={textAnchor}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user