Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="small"
|
||||
sizing="large"
|
||||
background="floatingGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="soft-shadow"
|
||||
primaryButtonStyle="gradient"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -47,13 +47,13 @@ export default function LandingPage() {
|
||||
tag="Premium Asian Cuisine"
|
||||
tagIcon={Sparkles}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "floatingGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
mediaItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/high-angle-dining-table-with-cutlery_23-2150312257.jpg", imageAlt: "Piatti cinesi autentici serviti con eleganza" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/style-still-life-with-noodles-bowl_1150-19792.jpg?_wi=1", imageAlt: "Riso fritto dorato con ingredienti premium" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-delicious-asian-food_23-2149091608.jpg?_wi=1", imageAlt: "Noodles saltati al wok fumanti" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/fried-spring-roll_74190-641.jpg?_wi=1", imageAlt: "Involtini primavera croccanti d'oro" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/pad-thai-noodles_74190-2427.jpg?_wi=1", imageAlt: "Pad Thai autentico con salsa di arachidi" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/style-still-life-with-noodles-bowl_1150-19792.jpg", imageAlt: "Riso fritto dorato con ingredienti premium" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-delicious-asian-food_23-2149091608.jpg", imageAlt: "Noodles saltati al wok fumanti" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/fried-spring-roll_74190-641.jpg", imageAlt: "Involtini primavera croccanti d'oro" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/pad-thai-noodles_74190-2427.jpg", imageAlt: "Pad Thai autentico con salsa di arachidi" }
|
||||
]}
|
||||
buttons={[
|
||||
{ text: "Prenota un Tavolo", href: "contact" },
|
||||
@@ -75,7 +75,7 @@ export default function LandingPage() {
|
||||
{ value: "15+", title: "Anni di Esperienza" },
|
||||
{ value: "100%", title: "Ingredienti Freschi" }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/cafe-interior-with-orange-sofa-three-tables-three-black-chairs_181624-8624.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/cafe-interior-with-orange-sofa-three-tables-three-black-chairs_181624-8624.jpg"
|
||||
imageAlt="Interno elegante di Moderno Ristorante"
|
||||
useInvertedBackground={true}
|
||||
mediaAnimation="slide-up"
|
||||
@@ -92,11 +92,11 @@ export default function LandingPage() {
|
||||
tagIcon={ChefHat}
|
||||
tagAnimation="slide-up"
|
||||
products={[
|
||||
{ id: "1", brand: "Moderno Ristorante", name: "Riso Fritto Supremo", price: "18,00€", rating: 5, reviewCount: "127", imageSrc: "http://img.b2bpic.net/free-photo/style-still-life-with-noodles-bowl_1150-19792.jpg?_wi=2", imageAlt: "Riso fritto con verdure fresche e proteine" },
|
||||
{ id: "2", brand: "Moderno Ristorante", name: "Noodles Saltati al Wok", price: "16,50€", rating: 5, reviewCount: "98", imageSrc: "http://img.b2bpic.net/free-photo/close-up-delicious-asian-food_23-2149091608.jpg?_wi=2", imageAlt: "Noodles croccanti cotti al wok" },
|
||||
{ id: "3", brand: "Moderno Ristorante", name: "Involtini Primavera", price: "14,00€", rating: 5, reviewCount: "156", imageSrc: "http://img.b2bpic.net/free-photo/fried-spring-roll_74190-641.jpg?_wi=2", imageAlt: "Involtini primavera fritti croccanti" },
|
||||
{ id: "1", brand: "Moderno Ristorante", name: "Riso Fritto Supremo", price: "18,00€", rating: 5, reviewCount: "127", imageSrc: "http://img.b2bpic.net/free-photo/style-still-life-with-noodles-bowl_1150-19792.jpg", imageAlt: "Riso fritto con verdure fresche e proteine" },
|
||||
{ id: "2", brand: "Moderno Ristorante", name: "Noodles Saltati al Wok", price: "16,50€", rating: 5, reviewCount: "98", imageSrc: "http://img.b2bpic.net/free-photo/close-up-delicious-asian-food_23-2149091608.jpg", imageAlt: "Noodles croccanti cotti al wok" },
|
||||
{ id: "3", brand: "Moderno Ristorante", name: "Involtini Primavera", price: "14,00€", rating: 5, reviewCount: "156", imageSrc: "http://img.b2bpic.net/free-photo/fried-spring-roll_74190-641.jpg", imageAlt: "Involtini primavera fritti croccanti" },
|
||||
{ id: "4", brand: "Moderno Ristorante", name: "Costine Speziate", price: "22,00€", rating: 5, reviewCount: "87", imageSrc: "http://img.b2bpic.net/free-photo/fried-meat-with-sauce-pepper-top_140725-6189.jpg", imageAlt: "Costine glassate con spezie asiatiche" },
|
||||
{ id: "5", brand: "Moderno Ristorante", name: "Pad Thai Autentico", price: "17,50€", rating: 5, reviewCount: "142", imageSrc: "http://img.b2bpic.net/free-photo/pad-thai-noodles_74190-2427.jpg?_wi=2", imageAlt: "Pad Thai tradizionale con arachidi" }
|
||||
{ id: "5", brand: "Moderno Ristorante", name: "Pad Thai Autentico", price: "17,50€", rating: 5, reviewCount: "142", imageSrc: "http://img.b2bpic.net/free-photo/pad-thai-noodles_74190-2427.jpg", imageAlt: "Pad Thai tradizionale con arachidi" }
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
animationType="slide-up"
|
||||
@@ -116,11 +116,11 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
tag: "Eleganza", title: "Ambiente Raffinato", subtitle: "Tavoli accuratamente allestiti", description: "Ogni dettaglio è curato per offrire un'atmosfera sofisticata. Illuminazione calda, arredi eleganti e musica discreta creano lo scenario ideale per un'esperienza indimenticabile.", imageSrc: "http://img.b2bpic.net/free-photo/cafe-interior-with-orange-sofa-three-tables-three-black-chairs_181624-8624.jpg?_wi=2", imageAlt: "Interno elegante del ristorante"
|
||||
tag: "Eleganza", title: "Ambiente Raffinato", subtitle: "Tavoli accuratamente allestiti", description: "Ogni dettaglio è curato per offrire un'atmosfera sofisticata. Illuminazione calda, arredi eleganti e musica discreta creano lo scenario ideale per un'esperienza indimenticabile.", imageSrc: "http://img.b2bpic.net/free-photo/cafe-interior-with-orange-sofa-three-tables-three-black-chairs_181624-8624.jpg", imageAlt: "Interno elegante del ristorante"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
tag: "Comfort", title: "Spazi Accoglienti", subtitle: "Comfort massimo garantito", description: "Sedie comode, spazi generosi tra i tavoli, e una temperatura ideale. Ogni angolo del ristorante è pensato per garantire il massimo confort durante la cena.", imageSrc: "http://img.b2bpic.net/free-photo/dining-table-with-chairs-tableware_140725-7823.jpg?_wi=1", imageAlt: "Tavoli accoglienti con illuminazione calda"
|
||||
tag: "Comfort", title: "Spazi Accoglienti", subtitle: "Comfort massimo garantito", description: "Sedie comode, spazi generosi tra i tavoli, e una temperatura ideale. Ogni angolo del ristorante è pensato per garantire il massimo confort durante la cena.", imageSrc: "http://img.b2bpic.net/free-photo/dining-table-with-chairs-tableware_140725-7823.jpg", imageAlt: "Tavoli accoglienti con illuminazione calda"
|
||||
}
|
||||
]}
|
||||
textboxLayout="default"
|
||||
@@ -160,7 +160,7 @@ export default function LandingPage() {
|
||||
tag="FAQ & Info"
|
||||
tagIcon={HelpCircle}
|
||||
tagAnimation="slide-up"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/dining-table-with-chairs-tableware_140725-7823.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/dining-table-with-chairs-tableware_140725-7823.jpg"
|
||||
imageAlt="Interno di Moderno Ristorante"
|
||||
mediaAnimation="slide-up"
|
||||
mediaPosition="right"
|
||||
|
||||
@@ -1,51 +1,35 @@
|
||||
"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;
|
||||
textClassName?: string;
|
||||
dominantBaseline?: 'auto' | 'baseline' | 'before-edge' | 'after-edge' | 'central' | 'middle' | 'hanging' | 'mathematical' | 'inherit';
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
||||
text,
|
||||
className = '',
|
||||
textClassName = '',
|
||||
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 400 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={dominantBaseline}
|
||||
className={`text-4xl font-bold ${textClassName}`}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user