Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 18:29:22 +00:00
2 changed files with 52 additions and 46 deletions

View File

@@ -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'
}
]}

View File

@@ -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<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
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 (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
aria-label={text}
>
<defs>
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style={{ stopColor: '#3b82f6', stopOpacity: 1 }} />
<stop offset="100%" style={{ stopColor: '#1e40af', stopOpacity: 1 }} />
</linearGradient>
</defs>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
x="50%"
y="50%"
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
textAnchor="middle"
dominantBaseline="central"
fill="url(#textGradient)"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
fontFamily: 'system-ui, -apple-system, sans-serif',
}}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;