diff --git a/src/app/page.tsx b/src/app/page.tsx index c37baa4..8b97dbe 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -19,7 +19,7 @@ export default function LandingPage() { borderRadius="pill" contentWidth="mediumLarge" sizing="mediumLarge" - background="aurora" + background="circleGradient" cardStyle="glass-depth" primaryButtonStyle="radial-glow" secondaryButtonStyle="solid" @@ -47,7 +47,7 @@ export default function LandingPage() { tag="Luxury Outdoor Design" tagIcon={Sparkles} tagAnimation="slide-up" - background={{ variant: "aurora" }} + background={{ variant: "sparkles-gradient" }} buttons={[ { text: "Get Free Quote", href: "contact" }, { text: "View Portfolio", href: "services" } diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..81accaf 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,65 @@ -"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; + fontFamily?: string; + fontWeight?: number | string; + fill?: string; + stroke?: string; + strokeWidth?: number; + letterSpacing?: number; + dominantBaseline?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit'; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + text, + className = '', + fontSize = 48, + fontFamily = 'Arial, sans-serif', + fontWeight = 700, + fill = 'currentColor', + stroke = 'none', + strokeWidth = 0, + letterSpacing = 0, + dominantBaseline = 'middle', +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.5; + const totalWidth = textLength * charWidth + letterSpacing * (textLength - 1); + const padding = 20; + const width = totalWidth + padding * 2; + const height = fontSize + padding * 2; + const xStart = padding + charWidth / 2; + const yStart = height / 2; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;