From 3bb6ac6806184060ae5ff70e6e742acd2883abe7 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 18:29:17 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 5697b84..125e376 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -50,16 +50,16 @@ export default function LandingPage() { tagAnimation="slide-up" background={{ variant: 'plain' }} leftCarouselItems={[ - { imageSrc: 'http://img.b2bpic.net/free-photo/close-up-man-getting-his-beard-trimmed_23-2148256868.jpg?_wi=1', imageAlt: 'Professional barber haircut service' }, - { imageSrc: 'http://img.b2bpic.net/free-photo/front-view-barbershop-concept_23-2148506253.jpg?_wi=1', imageAlt: 'Expert beard styling and grooming' }, - { imageSrc: 'http://img.b2bpic.net/free-photo/men-looking-out-window-cafe_23-2147775903.jpg?_wi=1', imageAlt: 'Modern barbershop interior' }, - { imageSrc: 'http://img.b2bpic.net/free-photo/attentive-barber-shaving-beard-client-barber-shop_23-2148181974.jpg?_wi=1', imageAlt: 'Quality grooming service' } + { imageSrc: 'http://img.b2bpic.net/free-photo/close-up-man-getting-his-beard-trimmed_23-2148256868.jpg', imageAlt: 'Professional barber haircut service' }, + { imageSrc: 'http://img.b2bpic.net/free-photo/front-view-barbershop-concept_23-2148506253.jpg', imageAlt: 'Expert beard styling and grooming' }, + { imageSrc: 'http://img.b2bpic.net/free-photo/men-looking-out-window-cafe_23-2147775903.jpg', imageAlt: 'Modern barbershop interior' }, + { imageSrc: 'http://img.b2bpic.net/free-photo/attentive-barber-shaving-beard-client-barber-shop_23-2148181974.jpg', imageAlt: 'Quality grooming service' } ]} rightCarouselItems={[ - { imageSrc: 'http://img.b2bpic.net/free-photo/men-looking-out-window-cafe_23-2147775903.jpg?_wi=2', imageAlt: 'Welcoming barbershop entrance' }, - { imageSrc: 'http://img.b2bpic.net/free-photo/close-up-man-getting-his-beard-trimmed_23-2148256868.jpg?_wi=2', imageAlt: 'Skilled barber at work' }, - { imageSrc: 'http://img.b2bpic.net/free-photo/front-view-barbershop-concept_23-2148506253.jpg?_wi=2', imageAlt: 'Professional grooming setup' }, - { imageSrc: 'http://img.b2bpic.net/free-photo/attentive-barber-shaving-beard-client-barber-shop_23-2148181974.jpg?_wi=2', imageAlt: 'Expert hair styling' } + { imageSrc: 'http://img.b2bpic.net/free-photo/men-looking-out-window-cafe_23-2147775903.jpg', imageAlt: 'Welcoming barbershop entrance' }, + { imageSrc: 'http://img.b2bpic.net/free-photo/close-up-man-getting-his-beard-trimmed_23-2148256868.jpg', imageAlt: 'Skilled barber at work' }, + { imageSrc: 'http://img.b2bpic.net/free-photo/front-view-barbershop-concept_23-2148506253.jpg', imageAlt: 'Professional grooming setup' }, + { imageSrc: 'http://img.b2bpic.net/free-photo/attentive-barber-shaving-beard-client-barber-shop_23-2148181974.jpg', imageAlt: 'Expert hair styling' } ]} buttons={[ { text: 'Book Appointment', href: 'contact' }, @@ -79,7 +79,7 @@ export default function LandingPage() { description="Mustapha Murayati - Lead Barber" subdescription="Arez Barbershop, Erbil" icon={Star} - imageSrc="http://img.b2bpic.net/free-photo/men-looking-out-window-cafe_23-2147775903.jpg?_wi=3" + imageSrc="http://img.b2bpic.net/free-photo/men-looking-out-window-cafe_23-2147775903.jpg" imageAlt="Arez Barbershop Interior" mediaAnimation="slide-up" useInvertedBackground={false} @@ -102,7 +102,7 @@ export default function LandingPage() { 'Latest trends and classic styles available', 'Precise technique and attention to detail' ], - imageSrc: 'http://img.b2bpic.net/free-photo/close-up-man-getting-his-beard-trimmed_23-2148256868.jpg?_wi=3', + imageSrc: 'http://img.b2bpic.net/free-photo/close-up-man-getting-his-beard-trimmed_23-2148256868.jpg', imageAlt: 'Professional haircut service' }, { @@ -113,7 +113,7 @@ export default function LandingPage() { 'Beard conditioning and maintenance', 'Expert trimming for the perfect look' ], - imageSrc: 'http://img.b2bpic.net/free-photo/front-view-barbershop-concept_23-2148506253.jpg?_wi=3', + imageSrc: 'http://img.b2bpic.net/free-photo/front-view-barbershop-concept_23-2148506253.jpg', imageAlt: 'Beard grooming service' }, { @@ -124,7 +124,7 @@ export default function LandingPage() { 'Premium scalp treatments and massage', 'Personalized care recommendations' ], - imageSrc: 'http://img.b2bpic.net/free-photo/attentive-barber-shaving-beard-client-barber-shop_23-2148181974.jpg?_wi=3', + imageSrc: 'http://img.b2bpic.net/free-photo/attentive-barber-shaving-beard-client-barber-shop_23-2148181974.jpg', imageAlt: 'Hair care service' }, { @@ -135,7 +135,7 @@ export default function LandingPage() { 'Soothing hot towel treatment', 'Premium aftercare products' ], - imageSrc: 'http://img.b2bpic.net/free-photo/close-up-man-getting-his-beard-trimmed_23-2148256868.jpg?_wi=4', + imageSrc: 'http://img.b2bpic.net/free-photo/close-up-man-getting-his-beard-trimmed_23-2148256868.jpg', imageAlt: 'Traditional shaving service' } ]} -- 2.49.1 From da49daf20d3c564829ce526e1bb6620a686e189e Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 18:29:17 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 72 ++++++++++--------- 1 file changed, 39 insertions(+), 33 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..8e0b042 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,57 @@ -"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; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +export const SvgTextLogo: React.FC = ({ + text, + className = '', + fontSize = 24, + fontWeight = 'bold', + letterSpacing = 0, +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.6; + const width = textLength * charWidth + letterSpacing * (textLength - 1); + const height = fontSize * 1.5; return ( + + + + + + - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo; -- 2.49.1