Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 09:03:31 +00:00
2 changed files with 30 additions and 41 deletions

View File

@@ -14,11 +14,11 @@ export default function LandingPage() {
return (
<ThemeProvider
defaultButtonVariant="text-stagger"
defaultTextAnimation="entrance-slide"
defaultTextAnimation="reveal-blur"
borderRadius="rounded"
contentWidth="mediumLarge"
sizing="mediumLarge"
background="fluid"
background="circleGradient"
cardStyle="glass-elevated"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="glass"
@@ -50,7 +50,7 @@ export default function LandingPage() {
{ text: "Ordina una Torta", href: "cakes" },
{ text: "Scopri le Specialità", href: "specialities" }
]}
background={{ variant: "fluid" }}
background={{ variant: "downward-rays-static" }}
ariaLabel="Hero section with pastry showcase"
containerClassName="relative overflow-hidden"
/>
@@ -182,7 +182,7 @@ export default function LandingPage() {
textPosition="left"
useInvertedBackground={false}
animationType="smooth"
faqsAnimation="entrance-slide"
faqsAnimation="blur-reveal"
ariaLabel="FAQ section"
/>
</div>

View File

@@ -1,51 +1,40 @@
"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;
fontFamily?: string;
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 = 32,
fontFamily = 'Arial',
fill = '#000000',
className = '',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width="200"
height="80"
viewBox="0 0 200 80"
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<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="50"
fontSize={fontSize}
fontFamily={fontFamily}
fill={fill}
dominantBaseline="central"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;