Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-13 01:08:06 +00:00
2 changed files with 49 additions and 53 deletions

View File

@@ -43,6 +43,7 @@ export default function LandingPage() {
<HeroSplitTestimonial
title="Transform Your Outdoor Space"
description="Expert landscape design and maintenance services that bring your vision to life. Over 15 years of creating beautiful, functional outdoor environments."
background={{ variant: "plain" }}
tag="Professional Landscaping"
tagIcon={Sparkles}
imagePosition="right"
@@ -53,19 +54,19 @@ export default function LandingPage() {
testimonials={[
{
name: "Sarah Johnson", handle: "Homeowner, Portland", testimonial: "Chris completely transformed our backyard. Professional, detail-oriented, and amazing results!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-confident-successful-businesswoman-suit-cross-arms-chest-standing_1258-117443.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-confident-successful-businesswoman-suit-cross-arms-chest-standing_1258-117443.jpg"
},
{
name: "Michael Chen", handle: "Commercial Property Manager", testimonial: "Outstanding work on our office landscaping. The team is reliable and produces exceptional quality.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1613.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1613.jpg"
},
{
name: "Emma Rodriguez", handle: "Homeowner, Seattle", testimonial: "From design consultation to final installation, Chris exceeded all expectations. Highly recommended!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/closeup-content-pretty-businesswoman-glasses_1262-1740.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/closeup-content-pretty-businesswoman-glasses_1262-1740.jpg"
},
{
name: "David Park", handle: "Restaurant Owner", testimonial: "Our outdoor dining area is stunning thanks to Chris Landscape Services. Customers love it!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/modern-businessman-urban-environment_23-2148171120.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/modern-businessman-urban-environment_23-2148171120.jpg"
}
]}
buttons={[
@@ -238,16 +239,16 @@ export default function LandingPage() {
useInvertedBackground={false}
testimonials={[
{
id: "1", name: "Sarah Johnson", role: "Homeowner", testimonial: "Chris completely transformed our backyard into a beautiful oasis. The design was exactly what we envisioned, and the craftsmanship is exceptional. Highly recommended!", imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-confident-successful-businesswoman-suit-cross-arms-chest-standing_1258-117443.jpg?_wi=2", imageAlt: "Sarah Johnson"
id: "1", name: "Sarah Johnson", role: "Homeowner", testimonial: "Chris completely transformed our backyard into a beautiful oasis. The design was exactly what we envisioned, and the craftsmanship is exceptional. Highly recommended!", imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-confident-successful-businesswoman-suit-cross-arms-chest-standing_1258-117443.jpg", imageAlt: "Sarah Johnson"
},
{
id: "2", name: "Michael Chen", role: "Property Manager", testimonial: "Working with Chris Landscape Services on our office landscaping was seamless. Professional team, great communication, and outstanding results. Our clients love the new look!", imageSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1613.jpg?_wi=2", imageAlt: "Michael Chen"
id: "2", name: "Michael Chen", role: "Property Manager", testimonial: "Working with Chris Landscape Services on our office landscaping was seamless. Professional team, great communication, and outstanding results. Our clients love the new look!", imageSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1613.jpg", imageAlt: "Michael Chen"
},
{
id: "3", name: "Emma Rodriguez", role: "Homeowner", testimonial: "From the initial consultation to the final touches, Chris's attention to detail is remarkable. Our landscape is not only beautiful but also well-maintained and sustainable.", imageSrc: "http://img.b2bpic.net/free-photo/closeup-content-pretty-businesswoman-glasses_1262-1740.jpg?_wi=2", imageAlt: "Emma Rodriguez"
id: "3", name: "Emma Rodriguez", role: "Homeowner", testimonial: "From the initial consultation to the final touches, Chris's attention to detail is remarkable. Our landscape is not only beautiful but also well-maintained and sustainable.", imageSrc: "http://img.b2bpic.net/free-photo/closeup-content-pretty-businesswoman-glasses_1262-1740.jpg", imageAlt: "Emma Rodriguez"
},
{
id: "4", name: "David Park", role: "Restaurant Owner", testimonial: "Our outdoor dining area is now one of our best assets. Chris created an inviting space that customers absolutely love. Great investment in our business!", imageSrc: "http://img.b2bpic.net/free-photo/modern-businessman-urban-environment_23-2148171120.jpg?_wi=2", imageAlt: "David Park"
id: "4", name: "David Park", role: "Restaurant Owner", testimonial: "Our outdoor dining area is now one of our best assets. Chris created an inviting space that customers absolutely love. Great investment in our business!", imageSrc: "http://img.b2bpic.net/free-photo/modern-businessman-urban-environment_23-2148171120.jpg", imageAlt: "David Park"
},
{
id: "5", name: "Jennifer Martinez", role: "Homeowner", testimonial: "Seasonal maintenance has never been easier. Chris handles everything with professionalism and care. My landscape looks perfect year-round!", imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-businesswoman-posing-isolated_329181-15409.jpg", imageAlt: "Jennifer Martinez"

View File

@@ -1,51 +1,46 @@
"use client";
import React, { SVGProps } from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
className?: string;
export interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text?: string;
fontSize?: number;
fontWeight?: number | string;
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging' | 'text-top';
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
>
<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"
}}
const SvgTextLogo = React.forwardRef<SVGSVGElement, SvgTextLogoProps>(
(
{
text = 'Logo',
fontSize = 24,
fontWeight = 700,
dominantBaseline = 'middle',
...props
},
ref
) => {
return (
<svg
ref={ref}
viewBox="0 0 200 50"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{logoText}
</text>
</svg>
);
});
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
fontSize={fontSize}
fontWeight={fontWeight}
fill="currentColor"
>
{text}
</text>
</svg>
);
}
);
SvgTextLogo.displayName = "SvgTextLogo";
SvgTextLogo.displayName = 'SvgTextLogo';
export default SvgTextLogo;
export default SvgTextLogo;