Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 13:54:57 +00:00
2 changed files with 38 additions and 48 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="medium"
sizing="largeSmallSizeMediumTitles"
background="noise"
background="circleGradient"
cardStyle="soft-shadow"
primaryButtonStyle="flat"
secondaryButtonStyle="layered"
@@ -48,7 +48,7 @@ export default function LandingPage() {
description="Taste what 5,000 happy customers know: La Baraka serves up the most craveable, cheese-dipped burgers in town. Fast service. Massive portions. Pure satisfaction."
tag="4.8 Stars • 4,900+ Reviews"
tagIcon={Star}
background={{ variant: "noise" }}
background={{ variant: "sparkles-gradient" }}
kpis={[
{ value: "4.8★", label: "Customer Rating" },
{ value: "4,900+", label: "5-Star Reviews" },
@@ -59,7 +59,7 @@ export default function LandingPage() {
{ text: "Call Now: +1 (555) 123-4567", href: "tel:+15551234567" },
{ text: "View Full Menu", href: "#menu" }
]}
imageSrc="http://img.b2bpic.net/free-photo/front-view-beef-burgers-with-bacon-beer_23-2148784480.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/front-view-beef-burgers-with-bacon-beer_23-2148784480.jpg"
imageAlt="Signature cheese-dipped burger from La Baraka"
imagePosition="right"
mediaAnimation="slide-up"
@@ -79,15 +79,15 @@ export default function LandingPage() {
products={[
{
id: "1", brand: "Specialty", name: "Triple Cheese Burger", price: "€13.50", rating: 5,
reviewCount: "1.2k", imageSrc: "http://img.b2bpic.net/free-photo/front-view-burgers-with-pickles-red-onions-cutting-board_23-2148784504.jpg?_wi=1", imageAlt: "Triple Cheese Burger - loaded with melted cheddar"
reviewCount: "1.2k", imageSrc: "http://img.b2bpic.net/free-photo/front-view-burgers-with-pickles-red-onions-cutting-board_23-2148784504.jpg", imageAlt: "Triple Cheese Burger - loaded with melted cheddar"
},
{
id: "2", brand: "Bestseller", name: "Crispy Chicken Burger", price: "€11.90", rating: 5,
reviewCount: "980", imageSrc: "http://img.b2bpic.net/free-photo/big-sandwich-with-chicken-kebab-lettuce_2829-16529.jpg?_wi=1", imageAlt: "Golden crispy fried chicken burger"
reviewCount: "980", imageSrc: "http://img.b2bpic.net/free-photo/big-sandwich-with-chicken-kebab-lettuce_2829-16529.jpg", imageAlt: "Golden crispy fried chicken burger"
},
{
id: "3", brand: "Classic", name: "Burger & Fries Combo", price: "€12.00", rating: 5,
reviewCount: "1.5k", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-delicious-hamburger-with-french-fries-table_181624-44598.jpg?_wi=1", imageAlt: "Classic burger served with crispy French fries"
reviewCount: "1.5k", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-delicious-hamburger-with-french-fries-table_181624-44598.jpg", imageAlt: "Classic burger served with crispy French fries"
}
]}
buttons={[
@@ -135,28 +135,28 @@ export default function LandingPage() {
{
id: 1,
title: "Signature Cheese Dip", description: "Our legendary cheese-dipped burgers are gooey, rich, and absolutely addictive. One bite and you'll understand the hype.", phoneOne: {
imageSrc: "http://img.b2bpic.net/free-photo/front-view-beef-burgers-with-bacon-beer_23-2148784480.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-beef-burgers-with-bacon-beer_23-2148784480.jpg"
},
phoneTwo: {
imageSrc: "http://img.b2bpic.net/free-photo/front-view-burgers-with-pickles-red-onions-cutting-board_23-2148784504.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-burgers-with-pickles-red-onions-cutting-board_23-2148784504.jpg"
}
},
{
id: 2,
title: "Lightning-Fast Service", description: "Freshly made, piping hot, and ready in minutes. No compromises on speed or quality.", phoneOne: {
imageSrc: "http://img.b2bpic.net/free-photo/big-sandwich-with-chicken-kebab-lettuce_2829-16529.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/big-sandwich-with-chicken-kebab-lettuce_2829-16529.jpg"
},
phoneTwo: {
imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-delicious-hamburger-with-french-fries-table_181624-44598.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-delicious-hamburger-with-french-fries-table_181624-44598.jpg"
}
},
{
id: 3,
title: "Generous Portions", description: "€13 gets you a Triple Cheese Burger that's loaded with meat, cheese, and all the toppings you crave. Seriously generous.", phoneOne: {
imageSrc: "http://img.b2bpic.net/free-photo/front-view-burgers-with-pickles-red-onions-cutting-board_23-2148784504.jpg?_wi=3"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-burgers-with-pickles-red-onions-cutting-board_23-2148784504.jpg"
},
phoneTwo: {
imageSrc: "http://img.b2bpic.net/free-photo/front-view-beef-burgers-with-bacon-beer_23-2148784480.jpg?_wi=3"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-beef-burgers-with-bacon-beer_23-2148784480.jpg"
}
}
]}

View File

@@ -1,51 +1,41 @@
"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;
fontSize?: number;
fontFamily?: string;
fontWeight?: string | number;
fill?: string;
className?: 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,
fontSize = 24,
fontFamily = 'Arial, sans-serif',
fontWeight = 'bold',
fill = '#000000',
className = '',
}) => {
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 * (fontSize * 0.6)} ${fontSize * 1.5}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<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"
}}
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;