Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 20:03:26 +00:00
2 changed files with 34 additions and 42 deletions

View File

@@ -10,7 +10,7 @@ import BlogCardOne from '@/components/sections/blog/BlogCardOne';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Award, Scissors, Users, Clock, Zap, Star, Phone, Facebook, Instagram } from 'lucide-react';
import { Award, Scissors, Users, Clock, Zap, Star, Phone, Facebook, Instagram, Camera, TrendingUp } from 'lucide-react';
export default function LandingPage() {
return (
@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="compact"
sizing="largeSmall"
background="aurora"
background="circleGradient"
cardStyle="gradient-bordered"
primaryButtonStyle="gradient"
secondaryButtonStyle="radial-glow"
@@ -43,7 +43,7 @@ export default function LandingPage() {
<HeroLogoBillboardSplit
logoText="RICH'S"
description="Premium barbershop serving the community since 1963. Classic haircuts, welcoming atmosphere, and trusted expertise."
background={{ variant: "aurora" }}
background={{ variant: "plain" }}
buttons={[
{ text: "Book Appointment", href: "#contact" },
{ text: "Learn More", href: "#about" }
@@ -138,7 +138,7 @@ export default function LandingPage() {
title="Gallery"
description="A glimpse into our shop's atmosphere, styling stations, and the craft of barbering."
tag="Photo Gallery"
tagIcon={Scissors}
tagIcon={Camera}
textboxLayout="default"
useInvertedBackground={true}
animationType="slide-up"
@@ -179,7 +179,7 @@ export default function LandingPage() {
title: "Years in Business", value: "60+"
},
{
id: "4", icon: Zap,
id: "4", icon: TrendingUp,
title: "Customer Return Rate", value: "95%"
}
]}

View File

@@ -1,51 +1,43 @@
"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?: string | number;
fill?: string;
dominantBaseline?: 'auto' | 'text-top' | 'hanging' | 'middle' | 'central' | 'text-bottom' | 'ideographic' | 'alphabetic' | 'mathematical' | 'inherit';
}
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 = 32,
fontWeight = 'bold',
fill = 'currentColor',
dominantBaseline = 'middle'
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize * 1.2}`}
width="100%"
height="100%"
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<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="50%"
y="50%"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
textAnchor="middle"
dominantBaseline={dominantBaseline}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;