Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 09:01:08 +00:00
2 changed files with 33 additions and 41 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="compact"
sizing="largeSmallSizeLargeTitles"
background="floatingGradient"
background="circleGradient"
cardStyle="gradient-radial"
primaryButtonStyle="flat"
secondaryButtonStyle="solid"
@@ -44,7 +44,7 @@ export default function LandingPage() {
tag="Serving Dripping Springs"
title="Expert Electrical Services for Your Home and Business"
description="Reliable, professional electrical contracting with one-year warranty. Master electrician-led team serving residential and commercial clients in the Austin area."
background={{ variant: "floatingGradient" }}
background={{ variant: "glowing-orb" }}
imageSrc="http://img.b2bpic.net/free-photo/male-electrician-works-switchboard-with-electrical-connecting-cable_169016-16571.jpg"
imageAlt="Professional electrical service technician"
mediaAnimation="slide-up"
@@ -81,6 +81,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-photo/electrician-wiring-panel-electrical-installation-work-cable-connection_169016-68356.jpg"
imageAlt="Professional electrician at work"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
useInvertedBackground={false}
/>
</div>
@@ -217,4 +218,4 @@ export default function LandingPage() {
</div>
</ThemeProvider>
);
}
}

View File

@@ -1,51 +1,42 @@
"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;
fontSize?: number;
fontWeight?: string | number;
fill?: string;
dominantBaseline?: 'auto' | 'baseline' | 'hanging' | 'ideographic' | 'mathematical' | 'central' | 'middle' | 'text-after-edge' | 'text-before-edge';
}
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 = '',
textClassName = '',
fontSize = 24,
fontWeight = 'bold',
fill = 'currentColor',
dominantBaseline = 'middle',
}: 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 60"
className={`${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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="central"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
className={`${textClassName}`}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
}