Merge version_1 into main #2
@@ -45,18 +45,19 @@ export default function LandingPage() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/food-drinks_1122-2078.jpg"
|
||||
imageAlt="Panzerotti fritti croccanti e dorati"
|
||||
mediaAnimation="slide-up"
|
||||
background={{ variant: "plain" }}
|
||||
testimonials={[
|
||||
{
|
||||
name: "Marco R.", handle: "Cliente regolare", testimonial: "Panzerotti super buoni! Ingredienti freschi e personale simpatico.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-chinese-woman-smiling-confident-standing-street_839833-7633.jpg?_wi=1", imageAlt: "happy customer smiling portrait professional"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-chinese-woman-smiling-confident-standing-street_839833-7633.jpg", imageAlt: "happy customer smiling portrait professional"
|
||||
},
|
||||
{
|
||||
name: "Lucia T.", handle: "Milano", testimonial: "Tutto buonissimo e tempi di consegna veloci. Il mio preferito in zona!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/man-his-professional-photography-studio_23-2149033380.jpg?_wi=1", imageAlt: "young woman smiling portrait headshot"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/man-his-professional-photography-studio_23-2149033380.jpg", imageAlt: "young woman smiling portrait headshot"
|
||||
},
|
||||
{
|
||||
name: "Paolo G.", handle: "Cliente asporto", testimonial: "Qualità eccellente, prezzi giusti. Tornerei sempre qui!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/modern-businesswoman_23-2148012909.jpg?_wi=1", imageAlt: "man professional portrait headshot smile"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/modern-businesswoman_23-2148012909.jpg", imageAlt: "man professional portrait headshot smile"
|
||||
}
|
||||
]}
|
||||
buttons={[
|
||||
@@ -83,13 +84,13 @@ export default function LandingPage() {
|
||||
id: "3", name: "Gnocchi Fritti", price: "€2-€3", variant: "Patata Croccante", imageSrc: "http://img.b2bpic.net/free-photo/ai-generated-pasta_23-2150637296.jpg", imageAlt: "Gnocchi fritti"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Pizza", price: "€5-€8", variant: "Margherita, Quattro Formaggi", imageSrc: "http://img.b2bpic.net/free-photo/top-view-pizza-wooden-table_23-2148273111.jpg?_wi=1", imageAlt: "Pizza italiana"
|
||||
id: "4", name: "Pizza", price: "€5-€8", variant: "Margherita, Quattro Formaggi", imageSrc: "http://img.b2bpic.net/free-photo/top-view-pizza-wooden-table_23-2148273111.jpg", imageAlt: "Pizza italiana"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Frittatine di Pasta", price: "€2-€4", variant: "Ragù Siciliano", imageSrc: "http://img.b2bpic.net/free-photo/boneless-chicken-with-herbs-high-angle_23-2149972930.jpg", imageAlt: "Frittatine di pasta"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Panini", price: "€4-€6", variant: "Carnivore Speciale", imageSrc: "http://img.b2bpic.net/free-photo/top-view-pizza-wooden-table_23-2148273111.jpg?_wi=2", imageAlt: "Panini gourmet"
|
||||
id: "6", name: "Panini", price: "€4-€6", variant: "Carnivore Speciale", imageSrc: "http://img.b2bpic.net/free-photo/top-view-pizza-wooden-table_23-2148273111.jpg", imageAlt: "Panini gourmet"
|
||||
}
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
@@ -110,15 +111,15 @@ export default function LandingPage() {
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Marco Rossi", role: "Cliente regolare", company: "Milano Baggio", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-chinese-woman-smiling-confident-standing-street_839833-7633.jpg?_wi=2", imageAlt: "Marco Rossi"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-chinese-woman-smiling-confident-standing-street_839833-7633.jpg", imageAlt: "Marco Rossi"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Lucia Tanzi", role: "Consegna a domicilio", company: "Mi Piace il Cibo", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/man-his-professional-photography-studio_23-2149033380.jpg?_wi=2", imageAlt: "Lucia Tanzi"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/man-his-professional-photography-studio_23-2149033380.jpg", imageAlt: "Lucia Tanzi"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Paolo Gallo", role: "Asporto frequente", company: "Zona Baggio", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/modern-businesswoman_23-2148012909.jpg?_wi=2", imageAlt: "Paolo Gallo"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/modern-businesswoman_23-2148012909.jpg", imageAlt: "Paolo Gallo"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Francesca Moretti", role: "Cena in famiglia", company: "Milano Sud", rating: 5,
|
||||
|
||||
@@ -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";
|
||||
className?: string;
|
||||
dominantBaseline?: 'middle' | 'auto' | 'hanging' | 'mathematical';
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
export function SvgTextLogo({ className = '', dominantBaseline = 'middle' }: SvgTextLogoProps) {
|
||||
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 200 200"
|
||||
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="100"
|
||||
y="100"
|
||||
textAnchor="middle"
|
||||
dominantBaseline={dominantBaseline}
|
||||
className="text-2xl font-bold"
|
||||
>
|
||||
{logoText}
|
||||
Logo
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user