From 392f3231afc96f45ac72dd996b6d3b52a1ed63fa Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 12:39:21 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 155ec64..7addee6 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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" -- 2.49.1 From 38dc5da9daf782b9f558d6ce8719728692bf3bca Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 12:39:21 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 54 +++++++------------ 1 file changed, 18 insertions(+), 36 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..10269df 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -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(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +const SvgTextLogo: React.FC = ({ + text, + className = '', + dominantBaseline = 'middle', +}) => { return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo; -- 2.49.1