Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 16:08:32 +00:00
2 changed files with 29 additions and 42 deletions

View File

@@ -10,7 +10,7 @@ import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCar
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FeatureCardSixteen from '@/components/sections/feature/FeatureCardSixteen';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Award, Chef, Heart, MapPin, Sparkles, Star } from 'lucide-react';
import { Award, Heart, MapPin, Sparkles, Star } from 'lucide-react';
export default function LandingPage() {
return (
@@ -74,7 +74,7 @@ export default function LandingPage() {
textboxLayout="default"
useInvertedBackground={false}
names={[
"\"Pão francês na chapa com manteiga, uma delícia!\"", "\"Ambiente aconchegante e doces lindos!\"", "\"Comidas maravilhosas que aquecem o coração!\"", "\"Atendimento amigável e produtos de qualidade\"", "\"Melhor padaria do bairro Portão!\"", "\"Café da manhã perfeito todos os dias\""
"Pão francês na chapa com manteiga, uma delícia!", "Ambiente aconchegante e doces lindos!", "Comidas maravilhosas que aquecem o coração!", "Atendimento amigável e produtos de qualidade", "Melhor padaria do bairro Portão!", "Café da manhã perfeito todos os dias"
]}
speed={40}
showCard={true}
@@ -88,7 +88,7 @@ export default function LandingPage() {
title="Nossas Especialidades"
description="Descubra os produtos artesanais que fazem a Padaria Trigo e Canela especial"
tag="Menu Premium"
tagIcon={Chef}
tagIcon={Sparkles}
tagAnimation="slide-up"
buttons={[
{ text: "💬 Peça pelo WhatsApp", href: "https://wa.me/5541987654321" }
@@ -147,11 +147,11 @@ export default function LandingPage() {
testimonials={[
{
id: "1", name: "Maria Silva", role: "Dona de Casa", company: "Portão, Curitiba", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/people-technology-close-up-shot-happy-face-attractive-bearded-man-sitting-front-laptop-screen-smiling-joyfully-while-messaging-friends-online-via-social-networks_273609-6655.jpg?_wi=1", imageAlt: "Maria Silva"
imageSrc: "http://img.b2bpic.net/free-photo/people-technology-close-up-shot-happy-face-attractive-bearded-man-sitting-front-laptop-screen-smiling-joyfully-while-messaging-friends-online-via-social-networks_273609-6655.jpg", imageAlt: "Maria Silva"
},
{
id: "2", name: "João Santos", role: "Gerente", company: "Empresa Local", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/handsome-man-outdoors-portrait_158595-3551.jpg?_wi=1", imageAlt: "João Santos"
imageSrc: "http://img.b2bpic.net/free-photo/handsome-man-outdoors-portrait_158595-3551.jpg", imageAlt: "João Santos"
},
{
id: "3", name: "Ana Costa", role: "Professora", company: "Escola Portão", rating: 5,
@@ -163,11 +163,11 @@ export default function LandingPage() {
},
{
id: "5", name: "Carla Fernandes", role: "Médica", company: "Clínica Local", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/people-technology-close-up-shot-happy-face-attractive-bearded-man-sitting-front-laptop-screen-smiling-joyfully-while-messaging-friends-online-via-social-networks_273609-6655.jpg?_wi=2", imageAlt: "Carla Fernandes"
imageSrc: "http://img.b2bpic.net/free-photo/people-technology-close-up-shot-happy-face-attractive-bearded-man-sitting-front-laptop-screen-smiling-joyfully-while-messaging-friends-online-via-social-networks_273609-6655.jpg", imageAlt: "Carla Fernandes"
},
{
id: "6", name: "Lucas Martins", role: "Advogado", company: "Escritório Portão", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/handsome-man-outdoors-portrait_158595-3551.jpg?_wi=2", imageAlt: "Lucas Martins"
imageSrc: "http://img.b2bpic.net/free-photo/handsome-man-outdoors-portrait_158595-3551.jpg", imageAlt: "Lucas Martins"
}
]}
gridVariant="three-columns-all-equal-width"

View File

@@ -1,51 +1,38 @@
"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;
fontSize?: number;
fontFamily?: string;
fill?: string;
className?: string;
}
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,
fontSize = 24,
fontFamily = 'Arial, sans-serif',
fill = 'currentColor',
className = '',
}) => {
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 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
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"
}}
y={fontSize}
fontSize={fontSize}
fontFamily={fontFamily}
fill={fill}
dominantBaseline="hanging"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;