Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 19:23:02 +00:00
2 changed files with 19 additions and 48 deletions

View File

@@ -102,7 +102,6 @@ export default function LandingPage() {
buttonAnimation="slide-up"
className=""
containerClassName=""
titleClassName="text-4xl md:text-5xl font-bold leading-tight"
/>
</div>
@@ -137,7 +136,6 @@ export default function LandingPage() {
buttonAnimation="slide-up"
className=""
containerClassName=""
titleClassName="text-4xl md:text-5xl font-bold leading-tight"
/>
</div>
@@ -168,7 +166,6 @@ export default function LandingPage() {
buttonAnimation="slide-up"
className=""
containerClassName=""
titleClassName="text-4xl md:text-5xl font-bold leading-tight"
/>
</div>
@@ -176,20 +173,16 @@ export default function LandingPage() {
<TestimonialCardSixteen
testimonials={[
{
id: "1", name: "Sarah Johnson", role: "Homeowner", company: "North Hills", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/woman-walking-romantic-happy-holidays-holding-hand-boyfriend-following-her_1150-4660.jpg", imageAlt: "Sarah Johnson testimonial"
id: "1", name: "Sarah Johnson", role: "Homeowner", company: "North Hills", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/woman-walking-romantic-happy-holidays-holding-hand-boyfriend-following-her_1150-4660.jpg", imageAlt: "Sarah Johnson testimonial"
},
{
id: "2", name: "Michael Chen", role: "HOA Manager", company: "McCandless Community", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/positive-aged-man_1098-21813.jpg", imageAlt: "Michael Chen testimonial"
id: "2", name: "Michael Chen", role: "HOA Manager", company: "McCandless Community", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/positive-aged-man_1098-21813.jpg", imageAlt: "Michael Chen testimonial"
},
{
id: "3", name: "Emily Rodriguez", role: "Homeowner", company: "Cranberry Township", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/blond-man-surprised_1194-2887.jpg", imageAlt: "Emily Rodriguez testimonial"
id: "3", name: "Emily Rodriguez", role: "Homeowner", company: "Cranberry Township", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/blond-man-surprised_1194-2887.jpg", imageAlt: "Emily Rodriguez testimonial"
},
{
id: "4", name: "David Kim", role: "Property Owner", company: "Wexford", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/closeup-young-successful-man-smiling-camera-standing-casual-outfit-against-blue-background_1258-145601.jpg", imageAlt: "David Kim testimonial"
id: "4", name: "David Kim", role: "Property Owner", company: "Wexford", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/closeup-young-successful-man-smiling-camera-standing-casual-outfit-against-blue-background_1258-145601.jpg", imageAlt: "David Kim testimonial"
}
]}
kpiItems={[
@@ -207,7 +200,6 @@ export default function LandingPage() {
buttonAnimation="slide-up"
className=""
containerClassName=""
titleClassName="text-4xl md:text-5xl font-bold leading-tight"
/>
</div>

View File

@@ -1,51 +1,30 @@
"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);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, 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 300 100"
className={`w-full h-auto ${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"
fontSize="48"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;