Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-10 20:39:36 +00:00
2 changed files with 32 additions and 39 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="compact"
sizing="mediumLargeSizeLargeTitles"
background="fluid"
background="circleGradient"
cardStyle="gradient-mesh"
primaryButtonStyle="shadow"
secondaryButtonStyle="glass"
@@ -44,7 +44,7 @@ export default function LandingPage() {
<HeroBillboard
title="Welcome to That One Barber Lounge"
description="Experience premium grooming in a welcoming atmosphere. We specialize in precision haircuts, expert beard styling, and traditional hot shaves. Your style, our expertise."
background={{ variant: "fluid" }}
background={{ variant: "sparkles-gradient" }}
tag="Premium Grooming"
tagIcon={Sparkles}
imageSrc="http://img.b2bpic.net/free-photo/hairclips-scissors-bag_23-2147778856.jpg"

View File

@@ -1,51 +1,44 @@
"use client";
import React, { SVGProps } from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
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 = 'LOGO',
className = '',
...props
}) => {
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 200 60"
xmlns="http://www.w3.org/2000/svg"
className={`w-auto h-auto ${className}`}
{...props}
>
<defs>
<style>
{`
.logo-text {
font-family: 'Arial', sans-serif;
font-size: 24px;
font-weight: bold;
fill: currentColor;
}
`}
</style>
</defs>
<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="10"
y="40"
className="logo-text"
dominantBaseline="middle"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;