Merge version_1 into main #2
@@ -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"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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<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,
|
||||
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 (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<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={0}
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
fill="currentColor"
|
||||
dominantBaseline="hanging"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user