Merge version_1 into main #2
@@ -47,7 +47,7 @@ export default function LandingPage() {
|
||||
description="Sabores incríveis, entrega rápida e ambiente familiar em Curitiba. Pizzas autênticas, chopp gelado e atendimento que faz a diferença."
|
||||
tag="⭐ 4.6 Google Rating • 1.361+ Avaliações"
|
||||
background={{ variant: "animated-grid" }}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/pie-with-nuts-wooden-plate_141793-1236.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/pie-with-nuts-wooden-plate_141793-1236.jpg"
|
||||
imageAlt="Fresh homemade pizza from Nil's Pizzaria"
|
||||
buttons={[
|
||||
{ text: "📞 Ligar Agora", href: "tel:+5541995178464" },
|
||||
@@ -65,7 +65,7 @@ export default function LandingPage() {
|
||||
description="Prefere mensagem? Preencha o formulário abaixo e responderemos em minutos. Você também pode ligar diretamente para (41) 99517-8464."
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/nice-weekend-spent-male-company_329181-9970.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/nice-weekend-spent-male-company_329181-9970.jpg"
|
||||
imageAlt="Nil's Pizzaria interior"
|
||||
mediaAnimation="slide-up"
|
||||
mediaPosition="right"
|
||||
@@ -98,7 +98,7 @@ export default function LandingPage() {
|
||||
tagIcon={Sparkles}
|
||||
products={[
|
||||
{
|
||||
id: "pizza-trad-1", name: "Pizza Tradicional Margherita", price: "R$ 35,00", variant: "Mozzarella, tomate, manjericão", imageSrc: "http://img.b2bpic.net/free-photo/neapolitan-pizza-with-tuna-cheese-arugula-basil-tomatoes-olives-sprinkled-with-cheese_78826-2269.jpg?_wi=1", imageAlt: "Pizza Margherita tradicional"
|
||||
id: "pizza-trad-1", name: "Pizza Tradicional Margherita", price: "R$ 35,00", variant: "Mozzarella, tomate, manjericão", imageSrc: "http://img.b2bpic.net/free-photo/neapolitan-pizza-with-tuna-cheese-arugula-basil-tomatoes-olives-sprinkled-with-cheese_78826-2269.jpg", imageAlt: "Pizza Margherita tradicional"
|
||||
},
|
||||
{
|
||||
id: "pizza-special-1", name: "Pizza Especial Suprema", price: "R$ 50,00", variant: "Carnes variadas, cebola, pimentão", imageSrc: "http://img.b2bpic.net/free-photo/italian-food-decoration-with-pizza-bread-pasta_23-2147686562.jpg", imageAlt: "Pizza Suprema especial"
|
||||
@@ -107,7 +107,7 @@ export default function LandingPage() {
|
||||
id: "pizza-sweet-1", name: "Pizza Doce Chocolate", price: "R$ 30,00", variant: "Chocolate, banana, canela", imageSrc: "http://img.b2bpic.net/free-photo/chicken-pizza-with-mushrooms-tomatoes-table_141793-566.jpg", imageAlt: "Pizza doce com chocolate"
|
||||
},
|
||||
{
|
||||
id: "chopp", name: "Chopp Brahma Gelado", price: "R$ 12,00", variant: "500ml, temperatura ideal", imageSrc: "http://img.b2bpic.net/free-photo/beer-with-crispy-fish-hors-d-oeuvres-world-beer-day_1150-23315.jpg?_wi=1", imageAlt: "Chopp Brahma gelado"
|
||||
id: "chopp", name: "Chopp Brahma Gelado", price: "R$ 12,00", variant: "500ml, temperatura ideal", imageSrc: "http://img.b2bpic.net/free-photo/beer-with-crispy-fish-hors-d-oeuvres-world-beer-day_1150-23315.jpg", imageAlt: "Chopp Brahma gelado"
|
||||
}
|
||||
]}
|
||||
gridVariant="uniform-all-items-equal"
|
||||
@@ -159,11 +159,11 @@ export default function LandingPage() {
|
||||
description="Veja o ambiente aconchegante, pizzas incríveis e momentos especiais de nossos clientes."
|
||||
features={[
|
||||
{
|
||||
title: "Pizzas Frescas", description: "Receita autêntica com ingredientes de qualidade", imageSrc: "http://img.b2bpic.net/free-photo/neapolitan-pizza-with-tuna-cheese-arugula-basil-tomatoes-olives-sprinkled-with-cheese_78826-2269.jpg?_wi=2", imageAlt: "Pizza fresca saindo do forno", buttonIcon: ArrowRight,
|
||||
title: "Pizzas Frescas", description: "Receita autêntica com ingredientes de qualidade", imageSrc: "http://img.b2bpic.net/free-photo/neapolitan-pizza-with-tuna-cheese-arugula-basil-tomatoes-olives-sprinkled-with-cheese_78826-2269.jpg", imageAlt: "Pizza fresca saindo do forno", buttonIcon: ArrowRight,
|
||||
buttonHref: "https://pedir.delivery"
|
||||
},
|
||||
{
|
||||
title: "Ambiente Familiar", description: "Espaço aconchegante perfeito para toda a família", imageSrc: "http://img.b2bpic.net/free-photo/nice-weekend-spent-male-company_329181-9970.jpg?_wi=2", imageAlt: "Interior do restaurante", buttonIcon: ArrowRight,
|
||||
title: "Ambiente Familiar", description: "Espaço aconchegante perfeito para toda a família", imageSrc: "http://img.b2bpic.net/free-photo/nice-weekend-spent-male-company_329181-9970.jpg", imageAlt: "Interior do restaurante", buttonIcon: ArrowRight,
|
||||
buttonHref: "tel:+5541995178464"
|
||||
},
|
||||
{
|
||||
@@ -176,7 +176,7 @@ export default function LandingPage() {
|
||||
title: "Área Kids", description: "Crianças se divertem enquanto você aproveita sua pizza", imageSrc: "http://img.b2bpic.net/free-photo/young-adults-having-party-home_23-2149215842.jpg", imageAlt: "Área de crianças", buttonIcon: ArrowRight
|
||||
},
|
||||
{
|
||||
title: "Bebidas Geladas", description: "Chopp Brahma perfeito para acompanhar sua refeição", imageSrc: "http://img.b2bpic.net/free-photo/beer-with-crispy-fish-hors-d-oeuvres-world-beer-day_1150-23315.jpg?_wi=2", imageAlt: "Chopp Brahma gelado", buttonIcon: ArrowRight
|
||||
title: "Bebidas Geladas", description: "Chopp Brahma perfeito para acompanhar sua refeição", imageSrc: "http://img.b2bpic.net/free-photo/beer-with-crispy-fish-hors-d-oeuvres-world-beer-day_1150-23315.jpg", imageAlt: "Chopp Brahma gelado", buttonIcon: ArrowRight
|
||||
}
|
||||
]}
|
||||
textboxLayout="default"
|
||||
@@ -192,7 +192,7 @@ export default function LandingPage() {
|
||||
description="Não espere mais. Escolha entre ligar, enviar mensagem ou pedir no nosso app parceiro. Entrega em até 30 minutos!"
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={true}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/pie-with-nuts-wooden-plate_141793-1236.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/pie-with-nuts-wooden-plate_141793-1236.jpg"
|
||||
imageAlt="Pizza appetizing close-up"
|
||||
mediaAnimation="slide-up"
|
||||
mediaPosition="left"
|
||||
|
||||
@@ -1,51 +1,46 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontWeight?: string | number;
|
||||
letterSpacing?: number;
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 48,
|
||||
fontWeight = 'bold',
|
||||
letterSpacing = 0,
|
||||
}) => {
|
||||
const textLength = text.length;
|
||||
const charWidth = fontSize * 0.6;
|
||||
const totalWidth = textLength * charWidth + (textLength - 1) * letterSpacing + 40;
|
||||
const viewBoxHeight = fontSize + 20;
|
||||
|
||||
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 ${totalWidth} ${viewBoxHeight}`}
|
||||
className={`${className}`}
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
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={totalWidth / 2}
|
||||
y={fontSize}
|
||||
textAnchor="middle"
|
||||
dominantBaseline="hanging"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user