Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 16:02:07 +00:00
2 changed files with 19 additions and 41 deletions

View File

@@ -62,7 +62,7 @@ export default function LandingPage() {
id: "3", imageSrc: "http://img.b2bpic.net/free-photo/delicious-mushroom-pizza-with-cheese-fresh-vegetables-marble_114579-15514.jpg", imageAlt: "Seafood pizza fresh toppings"
},
{
id: "4", imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-with-shrimp-mussel-calamari-squid-cheese_141793-2273.jpg?_wi=1", imageAlt: "Pizza al forno traditional oven"
id: "4", imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-with-shrimp-mussel-calamari-squid-cheese_141793-2273.jpg", imageAlt: "Pizza al forno traditional oven"
},
{
id: "5", imageSrc: "http://img.b2bpic.net/free-photo/baking-pizza-wood-fired-oven_23-2150134280.jpg", imageAlt: "Pizza tonda italian round style"
@@ -87,9 +87,10 @@ export default function LandingPage() {
{ value: "28+", title: "Years of Tradition" },
{ value: "10K+", title: "Happy Customers" }
]}
imageSrc="http://img.b2bpic.net/free-photo/wooden-chair-table_1203-7265.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/wooden-chair-table_1203-7265.jpg"
imageAlt="Pizzeria Dolce cozy interior"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
useInvertedBackground={false}
/>
</div>
@@ -139,7 +140,7 @@ export default function LandingPage() {
id: "3", name: "Vegetarian", price: "$15.99", imageSrc: "http://img.b2bpic.net/free-photo/top-view-mushroom-pizza-with-tomatoes-olives-mushrooms-with-fresh-tomatoes-peppers-grey-desk-pizza-dough-italian-food_140725-22912.jpg", imageAlt: "Fresh Vegetarian Pizza", initialQuantity: 1
},
{
id: "4", name: "Quattro Formaggi", price: "$17.99", imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-with-shrimp-mussel-calamari-squid-cheese_141793-2273.jpg?_wi=2", imageAlt: "Four Cheese Gourmet Pizza", initialQuantity: 1
id: "4", name: "Quattro Formaggi", price: "$17.99", imageSrc: "http://img.b2bpic.net/free-photo/seafood-pizza-with-shrimp-mussel-calamari-squid-cheese_141793-2273.jpg", imageAlt: "Four Cheese Gourmet Pizza", initialQuantity: 1
}
]}
gridVariant="uniform-all-items-equal"
@@ -224,7 +225,7 @@ export default function LandingPage() {
tagAnimation="slide-up"
background={{ variant: "plain" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/wooden-chair-table_1203-7265.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/wooden-chair-table_1203-7265.jpg"
imageAlt="Pizzeria Dolce contact"
mediaAnimation="slide-up"
mediaPosition="right"

View File

@@ -1,51 +1,28 @@
"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;
}
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 = '' }) => {
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 300 100"
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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
className="fill-current text-lg font-bold"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;