diff --git a/src/app/page.tsx b/src/app/page.tsx index c8dcd06..f3dd200 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -54,7 +54,7 @@ export default function LandingPage() { background={{ variant: "radial-gradient" }} carouselItems={[ { - id: "1", imageSrc: "http://img.b2bpic.net/free-vector/clinic-reception-realistic-modern-interior_1284-24101.jpg?_wi=1", imageAlt: "Modern dental clinic interior" + id: "1", imageSrc: "http://img.b2bpic.net/free-vector/clinic-reception-realistic-modern-interior_1284-24101.jpg", imageAlt: "Modern dental clinic interior" }, { id: "2", imageSrc: "http://img.b2bpic.net/free-photo/dentist-smiling-office_1328-4082.jpg", imageAlt: "Dr. Shahnawaz Ahmed" @@ -69,7 +69,7 @@ export default function LandingPage() { id: "5", imageSrc: "http://img.b2bpic.net/free-photo/dentist-work-young-woman-dentist-treating-kid-tooth-dentistry-concept_169016-66741.jpg", imageAlt: "Professional dental cleaning" }, { - id: "6", imageSrc: "http://img.b2bpic.net/free-vector/clinic-reception-realistic-modern-interior_1284-24101.jpg?_wi=2", imageAlt: "Welcoming clinic entrance" + id: "6", imageSrc: "http://img.b2bpic.net/free-vector/clinic-reception-realistic-modern-interior_1284-24101.jpg", imageAlt: "Welcoming clinic entrance" } ]} autoPlay={true} @@ -202,4 +202,4 @@ export default function LandingPage() { ); -} \ No newline at end of file +} diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..017af63 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,52 @@ -"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?: 'normal' | 'bold' | '600' | '700'; + letterSpacing?: number; } -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 = 24, + fontWeight = 'bold', + letterSpacing = 0, +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.6; + const totalWidth = textLength * charWidth + (textLength - 1) * letterSpacing + 40; + const viewBoxHeight = fontSize + 20; return ( + + + + + + - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;