Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 13:26:36 +00:00
2 changed files with 32 additions and 43 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="compact"
sizing="largeSmallSizeMediumTitles"
background="blurBottom"
background="circleGradient"
cardStyle="inset"
primaryButtonStyle="radial-glow"
secondaryButtonStyle="radial-glow"
@@ -45,7 +45,7 @@ export default function LandingPage() {
description="Equipamentos profissionais para obras, reformas e manutenção. Atendimento rápido, locação com excelente custo-benefício e garantia de confiabilidade."
tag="Equipamentos para Pirituba"
tagIcon={Hammer}
background={{ variant: "blurBottom" }}
background={{ variant: "plain" }}
kpis={[
{ value: "15+", label: "Anos de Experiência" },
{ value: "4.1 ⭐", label: "Avaliação no Google" },
@@ -56,7 +56,7 @@ export default function LandingPage() {
{ text: "📞 Ligar Agora", href: "tel:+5511987088993" },
{ text: "💬 WhatsApp", href: "https://wa.me/5511987088993?text=Gostaria%20de%20um%20orçamento%20para%20aluguel%20de%20equipamentos" }
]}
imageSrc="http://img.b2bpic.net/free-photo/full-shot-people-working-out-together_23-2150405456.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/full-shot-people-working-out-together_23-2150405456.jpg"
imageAlt="Equipamentos profissionais de construção"
mediaAnimation="slide-up"
imagePosition="right"
@@ -135,8 +135,8 @@ export default function LandingPage() {
<div id="areas" data-section="areas">
<FeatureCardTwentyFour
features={[
{ id: "1", title: "Pirituba", author: "Principal", description: "Nossa localização central garante atendimento ágil para todos os clientes de Pirituba.", tags: ["Local principal", "Entrada fácil"], imageSrc: "http://img.b2bpic.net/free-vector/smart-city-background-with-gps_23-2147556641.jpg?_wi=1" },
{ id: "2", title: "Região Expandida", author: "Cobertura", description: "Atendemos Lapa, Jaraguá, Freguesia do Ó, Perus e Taipas com rapidez e eficiência.", tags: ["Entrega rápida", "Sem taxas extras"], imageSrc: "http://img.b2bpic.net/free-vector/smart-city-background-with-gps_23-2147556641.jpg?_wi=2" }
{ id: "1", title: "Pirituba", author: "Principal", description: "Nossa localização central garante atendimento ágil para todos os clientes de Pirituba.", tags: ["Local principal", "Entrada fácil"], imageSrc: "http://img.b2bpic.net/free-vector/smart-city-background-with-gps_23-2147556641.jpg" },
{ id: "2", title: "Região Expandida", author: "Cobertura", description: "Atendemos Lapa, Jaraguá, Freguesia do Ó, Perus e Taipas com rapidez e eficiência.", tags: ["Entrega rápida", "Sem taxas extras"], imageSrc: "http://img.b2bpic.net/free-vector/smart-city-background-with-gps_23-2147556641.jpg" }
]}
animationType="slide-up"
title="Áreas de Atendimento"
@@ -155,7 +155,7 @@ export default function LandingPage() {
description="Preencha o formulário abaixo para receber um orçamento personalizado. Nossa equipe responderá em até 2 horas."
background={{ variant: "plain" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/full-shot-people-working-out-together_23-2150405456.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/full-shot-people-working-out-together_23-2150405456.jpg"
imageAlt="Equipamentos de construção"
mediaAnimation="slide-up"
mediaPosition="right"

View File

@@ -1,51 +1,40 @@
"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;
fillColor?: string;
fontSize?: number;
dominantBaseline?: 'hanging' | 'middle' | 'auto' | 'baseline' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'mathematical' | 'central';
}
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,
fillColor = 'currentColor',
fontSize = 48,
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 ${text.length * fontSize} ${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"
}}
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
fontSize={fontSize}
fill={fillColor}
fontWeight="bold"
fontFamily="system-ui, -apple-system, sans-serif"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;