Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="compact"
|
||||
sizing="largeSmallSizeLargeTitles"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="gradient-bordered"
|
||||
primaryButtonStyle="flat"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -43,14 +43,14 @@ export default function LandingPage() {
|
||||
<HeroLogoBillboardSplit
|
||||
logoText="THE CLUCKY'S"
|
||||
description="Delmenhorst's Best Fried Chicken. Freshly prepared, crispy on the outside, juicy inside. Rated 4.9★ by 61 local customers."
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
buttons={[
|
||||
{ text: "📞 Call Now", href: "tel:04221-6866062" },
|
||||
{ text: "See Menu", href: "#food" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
layoutOrder="default"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/high-angle-delicious-boneless-chicken_23-2149972969.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/high-angle-delicious-boneless-chicken_23-2149972969.jpg"
|
||||
imageAlt="Golden crispy fried chicken"
|
||||
mediaAnimation="blur-reveal"
|
||||
frameStyle="card"
|
||||
@@ -86,7 +86,7 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Crispy Fried Chicken", price: "€12-€18", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-delicious-boneless-chicken_23-2149972969.jpg?_wi=2", imageAlt: "Golden crispy fried chicken pieces"
|
||||
id: "1", name: "Crispy Fried Chicken", price: "€12-€18", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-delicious-boneless-chicken_23-2149972969.jpg", imageAlt: "Golden crispy fried chicken pieces"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Chicken Wings", price: "€9-€14", imageSrc: "http://img.b2bpic.net/free-photo/plate-chicken-wings-grunge-black-background_1258-199.jpg", imageAlt: "Spicy crispy chicken wings"
|
||||
@@ -127,7 +127,7 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
icon: DollarSign,
|
||||
title: "Fair Prices", description: "High quality doesn't have to be expensive. Great food at reasonable prices."
|
||||
title: "Fair Prices", description: "High quality does not have to be expensive. Great food at reasonable prices."
|
||||
},
|
||||
{
|
||||
icon: Sparkles,
|
||||
@@ -180,13 +180,13 @@ export default function LandingPage() {
|
||||
tag="Quick Contact"
|
||||
tagIcon={MessageSquare}
|
||||
title="Send Us a Message"
|
||||
description="Have questions or want to place an order? Fill in your details below and we'll get back to you soon."
|
||||
description="Have questions or want to place an order? Fill in your details below and we will get back to you soon."
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
useInvertedBackground={true}
|
||||
tagAnimation="slide-up"
|
||||
inputPlaceholder="Your email or phone"
|
||||
buttonText="Send Request"
|
||||
termsText="We'll respond during our opening hours (Thursday-Sunday, 12:00+). We respect your privacy."
|
||||
termsText="We will respond during our opening hours (Thursday-Sunday, 12:00+). We respect your privacy."
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,51 +1,54 @@
|
||||
"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?: number | string;
|
||||
fill?: string;
|
||||
id?: 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 = 48,
|
||||
fontWeight = 700,
|
||||
fill = 'currentColor',
|
||||
id,
|
||||
ariaLabel,
|
||||
}) => {
|
||||
const textLength = text.length;
|
||||
const estimatedWidth = textLength * (fontSize * 0.6);
|
||||
const padding = fontSize * 0.2;
|
||||
const width = estimatedWidth + padding * 2;
|
||||
const height = fontSize * 1.4;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
width="100%"
|
||||
height="100%"
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
className={className}
|
||||
id={id}
|
||||
aria-label={ariaLabel}
|
||||
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={padding}
|
||||
y={fontSize * 0.85}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
fontFamily="system-ui, -apple-system, sans-serif"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user