Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -9,7 +9,7 @@ import ProductCardThree from '@/components/sections/product/ProductCardThree';
|
||||
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
|
||||
import ContactText from '@/components/sections/contact/ContactText';
|
||||
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
|
||||
import { Award, Brick, CheckCircle, Hammer, Leaf, PenTool } from 'lucide-react';
|
||||
import { Award, CheckCircle, Hammer, Leaf, PenTool } from 'lucide-react';
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
@@ -48,15 +48,15 @@ export default function LandingPage() {
|
||||
testimonials={[
|
||||
{
|
||||
name: "Sarah Mitchell", handle: "Homeowner, Downtown", testimonial: "Absolutely incredible work. Our backyard went from plain to stunning. The team was professional and the craftsmanship was amazing.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/dreamy-middle-aged-man-standing-city-park_1262-20157.jpg?_wi=1", imageAlt: "Sarah Mitchell"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/dreamy-middle-aged-man-standing-city-park_1262-20157.jpg", imageAlt: "Sarah Mitchell"
|
||||
},
|
||||
{
|
||||
name: "Michael Johnson", handle: "Property Owner", testimonial: "Very reliable and easy to work with. Our landscaping project turned out better than we imagined.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-posing-outdoors_23-2147636737.jpg?_wi=1", imageAlt: "Michael Johnson"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-posing-outdoors_23-2147636737.jpg", imageAlt: "Michael Johnson"
|
||||
},
|
||||
{
|
||||
name: "Jessica Chen", handle: "Homeowner", testimonial: "Professional crew, fair pricing, and beautiful results. Highly recommend Artisan Landscaping.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-confident-business-woman-beige-suit-corporate-lawyer-saleswoman-standing-out_1258-123467.jpg?_wi=1", imageAlt: "Jessica Chen"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-confident-business-woman-beige-suit-corporate-lawyer-saleswoman-standing-out_1258-123467.jpg", imageAlt: "Jessica Chen"
|
||||
}
|
||||
]}
|
||||
buttons={[
|
||||
@@ -87,7 +87,7 @@ export default function LandingPage() {
|
||||
title: "Lawn & Garden Care", description: "Professional lawn care, planting, and seasonal yard maintenance to keep your outdoor space thriving year-round."
|
||||
},
|
||||
{
|
||||
icon: Brick,
|
||||
icon: CheckCircle,
|
||||
title: "Hardscaping", description: "Walkways, retaining walls, and decorative stone features that add structure and beauty to your landscape."
|
||||
}
|
||||
]}
|
||||
@@ -145,17 +145,17 @@ export default function LandingPage() {
|
||||
title="What Our Clients Say"
|
||||
description="Real feedback from homeowners who trusted us with their outdoor transformations."
|
||||
textboxLayout="default"
|
||||
animationType="entrance-slide"
|
||||
animationType="slide-up"
|
||||
useInvertedBackground={false}
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Sarah Mitchell", handle: "Downtown Homeowner", testimonial: "Absolutely incredible work. Our backyard went from plain to stunning. The team was professional and the craftsmanship was amazing.", imageSrc: "http://img.b2bpic.net/free-photo/dreamy-middle-aged-man-standing-city-park_1262-20157.jpg?_wi=2", imageAlt: "Sarah Mitchell"
|
||||
id: "1", name: "Sarah Mitchell", handle: "Downtown Homeowner", testimonial: "Absolutely incredible work. Our backyard went from plain to stunning. The team was professional and the craftsmanship was amazing.", imageSrc: "http://img.b2bpic.net/free-photo/dreamy-middle-aged-man-standing-city-park_1262-20157.jpg", imageAlt: "Sarah Mitchell"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Michael Johnson", handle: "Property Owner", testimonial: "Very reliable and easy to work with. Our landscaping project turned out better than we imagined.", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-posing-outdoors_23-2147636737.jpg?_wi=2", imageAlt: "Michael Johnson"
|
||||
id: "2", name: "Michael Johnson", handle: "Property Owner", testimonial: "Very reliable and easy to work with. Our landscaping project turned out better than we imagined.", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-posing-outdoors_23-2147636737.jpg", imageAlt: "Michael Johnson"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Jessica Chen", handle: "Homeowner", testimonial: "Professional crew, fair pricing, and beautiful results. Highly recommend Artisan Landscaping.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-confident-business-woman-beige-suit-corporate-lawyer-saleswoman-standing-out_1258-123467.jpg?_wi=2", imageAlt: "Jessica Chen"
|
||||
id: "3", name: "Jessica Chen", handle: "Homeowner", testimonial: "Professional crew, fair pricing, and beautiful results. Highly recommend Artisan Landscaping.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-confident-business-woman-beige-suit-corporate-lawyer-saleswoman-standing-out_1258-123467.jpg", imageAlt: "Jessica Chen"
|
||||
},
|
||||
{
|
||||
id: "4", name: "David Rodriguez", handle: "Residential Client", testimonial: "They understood our vision perfectly and brought it to life. Exceeded all expectations with their attention to detail.", imageSrc: "http://img.b2bpic.net/free-photo/young-pretty-woman-outdoors_624325-737.jpg", imageAlt: "David Rodriguez"
|
||||
|
||||
@@ -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";
|
||||
text: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
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,
|
||||
width = 200,
|
||||
height = 100,
|
||||
fontSize = 24,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fill = '#000000',
|
||||
className,
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
>
|
||||
<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"
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user