From c910bcac43d07a8084b78f36029b516d24e2192e Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 16:48:52 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 1686026..71d9346 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -44,21 +44,21 @@ export default function LandingPage() { title="Frischer Döner & Imbiss in Duderstadt" description="Leckere mediterrane Küche, täglich frisch zubereitet. Wir bieten die besten Döner, Dürüms und schnelle Speisen mit hochwertigsten Zutaten." tag="Seit Jahren beliebt" - imageSrc="http://img.b2bpic.net/free-photo/look-from-green-salad-pieces-blue-onion-wholemeal-sandwich-dark-wooden-table_1304-2925.jpg?_wi=1" + imageSrc="http://img.b2bpic.net/free-photo/look-from-green-salad-pieces-blue-onion-wholemeal-sandwich-dark-wooden-table_1304-2925.jpg" imageAlt="Frischer, appetitlicher Döner" background={{ variant: "plain" }} testimonials={[ { name: "Maria Schmidt", handle: "Google Bewertung", testimonial: "Absolut leckerer Döner! Frisch, schnell und sehr freundlich. Kann ich nur empfehlen!", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/portrait-outdoors-successful-business-person_23-2148763862.jpg?_wi=1" + imageSrc: "http://img.b2bpic.net/free-photo/portrait-outdoors-successful-business-person_23-2148763862.jpg" }, { name: "Thomas Weber", handle: "Google Bewertung", testimonial: "Der beste Döner in Duderstadt. Immer hochwertige Zutaten und beste Qualität!", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-indoors_23-2149445972.jpg?_wi=1" + imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-indoors_23-2149445972.jpg" }, { name: "Lisa Mueller", handle: "Google Bewertung", testimonial: "Super schneller Service und sehr freundliches Personal. Sehr empfehlenswert!", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-posing_23-2150171293.jpg?_wi=1" + imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-posing_23-2150171293.jpg" } ]} buttons={[ @@ -80,10 +80,11 @@ export default function LandingPage() { { value: "4,5★", title: "Bewertung auf Google" }, { value: "Täglich Frisch", title: "Hochwertige Zutaten" } ]} - imageSrc="http://img.b2bpic.net/free-photo/female-customer-paying-takeaway-food-with-credit-card_23-2149025788.jpg?_wi=1" + imageSrc="http://img.b2bpic.net/free-photo/female-customer-paying-takeaway-food-with-credit-card_23-2149025788.jpg" imageAlt="Imbiss Rhodos freundliche Atmosphäre" useInvertedBackground={true} mediaAnimation="slide-up" + metricsAnimation="slide-up" /> @@ -125,15 +126,15 @@ export default function LandingPage() { testimonials={[ { id: "1", name: "Maria Schmidt", handle: "@maria_schmidt", testimonial: "Absolut leckerer Döner! Frisch, schnell und sehr freundlich. Kann ich nur empfehlen!", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/portrait-outdoors-successful-business-person_23-2148763862.jpg?_wi=2" + imageSrc: "http://img.b2bpic.net/free-photo/portrait-outdoors-successful-business-person_23-2148763862.jpg" }, { id: "2", name: "Thomas Weber", handle: "@thomas_weber", testimonial: "Der beste Döner in Duderstadt. Immer hochwertige Zutaten und beste Qualität!", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-indoors_23-2149445972.jpg?_wi=2" + imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-woman-indoors_23-2149445972.jpg" }, { id: "3", name: "Lisa Mueller", handle: "@lisa_mueller", testimonial: "Super schneller Service und sehr freundliches Personal. Sehr empfehlenswert!", rating: 5, - imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-posing_23-2150171293.jpg?_wi=2" + imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-man-posing_23-2150171293.jpg" }, { id: "4", name: "Stefan Becker", handle: "@stefan_becker", testimonial: "Gehe dort immer hin wenn ich Zeit hab. Die Qualität ist einfach top!", rating: 5, @@ -162,10 +163,10 @@ export default function LandingPage() { tag="Erfolge" metrics={[ { - id: "1", value: "10+", title: "Jahre Erfahrung", description: "Mit Leidenschaft bei der Sache", imageSrc: "http://img.b2bpic.net/free-photo/female-customer-paying-takeaway-food-with-credit-card_23-2149025788.jpg?_wi=2" + id: "1", value: "10+", title: "Jahre Erfahrung", description: "Mit Leidenschaft bei der Sache", imageSrc: "http://img.b2bpic.net/free-photo/female-customer-paying-takeaway-food-with-credit-card_23-2149025788.jpg" }, { - id: "2", value: "5000+", title: "Zufriedene Kunden", description: "Begeistert von unserer Qualität", imageSrc: "http://img.b2bpic.net/free-photo/look-from-green-salad-pieces-blue-onion-wholemeal-sandwich-dark-wooden-table_1304-2925.jpg?_wi=2" + id: "2", value: "5000+", title: "Zufriedene Kunden", description: "Begeistert von unserer Qualität", imageSrc: "http://img.b2bpic.net/free-photo/look-from-green-salad-pieces-blue-onion-wholemeal-sandwich-dark-wooden-table_1304-2925.jpg" } ]} animationType="slide-up" @@ -209,7 +210,7 @@ export default function LandingPage() { id: "5", title: "Liefern Sie auch nach Hause?", content: "Derzeit nehmen wir keine Lieferungen vor, aber Sie können Ihre Bestellung abholen oder vor Ort essen. Wir befinden uns zentral in Duderstadt." } ]} - imageSrc="http://img.b2bpic.net/free-photo/female-customer-paying-takeaway-food-with-credit-card_23-2149025788.jpg?_wi=3" + imageSrc="http://img.b2bpic.net/free-photo/female-customer-paying-takeaway-food-with-credit-card_23-2149025788.jpg" imageAlt="Imbiss Rhodos FAQ" mediaAnimation="slide-up" faqsAnimation="slide-up" -- 2.49.1 From 2f73ee8fbbb893f637db162681f62fb9018dc5a1 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 16:48:53 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 65 +++++++++---------- 1 file changed, 30 insertions(+), 35 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..28f5fd0 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,46 @@ -"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; + fontWeight?: string | number; + letterSpacing?: number; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + text, + className = '', + fontSize = 24, + fontWeight = 'bold', + letterSpacing = 0, +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.6; + const width = textLength * charWidth + letterSpacing * (textLength - 1); + const height = fontSize * 1.2; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo; -- 2.49.1