Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 10:59:09 +00:00
2 changed files with 29 additions and 46 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="medium"
sizing="mediumLarge"
background="floatingGradient"
background="circleGradient"
cardStyle="glass-elevated"
primaryButtonStyle="shadow"
secondaryButtonStyle="layered"
@@ -46,7 +46,7 @@ export default function LandingPage() {
<HeroBillboard
title="Authentic Turkish Taste in the Heart of Salzburg"
description="Freshly prepared Turkish specialties, warm hospitality, and unforgettable flavors. Experience the essence of Turkey in our intimate, elegant restaurant."
background={{ variant: "floatingGradient" }}
background={{ variant: "sparkles-gradient" }}
tag="Premium Turkish Dining"
tagIcon={Sparkles}
tagAnimation="slide-up"
@@ -173,7 +173,7 @@ export default function LandingPage() {
<ContactText
text="Experience the authentic taste of Turkey in Salzburg. Reserve your table today and discover why we're Salzburg's most beloved Turkish restaurant."
animationType="background-highlight"
background={{ variant: "floatingGradient" }}
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
buttons={[
{ text: "Reserve a Table", href: "tel:+436605020999" },

View File

@@ -1,51 +1,34 @@
"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;
textClassName?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
>
<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"
}}
const SvgTextLogo = React.forwardRef<SVGSVGElement, SvgTextLogoProps>(
({ text, className = '', textClassName = '' }, ref) => {
return (
<svg
ref={ref}
viewBox={`0 0 ${text.length * 60} 80`}
className={`${className}`}
xmlns="http://www.w3.org/2000/svg"
>
{logoText}
</text>
</svg>
);
});
<text
x="50%"
y="50%"
dominantBaseline="middle"
textAnchor="middle"
className={`${textClassName}`}
>
{text}
</text>
</svg>
);
}
);
SvgTextLogo.displayName = "SvgTextLogo";
SvgTextLogo.displayName = 'SvgTextLogo';
export default SvgTextLogo;
export default SvgTextLogo;