From 0b570bea85a6d5cdcae07f945b6d145c1b7c796d Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 06:54:44 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index e494488..bb6a6bf 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -75,15 +75,15 @@ export default function LandingPage() { features={[ { id: 1, - title: "Meridian Residence", description: "A contemporary family home that embraces clean lines and natural light. Featuring open-plan living spaces with strategic material transitions.", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-contemporary-modern-design-apartment-with-natural-light-fron-bir-window-white-curtain_609648-50.jpg", imageAlt: "Meridian Residence minimalist home" + title: "Meridian Residence", description="A contemporary family home that embraces clean lines and natural light. Featuring open-plan living spaces with strategic material transitions.", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-contemporary-modern-design-apartment-with-natural-light-fron-bir-window-white-curtain_609648-50.jpg", imageAlt: "Meridian Residence minimalist home" }, { id: 2, - title: "Corporate Nexus", description: "A landmark office building that prioritizes employee wellness through thoughtful spatial design and minimal visual complexity.", imageSrc: "http://img.b2bpic.net/free-photo/skyscrapers-from-low-angle-view_1359-573.jpg", imageAlt: "Corporate Nexus office building" + title: "Corporate Nexus", description="A landmark office building that prioritizes employee wellness through thoughtful spatial design and minimal visual complexity.", imageSrc: "http://img.b2bpic.net/free-photo/skyscrapers-from-low-angle-view_1359-573.jpg", imageAlt: "Corporate Nexus office building" }, { id: 3, - title: "Retreat Studios", description: "An intimate residential complex that reinterprets minimalism through material honesty and architectural restraint.", imageSrc: "http://img.b2bpic.net/free-photo/comfortable-modern-living-room-with-elegant-decor-generated-by-ai_188544-45634.jpg", imageAlt: "Retreat Studios residential complex" + title: "Retreat Studios", description="An intimate residential complex that reinterprets minimalism through material honesty and architectural restraint.", imageSrc: "http://img.b2bpic.net/free-photo/comfortable-modern-living-room-with-elegant-decor-generated-by-ai_188544-45634.jpg", imageAlt: "Retreat Studios residential complex" } ]} /> -- 2.49.1 From 5537c1e96035aa4d193ec8cc384f23bbb04c50c7 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 06:54:44 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 76 ++++++++++--------- 1 file changed, 40 insertions(+), 36 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..ca48bf9 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,55 @@ -"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; + letterSpacing?: number; + fill?: string; + strokeWidth?: number; + stroke?: string; } -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, + fontWeight = 700, + letterSpacing = 0, + fill = 'currentColor', + strokeWidth = 0, + stroke = 'none', +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.6; + const svgWidth = textLength * charWidth + 40; + const svgHeight = fontSize + 40; return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file -- 2.49.1