Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 05:26:26 +00:00
2 changed files with 50 additions and 49 deletions

View File

@@ -51,13 +51,13 @@ export default function LandingPage() {
{ text: "View Services", href: "services" }
]}
buttonAnimation="slide-up"
background={{ variant: "circleGradient" }}
background={{ variant: "sparkles-gradient" }}
mediaItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/barber-showing-cosmetics-client_23-2147737100.jpg", imageAlt: "Premium barbershop interior with skilled barber" },
{ imageSrc: "http://img.b2bpic.net/free-photo/barber-makes-fade-cut-man-s-hair_1304-2761.jpg?_wi=1", imageAlt: "Expert barber performing precision fade" },
{ imageSrc: "http://img.b2bpic.net/free-photo/two-businessmen-talking-phone-city_1153-8203.jpg?_wi=1", imageAlt: "Professional beard grooming service" },
{ imageSrc: "http://img.b2bpic.net/free-photo/long-bearded-man-looking-clothes-hanging-rail-shop_23-2148175632.jpg?_wi=1", imageAlt: "Luxurious hot shave experience" },
{ imageSrc: "http://img.b2bpic.net/free-photo/hairdresser-combing-beard-senior-client-salon_23-2148182003.jpg?_wi=1", imageAlt: "Professional hair coloring service" }
{ imageSrc: "http://img.b2bpic.net/free-photo/barber-makes-fade-cut-man-s-hair_1304-2761.jpg", imageAlt: "Expert barber performing precision fade" },
{ imageSrc: "http://img.b2bpic.net/free-photo/two-businessmen-talking-phone-city_1153-8203.jpg", imageAlt: "Professional beard grooming service" },
{ imageSrc: "http://img.b2bpic.net/free-photo/long-bearded-man-looking-clothes-hanging-rail-shop_23-2148175632.jpg", imageAlt: "Luxurious hot shave experience" },
{ imageSrc: "http://img.b2bpic.net/free-photo/hairdresser-combing-beard-senior-client-salon_23-2148182003.jpg", imageAlt: "Professional hair coloring service" }
]}
ariaLabel="Kubazz Barbershop hero section"
/>
@@ -77,19 +77,19 @@ export default function LandingPage() {
features={[
{
id: 1,
title: "Precision Haircuts", description: "Expert fades, modern cuts, and classic styles executed with precision. Every cut is customized to your face shape and preferences.", imageSrc: "http://img.b2bpic.net/free-photo/barber-makes-fade-cut-man-s-hair_1304-2761.jpg?_wi=2", imageAlt: "Precision barber haircut service"
title: "Precision Haircuts", description: "Expert fades, modern cuts, and classic styles executed with precision. Every cut is customized to your face shape and preferences.", imageSrc: "http://img.b2bpic.net/free-photo/barber-makes-fade-cut-man-s-hair_1304-2761.jpg", imageAlt: "Precision barber haircut service"
},
{
id: 2,
title: "Beard Grooming", description: "Professional beard trimming, shaping, and conditioning. Keep your beard looking sharp and well-maintained with our expert care.", imageSrc: "http://img.b2bpic.net/free-photo/two-businessmen-talking-phone-city_1153-8203.jpg?_wi=2", imageAlt: "Professional beard grooming and styling"
title: "Beard Grooming", description: "Professional beard trimming, shaping, and conditioning. Keep your beard looking sharp and well-maintained with our expert care.", imageSrc: "http://img.b2bpic.net/free-photo/two-businessmen-talking-phone-city_1153-8203.jpg", imageAlt: "Professional beard grooming and styling"
},
{
id: 3,
title: "Hot Shave Experience", description: "Traditional hot lather shave with straight razor technique. A luxurious experience that leaves your skin smooth and refreshed.", imageSrc: "http://img.b2bpic.net/free-photo/long-bearded-man-looking-clothes-hanging-rail-shop_23-2148175632.jpg?_wi=2", imageAlt: "Premium hot shave barbershop service"
title: "Hot Shave Experience", description: "Traditional hot lather shave with straight razor technique. A luxurious experience that leaves your skin smooth and refreshed.", imageSrc: "http://img.b2bpic.net/free-photo/long-bearded-man-looking-clothes-hanging-rail-shop_23-2148175632.jpg", imageAlt: "Premium hot shave barbershop service"
},
{
id: 4,
title: "Hair Coloring", description: "Professional men's hair coloring and tinting services. Enhance your look with custom color treatments applied by expert stylists.", imageSrc: "http://img.b2bpic.net/free-photo/hairdresser-combing-beard-senior-client-salon_23-2148182003.jpg?_wi=2", imageAlt: "Professional hair coloring application"
title: "Hair Coloring", description: "Professional men's hair coloring and tinting services. Enhance your look with custom color treatments applied by expert stylists.", imageSrc: "http://img.b2bpic.net/free-photo/hairdresser-combing-beard-senior-client-salon_23-2148182003.jpg", imageAlt: "Professional hair coloring application"
}
]}
/>

View File

@@ -1,50 +1,51 @@
"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;
textClassName?: string;
ariaLabel?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo = React.forwardRef<SVGSVGElement, SvgTextLogoProps>(
(
{ text = "Webild", className = "", textClassName = "", ariaLabel },
ref
) => {
const textLength = text.length;
const charWidth = 50;
const viewBoxWidth = textLength * charWidth + 20;
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
}}
return (
<svg
ref={ref}
viewBox={`0 0 ${viewBoxWidth} 100`}
className={`w-full h-full ${className}`}
xmlns="http://www.w3.org/2000/svg"
aria-label={ariaLabel || text}
role="img"
>
{logoText}
</text>
</svg>
);
});
<defs>
<style>{`
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');
`}</style>
</defs>
<text
x="50%"
y="50%"
dominantBaseline="middle"
textAnchor="middle"
className={`fill-current font-bold text-4xl ${textClassName}`}
fontFamily="Inter, sans-serif"
fontSize="48"
fontWeight="900"
>
{text}
</text>
</svg>
);
}
);
SvgTextLogo.displayName = "SvgTextLogo";