Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="smallMedium"
|
||||
sizing="largeSmallSizeLargeTitles"
|
||||
background="noiseDiagonalGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="gradient-bordered"
|
||||
primaryButtonStyle="gradient"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -46,19 +46,19 @@ export default function LandingPage() {
|
||||
tag="Urban Solution"
|
||||
tagIcon={Navigation}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "noiseDiagonalGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
leftCarouselItems={[
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/aerial-view-of-a-busy-urban-parking-lot--1773383040847-58a88660.png?_wi=1", imageAlt: "Busy urban parking lot from above"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/aerial-view-of-a-busy-urban-parking-lot--1773383040847-58a88660.png", imageAlt: "Busy urban parking lot from above"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/driver-s-perspective-from-inside-a-car-o-1773383041238-86cfad2c.png?_wi=1", imageAlt: "Driver searching for parking on city street"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/driver-s-perspective-from-inside-a-car-o-1773383041238-86cfad2c.png", imageAlt: "Driver searching for parking on city street"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/happy-driver-smiling-while-holding-smart-1773383040804-a2a24280.png", imageAlt: "Happy driver with successful parking"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/clean-dashboard-showing-parking-analytic-1773383044533-3a04c99a.png?_wi=1", imageAlt: "Parking analytics dashboard"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/clean-dashboard-showing-parking-analytic-1773383044533-3a04c99a.png", imageAlt: "Parking analytics dashboard"
|
||||
}
|
||||
]}
|
||||
rightCarouselItems={[
|
||||
@@ -66,13 +66,13 @@ export default function LandingPage() {
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/a-modern-mobile-app-interface-showing-a--1773383040580-1f6288b8.png", imageAlt: "Smart Parking app interface"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/aerial-view-of-a-busy-urban-parking-lot--1773383040847-58a88660.png?_wi=2", imageAlt: "Parking lot overview"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/aerial-view-of-a-busy-urban-parking-lot--1773383040847-58a88660.png", imageAlt: "Parking lot overview"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/driver-s-perspective-from-inside-a-car-o-1773383041238-86cfad2c.png?_wi=2", imageAlt: "Urban parking challenge"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/driver-s-perspective-from-inside-a-car-o-1773383041238-86cfad2c.png", imageAlt: "Urban parking challenge"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/clean-dashboard-showing-parking-analytic-1773383044533-3a04c99a.png?_wi=2", imageAlt: "Parking metrics"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/clean-dashboard-showing-parking-analytic-1773383044533-3a04c99a.png", imageAlt: "Parking metrics"
|
||||
}
|
||||
]}
|
||||
buttons={[
|
||||
@@ -84,16 +84,16 @@ export default function LandingPage() {
|
||||
avatarText="Join 50,000+ drivers already using Smart Parking"
|
||||
marqueeItems={[
|
||||
{
|
||||
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/generic-professional-shopping-mall-or-co-1773383039275-9410ae98.png", alt: "Shopping Mall Partner"
|
||||
type: "image", src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/generic-professional-shopping-mall-or-co-1773383039275-9410ae98.png", alt: "Shopping Mall Partner"
|
||||
},
|
||||
{
|
||||
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/generic-modern-business-center-or-office-1773383040792-2fcd9611.png", alt: "Business Center Partner"
|
||||
type: "image", src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/generic-modern-business-center-or-office-1773383040792-2fcd9611.png", alt: "Business Center Partner"
|
||||
},
|
||||
{
|
||||
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/generic-airport-or-travel-related-compan-1773383040200-f2aa8ee1.png", alt: "Airport Partner"
|
||||
type: "image", src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/generic-airport-or-travel-related-compan-1773383040200-f2aa8ee1.png", alt: "Airport Partner"
|
||||
},
|
||||
{
|
||||
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/generic-hotel-or-hospitality-brand-logo--1773383040756-2be8c390.png", alt: "Hotel Partner"
|
||||
type: "image", src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AsYqyvCkQ4RDtX1QP0lY3b4Kfb/generic-hotel-or-hospitality-brand-logo--1773383040756-2be8c390.png", alt: "Hotel Partner"
|
||||
}
|
||||
]}
|
||||
showMarqueeCard={true}
|
||||
@@ -242,7 +242,7 @@ export default function LandingPage() {
|
||||
<ContactText
|
||||
text="Ready to transform your parking experience? Join thousands of smart drivers today."
|
||||
animationType="entrance-slide"
|
||||
background={{ variant: "noiseDiagonalGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
buttons={[
|
||||
{ text: "Download Smart Parking", href: "https://example.com/app" },
|
||||
|
||||
@@ -1,51 +1,38 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fill?: 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,
|
||||
fontSize = 24,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fill = 'currentColor',
|
||||
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 * fontSize * 0.6} ${fontSize * 1.5}`}
|
||||
className={className}
|
||||
aria-label={text}
|
||||
>
|
||||
<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="10"
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
dominantBaseline="hanging"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user