Merge version_1 into main #1
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="smallMedium"
|
||||
sizing="mediumSizeLargeTitles"
|
||||
background="noiseDiagonalGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="subtle-shadow"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="glass"
|
||||
@@ -43,7 +43,7 @@ export default function LandingPage() {
|
||||
<HeroCentered
|
||||
title="Elevate Your Grooming Experience"
|
||||
description="Premium barber services crafted with precision and luxury. Discover the art of traditional barbering combined with modern elegance."
|
||||
background={{ variant: "noiseDiagonalGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
avatars={[
|
||||
{
|
||||
src: "http://img.b2bpic.net/free-photo/portrait-brutal-bearded-macho-male-dressed-suit-dark-grey-background_613910-9486.jpg", alt: "Satisfied customer"
|
||||
@@ -115,20 +115,17 @@ export default function LandingPage() {
|
||||
tag="Pricing"
|
||||
plans={[
|
||||
{
|
||||
id: "classic-cut", tag: "Classic Haircut", price: "$35", period: "/service", description: "Professional haircut tailored to your preferences", button: { text: "Book", href: "#contact" },
|
||||
featuresTitle: "What's Included:", features: [
|
||||
id: "classic-cut", tag: "Classic Haircut", price: "$35", period: "/service", description: "Professional haircut tailored to your preferences", button: { text: "Book", href: "#contact" }, featuresTitle: "What's Included:", features: [
|
||||
"Expert consultation", "Premium scissors", "Style guidance"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "premium-shave", tag: "Traditional Shave", price: "$40", period: "/service", description: "Luxurious straight razor shave experience", button: { text: "Book", href: "#contact" },
|
||||
featuresTitle: "What's Included:", features: [
|
||||
id: "premium-shave", tag: "Traditional Shave", price: "$40", period: "/service", description: "Luxurious straight razor shave experience", button: { text: "Book", href: "#contact" }, featuresTitle: "What's Included:", features: [
|
||||
"Hot towel preparation", "Premium razor technique", "Aftershave treatment"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "beard-package", tag: "Beard Grooming", price: "$45", period: "/service", description: "Complete beard maintenance and styling", button: { text: "Book", href: "#contact" },
|
||||
featuresTitle: "What's Included:", features: [
|
||||
id: "beard-package", tag: "Beard Grooming", price: "$45", period: "/service", description: "Complete beard maintenance and styling", button: { text: "Book", href: "#contact" }, featuresTitle: "What's Included:", features: [
|
||||
"Beard shaping", "Conditioning treatment", "Style consultation"
|
||||
]
|
||||
}
|
||||
@@ -197,7 +194,7 @@ export default function LandingPage() {
|
||||
tag="Get In Touch"
|
||||
title="Book Your Appointment"
|
||||
description="Reserve your spot for a premium grooming experience. Our team looks forward to serving you with excellence."
|
||||
background={{ variant: "noiseDiagonalGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
inputPlaceholder="Enter your email"
|
||||
buttonText="Get Started"
|
||||
|
||||
@@ -1,51 +1,38 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontWeight?: number;
|
||||
fill?: 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,
|
||||
fontSize = 24,
|
||||
fontWeight = 700,
|
||||
fill = 'currentColor',
|
||||
className = '',
|
||||
}) => {
|
||||
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={0}
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
dominantBaseline="hanging"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user