Merge version_1 into main #2
@@ -18,7 +18,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="mediumLarge"
|
||||
sizing="mediumLarge"
|
||||
background="blurBottom"
|
||||
background="circleGradient"
|
||||
cardStyle="solid"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -44,7 +44,7 @@ export default function LandingPage() {
|
||||
<HeroBillboard
|
||||
title="Premium Barbershop in Seattle"
|
||||
description="Experience classic barbering at its finest. Trusted by over 214 satisfied customers with a 4.7-star rating. Professional cuts, expert styling, and exceptional service."
|
||||
background={{ variant: "blurBottom" }}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
tag="Est. Seattle"
|
||||
tagIcon={Scissors}
|
||||
buttons={[
|
||||
@@ -130,10 +130,10 @@ export default function LandingPage() {
|
||||
animationType="slide-up"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Marcus Johnson", handle: "@seattle_style", testimonial: "Nathan's is the best barbershop in Seattle. The attention to detail is incredible, and the barbers really know their craft. Highly recommend!", imageSrc: "http://img.b2bpic.net/free-photo/lens-background-process-shooting-light-background_185193-164069.jpg?_wi=1", imageAlt: "Marcus Johnson"
|
||||
id: "1", name: "Marcus Johnson", handle: "@seattle_style", testimonial: "Nathan's is the best barbershop in Seattle. The attention to detail is incredible, and the barbers really know their craft. Highly recommend!", imageSrc: "http://img.b2bpic.net/free-photo/lens-background-process-shooting-light-background_185193-164069.jpg", imageAlt: "Marcus Johnson"
|
||||
},
|
||||
{
|
||||
id: "2", name: "David Chen", handle: "@dchen_pro", testimonial: "Professional, friendly, and skilled barbers. Every cut is exactly what I ask for. This is my go-to place for grooming.", imageSrc: "http://img.b2bpic.net/free-photo/smiling-business-leader-looking-through-window_1262-5623.jpg?_wi=1", imageAlt: "David Chen"
|
||||
id: "2", name: "David Chen", handle: "@dchen_pro", testimonial: "Professional, friendly, and skilled barbers. Every cut is exactly what I ask for. This is my go-to place for grooming.", imageSrc: "http://img.b2bpic.net/free-photo/smiling-business-leader-looking-through-window_1262-5623.jpg", imageAlt: "David Chen"
|
||||
},
|
||||
{
|
||||
id: "3", name: "James Wilson", handle: "@jwilson_cuts", testimonial: "Been coming here for 3 years. The consistency in quality and service is unmatched. Nathan's is worth the wait!", imageSrc: "http://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg", imageAlt: "James Wilson"
|
||||
@@ -142,10 +142,10 @@ export default function LandingPage() {
|
||||
id: "4", name: "Alex Rodriguez", handle: "@alex_groomed", testimonial: "Great atmosphere, skilled barbers, and fair pricing. I'll definitely be back. Five stars all the way!", imageSrc: "http://img.b2bpic.net/free-photo/portrait-businessman-with-folded-arms-looking-camera_23-2147955314.jpg", imageAlt: "Alex Rodriguez"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Kevin Lee", handle: "@kevlee_style", testimonial: "The barbers here are true professionals. They take their time and make sure you leave looking sharp. Highly satisfied!", imageSrc: "http://img.b2bpic.net/free-photo/lens-background-process-shooting-light-background_185193-164069.jpg?_wi=2", imageAlt: "Kevin Lee"
|
||||
id: "5", name: "Kevin Lee", handle: "@kevlee_style", testimonial: "The barbers here are true professionals. They take their time and make sure you leave looking sharp. Highly satisfied!", imageSrc: "http://img.b2bpic.net/free-photo/lens-background-process-shooting-light-background_185193-164069.jpg", imageAlt: "Kevin Lee"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Tom Bradley", handle: "@tom_sharp", testimonial: "Nathan's Barbershop sets the standard for quality in Seattle. Every visit is a great experience. Highly recommend to anyone!", imageSrc: "http://img.b2bpic.net/free-photo/smiling-business-leader-looking-through-window_1262-5623.jpg?_wi=2", imageAlt: "Tom Bradley"
|
||||
id: "6", name: "Tom Bradley", handle: "@tom_sharp", testimonial: "Nathan's Barbershop sets the standard for quality in Seattle. Every visit is a great experience. Highly recommend to anyone!", imageSrc: "http://img.b2bpic.net/free-photo/smiling-business-leader-looking-through-window_1262-5623.jpg", imageAlt: "Tom Bradley"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,31 @@
|
||||
"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;
|
||||
}
|
||||
|
||||
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 = '' }) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
viewBox="0 0 200 50"
|
||||
className={`w-full h-auto ${className}`}
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
aria-label={text}
|
||||
>
|
||||
<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%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
fontSize="24"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user