Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 22:40:15 +00:00
2 changed files with 36 additions and 44 deletions

View File

@@ -47,8 +47,8 @@ export default function LandingPage() {
description="Premium haircuts and barber services in Miami Gardens. Experience quality grooming with friendly staff and a relaxing atmosphere. Perfect for the whole family."
tag="4.4★ Rated - 102 Reviews"
tagIcon={Star}
background={{ variant: "circleGradient" }}
imageSrc="http://img.b2bpic.net/free-photo/full-shot-hairstilyst-giving-haircut_23-2148506293.jpg?_wi=1"
background={{ variant: "sparkles-gradient" }}
imageSrc="http://img.b2bpic.net/free-photo/full-shot-hairstilyst-giving-haircut_23-2148506293.jpg"
imageAlt="Modern professional salon interior"
buttons={[
{ text: "Book Your Appointment", href: "contact" },
@@ -93,10 +93,11 @@ export default function LandingPage() {
{ value: "102+", title: "Happy Customers" },
{ value: "4.4★", title: "Average Rating" }
]}
imageSrc="http://img.b2bpic.net/free-photo/professional-woman-making-up-girl_23-2148210709.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/professional-woman-making-up-girl_23-2148210709.jpg"
imageAlt="Dapper Cut salon interior"
useInvertedBackground={true}
mediaAnimation="slide-up"
metricsAnimation="slide-up"
/>
</div>
@@ -141,9 +142,7 @@ export default function LandingPage() {
description="Trusted and reviewed by customers on leading platforms"
tag="Our Presence"
tagIcon={Globe}
logos={[
"http://img.b2bpic.net/free-vector/social-media-logos-collection-watercolor-style_23-2147818873.jpg", "http://img.b2bpic.net/free-vector/star-with-check-mark-set_78370-4452.jpg", "http://img.b2bpic.net/free-vector/social-media-logos-collection-flat-style_23-2147818913.jpg", "http://img.b2bpic.net/free-vector/social-media-logo-collection_23-2148125840.jpg", "http://img.b2bpic.net/free-vector/walk-fame-star-background_23-2147733524.jpg", "http://img.b2bpic.net/free-photo/paper-reminder-with-word-school-black-background_169016-40896.jpg", "http://img.b2bpic.net/free-vector/background-world-habitat-day-with-abstract-shapes_23-2147568685.jpg"
]}
names={["Google", "Yelp", "Facebook", "Instagram", "Trustpilot", "Thumbtack", "Waze"]}
textboxLayout="default"
useInvertedBackground={false}
speed={40}
@@ -165,7 +164,7 @@ export default function LandingPage() {
{ id: "5", title: "What payment methods do you accept?", content: "We accept all major credit cards, cash, and digital payment methods for your convenience. Ask about any specials or discounts available." },
{ id: "6", title: "Is parking available?", content: "Yes! We're located in Stadium Corners at 19666 NW 27th Ave with convenient parking for our customers. Clean restroom facilities are also available." }
]}
imageSrc="http://img.b2bpic.net/free-photo/full-shot-hairstilyst-giving-haircut_23-2148506293.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/full-shot-hairstilyst-giving-haircut_23-2148506293.jpg"
imageAlt="Dapper Cut salon interior"
mediaAnimation="slide-up"
textboxLayout="default"
@@ -181,9 +180,9 @@ export default function LandingPage() {
tagIcon={Calendar}
title="Ready to Look Your Best?"
description="Schedule your appointment today and experience the Dapper Cut difference. Our team is ready to give you the exceptional service you deserve."
background={{ variant: "circleGradient" }}
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/professional-woman-making-up-girl_23-2148210709.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/professional-woman-making-up-girl_23-2148210709.jpg"
imageAlt="Professional salon ambiance"
mediaAnimation="slide-up"
mediaPosition="right"

View File

@@ -1,51 +1,44 @@
"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;
fill?: string;
}
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 = 'bold',
fill = 'currentColor',
}) => {
const svgWidth = text.length * fontSize * 0.6;
const svgHeight = fontSize * 1.4;
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}
textAnchor="middle"
dominantBaseline="middle"
fill={fill}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;