Merge version_1 into main #1

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

View File

@@ -43,7 +43,7 @@ export default function LandingPage() {
<HeroBillboardRotatedCarousel
title="Physiotherapie, die wirklich hilft Konstanz"
description="Schmerzen lindern, Bewegung zurückgewinnen, Lebensqualität verbessern mit modernen Therapiemethoden und persönlicher Betreuung. Physio Shala: Ihre Praxis in der Marktstätte."
background={{ variant: "circleGradient" }}
background={{ variant: "plain" }}
tag="Professionelle Physiotherapie"
tagIcon={Heart}
tagAnimation="slide-up"
@@ -92,7 +92,7 @@ export default function LandingPage() {
]
},
{
title: "Rehabilitationsprogramme", description: "Wiedergewinnung von Bewegungsfreiheit durch moderne Rehabilitationstechniken", bentoComponent: "3d-task-list", title: "Rehabilitationsprogramme", items: [
title: "Rehabilitationsprogramme", description: "Wiedergewinnung von Bewegungsfreiheit durch moderne Rehabilitationstechniken", bentoComponent: "3d-task-list", items: [
{ icon: Activity, label: "Postoperative Rehabilitation", time: "412 Wochen" },
{ icon: Zap, label: "Verletzungsrehabilitation", time: "68 Wochen" },
{ icon: Heart, label: "Mobilitätstraining", time: "Laufend" }
@@ -186,7 +186,7 @@ export default function LandingPage() {
description="Starten Sie Ihre Reise zu besserer Gesundheit und Mobilität. Wir freuen uns, Sie in unserer Praxis willkommen zu heißen."
tagIcon={Calendar}
tagAnimation="slide-up"
background={{ variant: "circleGradient" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
inputPlaceholder="Ihre E-Mail-Adresse"
buttonText="Termin buchen"

View File

@@ -1,51 +1,50 @@
"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;
animationDuration?: number;
}
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,
className = '',
textClassName = '',
animationDuration = 2,
}) => {
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 * 60} 100`}
className={`w-full h-auto ${className}`}
preserveAspectRatio="xMidYMid meet"
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
className={`text-4xl font-bold fill-current ${textClassName}`}
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
animation: `fadeIn ${animationDuration}s ease-in-out`,
}}
>
{logoText}
{text}
</text>
<style jsx>{`
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
`}</style>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;