Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 21:21:20 +00:00
2 changed files with 35 additions and 37 deletions

View File

@@ -10,7 +10,7 @@ import TeamCardOne from '@/components/sections/team/TeamCardOne';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Award, Calendar, Heart, Scissors, Sparkles, TrendingUp, Users, Star, MessageSquare } from 'lucide-react';
import { Award, Calendar, Heart, Scissors, Sparkles, TrendingUp, Users, Star, MessageSquare, Trophy } from 'lucide-react';
export default function LandingPage() {
return (
@@ -136,7 +136,7 @@ export default function LandingPage() {
{ id: "clients", value: "5000", title: "Happy Clients", description: "Satisfied customers who trust us with their grooming", icon: Users },
{ id: "years", value: "15", title: "Years in Business", description: "Dedicated to professional barbering since 2015", icon: Calendar },
{ id: "satisfaction", value: "99", title: "% Satisfaction Rate", description: "Nearly perfect customer satisfaction rating", icon: Star },
{ id: "awards", value: "12", title: "Industry Awards", description: "Recognition for excellence in barbering services", icon: TrendingUp }
{ id: "awards", value: "12", title: "Industry Awards", description: "Recognition for excellence in barbering services", icon: Trophy }
]}
gridVariant="uniform-all-items-equal"
animationType="slide-up"

View File

@@ -1,51 +1,49 @@
"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;
textAnchor?: 'start' | 'middle' | 'end';
dominantBaseline?: 'auto' | 'baseline' | 'middle' | 'hanging';
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
fontSize = 24,
fontWeight = 700,
letterSpacing = 0,
textAnchor = 'middle',
dominantBaseline = 'middle',
}) => {
const svgWidth = text.length * (fontSize * 0.6) + 40;
const svgHeight = fontSize + 20;
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width={svgWidth}
height={svgHeight}
viewBox={`0 0 ${svgWidth} ${svgHeight}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<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"
}}
x={svgWidth / 2}
y={svgHeight / 2}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;