Merge version_1 into main #2
@@ -83,10 +83,10 @@ export default function LandingPage() {
|
||||
animationType="slide-up"
|
||||
gridVariant="four-items-2x2-equal-grid"
|
||||
products={[
|
||||
{ id: "pizza-margherita", name: "Pizza Margherita", price: "$220", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-pizza-with-fresh-cheese_23-2150096956.jpg?_wi=1", imageAlt: "Pizza Margherita auténtica" },
|
||||
{ id: "pasta-fresca", name: "Pasta Fresca", price: "$230", imageSrc: "http://img.b2bpic.net/free-photo/pasta-filled-with-cream-topped-with-pepper_140725-1828.jpg?_wi=1", imageAlt: "Pasta fresca hecha a mano" },
|
||||
{ id: "lasagna", name: "Lasagna Tradicional", price: "$260", imageSrc: "http://img.b2bpic.net/free-photo/glass-wine-cheese-plate_140725-143.jpg?_wi=1", imageAlt: "Lasagna tradicional italiana" },
|
||||
{ id: "tiramisu", name: "Tiramisú Casero", price: "$120", imageSrc: "http://img.b2bpic.net/free-photo/tiramisu-cakes-cup-tea-white-surface-with-spoon_114579-40356.jpg?_wi=1", imageAlt: "Tiramisú clásico italiano" }
|
||||
{ id: "pizza-margherita", name: "Pizza Margherita", price: "$220", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-pizza-with-fresh-cheese_23-2150096956.jpg", imageAlt: "Pizza Margherita auténtica" },
|
||||
{ id: "pasta-fresca", name: "Pasta Fresca", price: "$230", imageSrc: "http://img.b2bpic.net/free-photo/pasta-filled-with-cream-topped-with-pepper_140725-1828.jpg", imageAlt: "Pasta fresca hecha a mano" },
|
||||
{ id: "lasagna", name: "Lasagna Tradicional", price: "$260", imageSrc: "http://img.b2bpic.net/free-photo/glass-wine-cheese-plate_140725-143.jpg", imageAlt: "Lasagna tradicional italiana" },
|
||||
{ id: "tiramisu", name: "Tiramisú Casero", price: "$120", imageSrc: "http://img.b2bpic.net/free-photo/tiramisu-cakes-cup-tea-white-surface-with-spoon_114579-40356.jpg", imageAlt: "Tiramisú clásico italiano" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
ariaLabel="Menu highlights section"
|
||||
@@ -101,10 +101,10 @@ export default function LandingPage() {
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
features={[
|
||||
{ id: 1, title: "Pizzas Artesanales", description: "Pizza Margherita, Pepperoni, Prosciutto e Funghi, 4 Quesos — elaboradas en horno tradicional con masa fresca", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-pizza-with-fresh-cheese_23-2150096956.jpg?_wi=2", imageAlt: "Pizza Margherita" },
|
||||
{ id: 2, title: "Pastas Frescas", description: "Spaghetti Bolognese, Fettuccine Alfredo, Pasta Carbonara, Lasagna — recetas auténticas con salsa casera", imageSrc: "http://img.b2bpic.net/free-photo/pasta-filled-with-cream-topped-with-pepper_140725-1828.jpg?_wi=2", imageAlt: "Pasta fresca" },
|
||||
{ id: 3, title: "Postres Clásicos", description: "Tiramisú casero, Panna Cotta, Cannoli — desserts tradicionales que finalizan perfectamente tu comida", imageSrc: "http://img.b2bpic.net/free-photo/tiramisu-cakes-cup-tea-white-surface-with-spoon_114579-40356.jpg?_wi=2", imageAlt: "Tiramisú" },
|
||||
{ id: 4, title: "Bebidas Selectas", description: "Refrescos, Agua mineral, Café espresso, Cappuccino — bebidas que complementan tu experiencia italiana", imageSrc: "http://img.b2bpic.net/free-photo/rice-with-chicken-mushrooms-creamy-sauce_140725-6787.jpg", imageAlt: "Bebidas" }
|
||||
{ id: "1", title: "Pizzas Artesanales", description: "Pizza Margherita, Pepperoni, Prosciutto e Funghi, 4 Quesos — elaboradas en horno tradicional con masa fresca", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-pizza-with-fresh-cheese_23-2150096956.jpg", imageAlt: "Pizza Margherita" },
|
||||
{ id: "2", title: "Pastas Frescas", description: "Spaghetti Bolognese, Fettuccine Alfredo, Pasta Carbonara, Lasagna — recetas auténticas con salsa casera", imageSrc: "http://img.b2bpic.net/free-photo/pasta-filled-with-cream-topped-with-pepper_140725-1828.jpg", imageAlt: "Pasta fresca" },
|
||||
{ id: "3", title: "Postres Clásicos", description: "Tiramisú casero, Panna Cotta, Cannoli — desserts tradicionales que finalizan perfectamente tu comida", imageSrc: "http://img.b2bpic.net/free-photo/tiramisu-cakes-cup-tea-white-surface-with-spoon_114579-40356.jpg", imageAlt: "Tiramisú" },
|
||||
{ id: "4", title: "Bebidas Selectas", description: "Refrescos, Agua mineral, Café espresso, Cappuccino — bebidas que complementan tu experiencia italiana", imageSrc: "http://img.b2bpic.net/free-photo/rice-with-chicken-mushrooms-creamy-sauce_140725-6787.jpg", imageAlt: "Bebidas" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
ariaLabel="Menu categories section"
|
||||
@@ -122,7 +122,7 @@ export default function LandingPage() {
|
||||
metrics={[
|
||||
{ id: "1", value: "100%", title: "Ingredientes Frescos", description: "Seleccionados diariamente para máxima calidad", imageSrc: "http://img.b2bpic.net/free-photo/pizza-oven_1232-2394.jpg", imageAlt: "Pizza oven" },
|
||||
{ id: "2", value: "Años", title: "Tradición Italiana", description: "Recetas auténticas transmitidas generación tras generación", imageSrc: "http://img.b2bpic.net/free-photo/vertical-shot-delicious-pasta-white-plate_181624-42231.jpg", imageAlt: "Pasta dish" },
|
||||
{ id: "3", value: "5+", title: "Variedades de Pizza", description: "Cada una creada con arte y dedicación", imageSrc: "http://img.b2bpic.net/free-photo/glass-wine-cheese-plate_140725-143.jpg?_wi=2", imageAlt: "Pizza varieties" },
|
||||
{ id: "3", value: "5+", title: "Variedades de Pizza", description: "Cada una creada con arte y dedicación", imageSrc: "http://img.b2bpic.net/free-photo/glass-wine-cheese-plate_140725-143.jpg", imageAlt: "Pizza varieties" },
|
||||
{ id: "4", value: "Ambiente", title: "Acogedor y Cálido", description: "Perfecto para familia, amigos y celebraciones", imageSrc: "http://img.b2bpic.net/free-photo/side-view-glass-wine-with-pasta-round-plate_176474-3106.jpg", imageAlt: "Dining ambiance" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
|
||||
@@ -1,51 +1,33 @@
|
||||
"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;
|
||||
dominantBaseline?: 'auto' | 'baseline' | 'middle' | 'hanging' | 'mathematical' | 'central';
|
||||
}
|
||||
|
||||
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 = '',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
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}
|
||||
aria-label={text}
|
||||
>
|
||||
<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={dominantBaseline}
|
||||
className="text-2xl font-bold fill-current"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user