Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-10 21:21:05 +00:00
2 changed files with 31 additions and 40 deletions

View File

@@ -46,13 +46,14 @@ export default function LandingPage() {
title="Premium Barber in Prague 1"
description="Classic cuts, modern style, and a relaxed atmosphere. Experience expert grooming from Prague's most trusted barbers."
tag="⭐ 4.8 / 5 Stars"
imageSrc="http://img.b2bpic.net/free-photo/close-up-washing-hair-barber-shop_23-2148298320.jpg?_wi=1"
background={{ variant: "plain" }}
imageSrc="http://img.b2bpic.net/free-photo/close-up-washing-hair-barber-shop_23-2148298320.jpg"
imageAlt="Premium barber shop interior"
mediaAnimation="slide-up"
testimonials={[
{
name: "Alisa Hester", handle: "Visiting Customer", testimonial: "Professional, clean, and incredibly friendly barbers. Best haircut I've had in Prague!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/caucasian-brunette-male-portrait_158595-7921.jpg?_wi=1", imageAlt: "Alisa Hester"
imageSrc: "http://img.b2bpic.net/free-photo/caucasian-brunette-male-portrait_158595-7921.jpg", imageAlt: "Alisa Hester"
}
]}
buttons={[
@@ -72,7 +73,7 @@ export default function LandingPage() {
testimonials={[
{
id: "1", name: "Martin Svoboda", role: "Local Professional", company: "Prague 1 Resident", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/caucasian-brunette-male-portrait_158595-7921.jpg?_wi=2", imageAlt: "Martin Svoboda"
imageSrc: "http://img.b2bpic.net/free-photo/caucasian-brunette-male-portrait_158595-7921.jpg", imageAlt: "Martin Svoboda"
},
{
id: "2", name: "Jakub Novotny", role: "Business Owner", company: "Tech Startup", rating: 5,
@@ -229,7 +230,7 @@ export default function LandingPage() {
description="Book your appointment or give us a call. Our barbers are ready to give you the haircut you deserve."
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/close-up-washing-hair-barber-shop_23-2148298320.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/close-up-washing-hair-barber-shop_23-2148298320.jpg"
imageAlt="Call-to-Action"
mediaAnimation="slide-up"
mediaPosition="right"

View File

@@ -1,51 +1,41 @@
"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;
width?: number;
height?: number;
className?: string;
dominantBaseline?: 'auto' | 'baseline' | 'middle' | 'hanging' | 'mathematical' | 'central';
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
width = 200,
height = 100,
className = '',
dominantBaseline = 'middle'
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
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={width / 2}
y={height / 2}
textAnchor="middle"
dominantBaseline={dominantBaseline}
fontSize="24"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;