Merge version_1 into main #2
@@ -47,22 +47,23 @@ export default function LandingPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/crop-woman-digging-grass-up_23-2147714901.jpg"
|
||||
imageAlt="Professional hauling team ready to help"
|
||||
mediaAnimation="slide-up"
|
||||
background={{ variant: "plain" }}
|
||||
testimonials={[
|
||||
{
|
||||
name: "James Mitchell", handle: "Homeowner, Downtown", testimonial: "Removed years of accumulated junk in one day. Professional and efficient!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1652.jpg?_wi=1", imageAlt: "James Mitchell"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1652.jpg", imageAlt: "James Mitchell"
|
||||
},
|
||||
{
|
||||
name: "Sarah Johnson", handle: "Business Owner, Commerce District", testimonial: "Best service for our commercial cleanup. Highly recommend Priority Hauling.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/blond-man-happy-expression_1194-1902.jpg?_wi=1", imageAlt: "Sarah Johnson"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/blond-man-happy-expression_1194-1902.jpg", imageAlt: "Sarah Johnson"
|
||||
},
|
||||
{
|
||||
name: "Michael Chen", handle: "Contractor, Metro Area", testimonial: "Fast, professional, and affordable. Our go-to hauling service.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/successful-young-businesswoman-showing-thumb-up_1262-5866.jpg?_wi=1", imageAlt: "Michael Chen"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/successful-young-businesswoman-showing-thumb-up_1262-5866.jpg", imageAlt: "Michael Chen"
|
||||
},
|
||||
{
|
||||
name: "David Rodriguez", handle: "Property Manager, Riverside", testimonial: "Reliable partners for all our property cleanup needs. Always on time.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/elegant-businessman_23-2147985497.jpg?_wi=1", imageAlt: "David Rodriguez"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/elegant-businessman_23-2147985497.jpg", imageAlt: "David Rodriguez"
|
||||
}
|
||||
]}
|
||||
buttons={[
|
||||
@@ -149,19 +150,19 @@ export default function LandingPage() {
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Jennifer Walsh", role: "Homeowner", company: "Eastside District", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1652.jpg?_wi=2", imageAlt: "Jennifer Walsh"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1652.jpg", imageAlt: "Jennifer Walsh"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Robert Williams", role: "Property Manager", company: "Commercial Properties", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/blond-man-happy-expression_1194-1902.jpg?_wi=2", imageAlt: "Robert Williams"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/blond-man-happy-expression_1194-1902.jpg", imageAlt: "Robert Williams"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Emily Santos", role: "Business Owner", company: "Local Retail", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/successful-young-businesswoman-showing-thumb-up_1262-5866.jpg?_wi=2", imageAlt: "Emily Santos"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/successful-young-businesswoman-showing-thumb-up_1262-5866.jpg", imageAlt: "Emily Santos"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Thomas Park", role: "Contractor", company: "Construction Company", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/elegant-businessman_23-2147985497.jpg?_wi=2", imageAlt: "Thomas Park"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/elegant-businessman_23-2147985497.jpg", imageAlt: "Thomas Park"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,34 @@
|
||||
"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;
|
||||
textClassName?: 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 = '',
|
||||
textClassName = '',
|
||||
}) => {
|
||||
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 60"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={`w-auto h-8 ${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="50%"
|
||||
y="50%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
className={`text-lg font-bold fill-current ${textClassName}`}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user