From 174cad476975c390978201d6311c469192017d3b Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 10 Mar 2026 23:10:45 +0000 Subject: [PATCH 1/4] Update src/app/markets/page.tsx --- src/app/markets/page.tsx | 52 ++++++++-------------------------------- 1 file changed, 10 insertions(+), 42 deletions(-) diff --git a/src/app/markets/page.tsx b/src/app/markets/page.tsx index 93e0cbb..8999928 100644 --- a/src/app/markets/page.tsx +++ b/src/app/markets/page.tsx @@ -20,8 +20,7 @@ export default function MarketsPage() { const footerColumns = [ { - title: "Explore", - items: [ + title: "Explore", items: [ { label: "Browse Markets", href: "/markets" }, { label: "Search Homes", href: "search" }, { label: "How It Works", href: "how-it-works" }, @@ -29,8 +28,7 @@ export default function MarketsPage() { ], }, { - title: "Company", - items: [ + title: "Company", items: [ { label: "About Us", href: "about" }, { label: "Blog", href: "blog" }, { label: "Careers", href: "careers" }, @@ -38,8 +36,7 @@ export default function MarketsPage() { ], }, { - title: "Legal", - items: [ + title: "Legal", items: [ { label: "Terms of Service", href: "#" }, { label: "Privacy Policy", href: "#" }, { label: "Cookie Policy", href: "#" }, @@ -65,16 +62,14 @@ export default function MarketsPage() {
Date: Tue, 10 Mar 2026 23:10:46 +0000 Subject: [PATCH 2/4] Update src/app/page.tsx --- src/app/page.tsx | 222 +++++++++-------------------------------------- 1 file changed, 41 insertions(+), 181 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index d0cafcc..00f9811 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -36,30 +36,24 @@ export default function HomePage() { { name: "Contact", id: "contact" }, ]} button={{ - text: "Find Your Home", - href: "search", - }} + text: "Find Your Home", href: "search"}} />
@@ -110,40 +93,15 @@ export default function HomePage() { @@ -172,39 +128,12 @@ export default function HomePage() { textboxLayout="default" useInvertedBackground={false} names={[ - "Atlanta", - "Boston", - "Charlotte", - "Chicago", - "Cincinnati", - "Cleveland", - "Columbus", - "Dallas", - "Denver", - "Houston", - "Indianapolis", - "Kansas City", - "Minneapolis", - "Nashville", - "New York Metro", - "Philadelphia", - "Phoenix", - "Raleigh", - "Richmond", - "Seattle", - "Southern California", - "San Diego", - "St. Louis", - "Washington DC", - "Tampa Bay", - ]} + "Atlanta", "Boston", "Charlotte", "Chicago", "Cincinnati", "Cleveland", "Columbus", "Dallas", "Denver", "Houston", "Indianapolis", "Kansas City", "Minneapolis", "Nashville", "New York Metro", "Philadelphia", "Phoenix", "Raleigh", "Richmond", "Seattle", "Southern California", "San Diego", "St. Louis", "Washington DC", "Tampa Bay"]} speed={40} showCard={true} buttons={[ { - text: "Explore All Markets", - href: "markets", - }, + text: "Explore All Markets", href: "markets"}, ]} /> @@ -213,49 +142,13 @@ export default function HomePage() { @@ -277,89 +168,58 @@ export default function HomePage() {
Date: Tue, 10 Mar 2026 23:10:47 +0000 Subject: [PATCH 4/4] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 103 ++++++++++-------- 1 file changed, 59 insertions(+), 44 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..3b148f3 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,66 @@ -"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; +interface SvgTextLogoProps extends SVGProps { + text: string; + fontSize?: number; + fontFamily?: string; + fontWeight?: number | string; + fill?: string; + letterSpacing?: number; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo = React.forwardRef( + ( + { + text = 'Webild', + fontSize = 48, + fontFamily = 'system-ui, -apple-system, sans-serif', + fontWeight = 700, + fill = '#000000', + letterSpacing = 0, + ...props + }, + ref, + ) => { + const textElement = React.useRef(null); + const [dimensions, setDimensions] = React.useState({ width: 0, height: 0 }); - return ( - - { + if (textElement.current) { + const bbox = textElement.current.getBBox(); + setDimensions({ + width: bbox.width + 20, + height: bbox.height + 20, + }); + } + }, [text, fontSize, fontFamily, fontWeight]); + + return ( + - {logoText} - - - ); -}); + + {text} + + + ); + }, +); -SvgTextLogo.displayName = "SvgTextLogo"; +SvgTextLogo.displayName = 'SvgTextLogo'; -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file -- 2.49.1