Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 18:58:28 +00:00
2 changed files with 31 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="mediumSmall"
sizing="largeSmallSizeLargeTitles"
background="floatingGradient"
background="circleGradient"
cardStyle="layered-gradient"
primaryButtonStyle="radial-glow"
secondaryButtonStyle="layered"
@@ -55,7 +55,7 @@ export default function LandingPage() {
{ text: "Book a Service", href: "#contact" },
{ text: "Meet Autumn", href: "#about" }
]}
background={{ variant: "floatingGradient" }}
background={{ variant: "plain" }}
buttonAnimation="slide-up"
/>
</div>
@@ -255,7 +255,7 @@ export default function LandingPage() {
tag="Book Now"
title="Ready to Give Your Pet the Care They Deserve?"
description="Schedule your free meet & greet today. Let's make sure your pet feels loved while you're away."
background={{ variant: "floatingGradient" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
inputPlaceholder="Your email address"
buttonText="Book Your Free Meet & Greet"

View File

@@ -1,51 +1,41 @@
"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;
fontSize?: number;
fontWeight?: number | string;
textAnchor?: 'start' | 'middle' | 'end';
dominantBaseline?: 'middle' | 'hanging' | 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic';
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
fontSize = 24,
fontWeight = 700,
textAnchor = 'middle',
dominantBaseline = 'middle'
}) => {
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 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
width="100%"
height="100%"
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={`${text.length * fontSize * 0.3}`}
y={`${fontSize * 0.75}`}
fontSize={fontSize}
fontWeight={fontWeight}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
className="fill-current"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
};