Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="smallMedium"
|
||||
sizing="mediumLarge"
|
||||
background="grid"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-elevated"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -46,7 +46,7 @@ export default function LandingPage() {
|
||||
tag="Established Excellence"
|
||||
tagIcon={Scissors}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "plain" }}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/medium-shot-man-getting-haircut_23-2150665438.jpg"
|
||||
imageAlt="Modern barbershop interior"
|
||||
imagePosition="right"
|
||||
@@ -79,7 +79,7 @@ export default function LandingPage() {
|
||||
tag="Premium Grooming"
|
||||
tagIcon={Zap}
|
||||
tagAnimation="slide-up"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/detail-hair-dresser-with-tools_23-2148108766.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/detail-hair-dresser-with-tools_23-2148108766.jpg"
|
||||
imageAlt="Professional haircut service"
|
||||
mediaAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
@@ -115,16 +115,16 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Marcus Johnson, Business Owner", date: "Date: March 15, 2024", title: "Best Haircut I've Had in Years", quote: "The precision and attention to detail at Prolific Barbershop is unmatched. They understand exactly what I want and execute it perfectly every time. Highly recommend to anyone looking for quality grooming.", tag: "Premium Client", avatarSrc: "http://img.b2bpic.net/free-photo/happy-businesswoman-celebrating-major-project-milestone_482257-123691.jpg", avatarAlt: "Marcus Johnson", imageSrc: "http://img.b2bpic.net/free-photo/sucessful-bearded-businessman-white-shirt-is-posing-dark-photo-studio_613910-17276.jpg?_wi=1", imageAlt: "professional barber portrait headshot"
|
||||
id: "1", name: "Marcus Johnson, Business Owner", date: "Date: March 15, 2024", title: "Best Haircut I've Had in Years", quote: "The precision and attention to detail at Prolific Barbershop is unmatched. They understand exactly what I want and execute it perfectly every time. Highly recommend to anyone looking for quality grooming.", tag: "Premium Client", avatarSrc: "http://img.b2bpic.net/free-photo/happy-businesswoman-celebrating-major-project-milestone_482257-123691.jpg", avatarAlt: "Marcus Johnson", imageSrc: "http://img.b2bpic.net/free-photo/sucessful-bearded-businessman-white-shirt-is-posing-dark-photo-studio_613910-17276.jpg", imageAlt: "professional barber portrait headshot"
|
||||
},
|
||||
{
|
||||
id: "2", name: "David Chen, Professional", date: "Date: March 8, 2024", title: "Exceptional Service Every Visit", quote: "I've been going to Prolific for over 3 years. The consistency, professionalism, and friendly atmosphere keep me coming back. These barbers truly care about their craft.", tag: "Loyal Customer", avatarSrc: "http://img.b2bpic.net/free-photo/bearded-man-black-t-shirt-looking-aside-smiling-cheerfully-happy-positive-standing-green-wall_141793-81770.jpg", avatarAlt: "David Chen", imageSrc: "http://img.b2bpic.net/free-photo/hairdresser-getting-ready-client_23-2149319756.jpg?_wi=1", imageAlt: "experienced barber professional portrait"
|
||||
id: "2", name: "David Chen, Professional", date: "Date: March 8, 2024", title: "Exceptional Service Every Visit", quote: "I've been going to Prolific for over 3 years. The consistency, professionalism, and friendly atmosphere keep me coming back. These barbers truly care about their craft.", tag: "Loyal Customer", avatarSrc: "http://img.b2bpic.net/free-photo/bearded-man-black-t-shirt-looking-aside-smiling-cheerfully-happy-positive-standing-green-wall_141793-81770.jpg", avatarAlt: "David Chen", imageSrc: "http://img.b2bpic.net/free-photo/hairdresser-getting-ready-client_23-2149319756.jpg", imageAlt: "experienced barber professional portrait"
|
||||
},
|
||||
{
|
||||
id: "3", name: "James Williams, Executive", date: "Date: February 28, 2024", title: "True Barbershop Excellence", quote: "From the moment you walk in, you feel the quality. The grooming expertise, the atmosphere, and the personal touch make this place special. It's not just a haircut; it's an experience.", tag: "Premium Member", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-man-black-suit_23-2148401442.jpg", avatarAlt: "James Williams", imageSrc: "http://img.b2bpic.net/free-photo/european-brutal-man-with-beard-cut-barbershop_343596-4697.jpg?_wi=1", imageAlt: "professional male barber pose portrait"
|
||||
id: "3", name: "James Williams, Executive", date: "Date: February 28, 2024", title: "True Barbershop Excellence", quote: "From the moment you walk in, you feel the quality. The grooming expertise, the atmosphere, and the personal touch make this place special. It's not just a haircut; it's an experience.", tag: "Premium Member", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-man-black-suit_23-2148401442.jpg", avatarAlt: "James Williams", imageSrc: "http://img.b2bpic.net/free-photo/european-brutal-man-with-beard-cut-barbershop_343596-4697.jpg", imageAlt: "professional male barber pose portrait"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Thomas Rodriguez, Entrepreneur", date: "Date: February 22, 2024", title: "Worth Every Penny", quote: "Finally found a barbershop that delivers on its promise of quality. The barbers are skilled professionals who take pride in their work. I recommend Prolific to all my colleagues.", tag: "Business Client", avatarSrc: "http://img.b2bpic.net/free-photo/sucessful-bearded-businessman-white-shirt-is-posing-dark-photo-studio_613910-17276.jpg", avatarAlt: "Thomas Rodriguez", imageSrc: "http://img.b2bpic.net/free-photo/detail-hair-dresser-with-tools_23-2148108766.jpg?_wi=2", imageAlt: "barber performing precision haircut"
|
||||
id: "4", name: "Thomas Rodriguez, Entrepreneur", date: "Date: February 22, 2024", title: "Worth Every Penny", quote: "Finally found a barbershop that delivers on its promise of quality. The barbers are skilled professionals who take pride in their work. I recommend Prolific to all my colleagues.", tag: "Business Client", avatarSrc: "http://img.b2bpic.net/free-photo/sucessful-bearded-businessman-white-shirt-is-posing-dark-photo-studio_613910-17276.jpg", avatarAlt: "Thomas Rodriguez", imageSrc: "http://img.b2bpic.net/free-photo/detail-hair-dresser-with-tools_23-2148108766.jpg", imageAlt: "barber performing precision haircut"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Robert Thompson, Manager", date: "Date: February 15, 2024", title: "Fantastic Experience", quote: "The attention to detail and customer service is outstanding. Every visit feels personalized and professional. I've already recommended several friends and family members.", tag: "Satisfied Client", avatarSrc: "http://img.b2bpic.net/free-photo/happy-businesswoman-celebrating-major-project-milestone_482257-123691.jpg", avatarAlt: "Robert Thompson", imageSrc: "http://img.b2bpic.net/free-photo/close-up-hairdresser-making-haircut_23-2149220581.jpg", imageAlt: "barber trimming beard grooming care"
|
||||
@@ -144,13 +144,13 @@ export default function LandingPage() {
|
||||
membersAnimation="slide-up"
|
||||
members={[
|
||||
{
|
||||
id: "1", name: "Marcus Rivera", imageSrc: "http://img.b2bpic.net/free-photo/sucessful-bearded-businessman-white-shirt-is-posing-dark-photo-studio_613910-17276.jpg?_wi=2", imageAlt: "Marcus Rivera, Head Barber"
|
||||
id: "1", name: "Marcus Rivera", imageSrc: "http://img.b2bpic.net/free-photo/sucessful-bearded-businessman-white-shirt-is-posing-dark-photo-studio_613910-17276.jpg", imageAlt: "Marcus Rivera, Head Barber"
|
||||
},
|
||||
{
|
||||
id: "2", name: "James Patterson", imageSrc: "http://img.b2bpic.net/free-photo/hairdresser-getting-ready-client_23-2149319756.jpg?_wi=2", imageAlt: "James Patterson, Master Barber"
|
||||
id: "2", name: "James Patterson", imageSrc: "http://img.b2bpic.net/free-photo/hairdresser-getting-ready-client_23-2149319756.jpg", imageAlt: "James Patterson, Master Barber"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Christopher Lee", imageSrc: "http://img.b2bpic.net/free-photo/european-brutal-man-with-beard-cut-barbershop_343596-4697.jpg?_wi=2", imageAlt: "Christopher Lee, Specialist"
|
||||
id: "3", name: "Christopher Lee", imageSrc: "http://img.b2bpic.net/free-photo/european-brutal-man-with-beard-cut-barbershop_343596-4697.jpg", imageAlt: "Christopher Lee, Specialist"
|
||||
}
|
||||
]}
|
||||
memberVariant="default"
|
||||
|
||||
@@ -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;
|
||||
fontFamily?: string;
|
||||
fill?: string;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
}
|
||||
|
||||
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',
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fill = '#000000',
|
||||
textAnchor = '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.5}`}
|
||||
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={`${(text.length * fontSize * 0.3)}`}
|
||||
y={`${fontSize * 1}`}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user