Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="small"
|
||||
sizing="largeSmallSizeLargeTitles"
|
||||
background="grid"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-elevated"
|
||||
primaryButtonStyle="flat"
|
||||
secondaryButtonStyle="glass"
|
||||
@@ -41,7 +41,7 @@ export default function LandingPage() {
|
||||
<HeroBillboard
|
||||
title="Willkommen bei Bäckerei Raddatz BackBistro"
|
||||
description="Traditionelle deutsche Backkunst trifft modernen Geschmack. Seit Generationen backen wir mit Liebe und den besten Zutaten. Erleben Sie die Wärme unserer Bäckerei in Boxdorf."
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "animated-grid" }}
|
||||
tag="Seit 1985 handwerklich gebacken"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="slide-up"
|
||||
@@ -150,10 +150,10 @@ export default function LandingPage() {
|
||||
animationType="slide-up"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Maria Schmidt", role: "Stammdkundin seit 15 Jahren", testimonial: "Die Qualität der Backwaren ist einfach unvergleichlich. Jeden Morgen hole ich mein Lieblingsbrot ab. Das ist nicht nur lecker, sondern auch ein wichtiger Teil meines Morgenrituals geworden.", imageSrc: "http://img.b2bpic.net/free-photo/monochrome-street-food-entertainment_23-2151542729.jpg?_wi=1", imageAlt: "Maria Schmidt"
|
||||
id: "1", name: "Maria Schmidt", role: "Stammdkundin seit 15 Jahren", testimonial: "Die Qualität der Backwaren ist einfach unvergleichlich. Jeden Morgen hole ich mein Lieblingsbrot ab. Das ist nicht nur lecker, sondern auch ein wichtiger Teil meines Morgenrituals geworden.", imageSrc: "http://img.b2bpic.net/free-photo/monochrome-street-food-entertainment_23-2151542729.jpg", imageAlt: "Maria Schmidt"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Thomas Müller", role: "Restaurant-Inhaber", testimonial: "Ich beziehe seit 8 Jahren mein Brot von Bäckerei Raddatz. Die Zuverlässigkeit, die Frische und die Qualität sind beispielhaft. Meine Gäste lieben die Brote!", imageSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg?_wi=1", imageAlt: "Thomas Müller"
|
||||
id: "2", name: "Thomas Müller", role: "Restaurant-Inhaber", testimonial: "Ich beziehe seit 8 Jahren mein Brot von Bäckerei Raddatz. Die Zuverlässigkeit, die Frische und die Qualität sind beispielhaft. Meine Gäste lieben die Brote!", imageSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg", imageAlt: "Thomas Müller"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Elisabeth Weber", role: "Gastronomin & Bloggerin", testimonial: "Authentische deutsche Backkunst trifft moderne Qualität. Jedes Stück ist perfekt und schmeckt wie von oma's Backofen. Absolute Empfehlung für alle Brotliebhaber!", imageSrc: "http://img.b2bpic.net/free-photo/portrait-waitress-standing-with-arms-crossed_107420-12323.jpg", imageAlt: "Elisabeth Weber"
|
||||
@@ -162,10 +162,10 @@ export default function LandingPage() {
|
||||
id: "4", name: "Klaus Hoffmann", role: "Bürgermeister Boxdorf", testimonial: "Bäckerei Raddatz ist ein Juwel unserer Gemeinde. Stolz darauf, dass ein so traditionsreiches Handwerk in unserer Stadt lebt. Eine wahre Institution!", imageSrc: "http://img.b2bpic.net/free-photo/closeup-satisfied-africanamerican-woman-showing-okay-sign-smiling-recommending-something-good_1258-179439.jpg", imageAlt: "Klaus Hoffmann"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Anna Lehmann", role: "Ernährungsberaterin", testimonial: "Natürliche Zutaten, keine künstlichen Zusatzstoffe - genau das, was ich meinen Patienten empfehle. Bäckerei Raddatz setzt echte Standards in der Branche.", imageSrc: "http://img.b2bpic.net/free-photo/monochrome-street-food-entertainment_23-2151542729.jpg?_wi=2", imageAlt: "Anna Lehmann"
|
||||
id: "5", name: "Anna Lehmann", role: "Ernährungsberaterin", testimonial: "Natürliche Zutaten, keine künstlichen Zusatzstoffe - genau das, was ich meinen Patienten empfehle. Bäckerei Raddatz setzt echte Standards in der Branche.", imageSrc: "http://img.b2bpic.net/free-photo/monochrome-street-food-entertainment_23-2151542729.jpg", imageAlt: "Anna Lehmann"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Peter Richter", role: "Fitness-Coach", testimonial: "Vollkornprodukte, die wirklich schmecken - das ist selten! Ich empfehle Bäckerei Raddatz all meinen Kunden, die gesund und lecker essen wollen.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg?_wi=2", imageAlt: "Peter Richter"
|
||||
id: "6", name: "Peter Richter", role: "Fitness-Coach", testimonial: "Vollkornprodukte, die wirklich schmecken - das ist selten! Ich empfehle Bäckerei Raddatz all meinen Kunden, die gesund und lecker essen wollen.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg", imageAlt: "Peter Richter"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,44 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: number | string;
|
||||
fill?: string;
|
||||
ariaLabel?: 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,
|
||||
className = '',
|
||||
fontSize = 24,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
ariaLabel,
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
|
||||
className={className}
|
||||
aria-label={ariaLabel || text}
|
||||
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"
|
||||
}}
|
||||
x="10"
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
dominantBaseline="auto"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user