Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="mediumSmall"
|
||||
sizing="largeSmall"
|
||||
background="noise"
|
||||
background="circleGradient"
|
||||
cardStyle="layered-gradient"
|
||||
primaryButtonStyle="shadow"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -47,7 +47,7 @@ export default function LandingPage() {
|
||||
tag="Logistics & Transportation"
|
||||
tagIcon={Truck}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "noise" }}
|
||||
background={{ variant: "plain" }}
|
||||
buttons={[
|
||||
{ text: "Get a Quote", href: "#contact" },
|
||||
{ text: "Drive With Us", href: "#careers" }
|
||||
@@ -58,7 +58,7 @@ export default function LandingPage() {
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap0bDZ3tfuJQOXGELFrbfgtQau/cinematic-view-of-modern-semi-trucks-dri-1773274370644-43b60d18.png", imageAlt: "Trucks driving on highway at sunset"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap0bDZ3tfuJQOXGELFrbfgtQau/wide-aerial-view-of-a-large-modern-logis-1773274370581-a069d5bf.png?_wi=1", imageAlt: "Modern logistics warehouse and fleet operations"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap0bDZ3tfuJQOXGELFrbfgtQau/wide-aerial-view-of-a-large-modern-logis-1773274370581-a069d5bf.png", imageAlt: "Modern logistics warehouse and fleet operations"
|
||||
}
|
||||
]}
|
||||
mediaAnimation="slide-up"
|
||||
@@ -78,9 +78,10 @@ export default function LandingPage() {
|
||||
{ value: "50M+", title: "Miles Delivered Annually" },
|
||||
{ value: "98%", title: "On-Time Delivery Rate" }
|
||||
]}
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap0bDZ3tfuJQOXGELFrbfgtQau/wide-aerial-view-of-a-large-modern-logis-1773274370581-a069d5bf.png?_wi=2"
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap0bDZ3tfuJQOXGELFrbfgtQau/wide-aerial-view-of-a-large-modern-logis-1773274370581-a069d5bf.png"
|
||||
imageAlt="Velocity Freight fleet and operations"
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
@@ -115,7 +116,7 @@ export default function LandingPage() {
|
||||
id: "warehousing", title: "Warehousing & Distribution", descriptions: [
|
||||
"Climate-controlled storage facilities", "Pick and pack fulfillment services", "Cross-docking and consolidation options"
|
||||
],
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap0bDZ3tfuJQOXGELFrbfgtQau/wide-aerial-view-of-a-large-modern-logis-1773274370581-a069d5bf.png?_wi=3", imageAlt: "Modern warehouse operations"
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap0bDZ3tfuJQOXGELFrbfgtQau/wide-aerial-view-of-a-large-modern-logis-1773274370581-a069d5bf.png", imageAlt: "Modern warehouse operations"
|
||||
}
|
||||
]}
|
||||
gridVariant="four-items-2x2-equal-grid"
|
||||
|
||||
@@ -1,51 +1,27 @@
|
||||
"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);
|
||||
|
||||
export default function SvgTextLogo({ text, className = '' }: SvgTextLogoProps) {
|
||||
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 200 50"
|
||||
className={`w-full h-auto ${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="10"
|
||||
y="35"
|
||||
fontSize="24"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
}
|
||||
Reference in New Issue
Block a user