Merge version_1 into main #2
@@ -21,7 +21,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="compact"
|
||||
sizing="large"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="solid"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -48,7 +48,7 @@ export default function LandingPage() {
|
||||
description="Reduza sua conta de energia até 90% com sistemas solares de alta eficiência. Consultoria gratuita, instalação profissional e garantia de 25 anos. Mais de 4.700 clientes satisfeitos confiam em nós."
|
||||
tag="Empresa Especializada em Energia Solar"
|
||||
tagIcon={Zap}
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
kpis={[
|
||||
{ value: "4.700+", label: "Clientes Satisfeitos" },
|
||||
{ value: "4,7★", label: "Avaliação no Google" },
|
||||
@@ -58,7 +58,7 @@ export default function LandingPage() {
|
||||
buttons={[
|
||||
{ text: "Solicitar Orçamento", href: "#contact" }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/solar-panel-sunset_23-2152002189.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/solar-panel-sunset_23-2152002189.jpg"
|
||||
imageAlt="Painel solar instalado em residência"
|
||||
mediaAnimation="slide-up"
|
||||
/>
|
||||
@@ -74,7 +74,7 @@ export default function LandingPage() {
|
||||
{ value: "10+", title: "Anos de Experiência no Mercado" },
|
||||
{ value: "25", title: "Anos de Garantia nos Sistemas" }
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/woman-with-mask-working-environment-project_23-2148894096.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/woman-with-mask-working-environment-project_23-2148894096.jpg"
|
||||
imageAlt="Família aproveitando energia solar"
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
@@ -91,25 +91,25 @@ export default function LandingPage() {
|
||||
id: "1", title: "Sistema Solar com Microinversor", descriptions: [
|
||||
"Máxima eficiência com monitoramento individual de painéis", "Potência de 2,5 kWp a 75 kWp conforme sua demanda", "Projeto e engenharia personalizados para sua residência", "Instalação completa com garantia 25 anos", "Desempenho otimizado em qualquer condição"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/investors-look-mockup-monitor-evaluate-factory-investment-potential-risks_482257-126510.jpg?_wi=1", imageAlt: "Sistema com microinversor"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/investors-look-mockup-monitor-evaluate-factory-investment-potential-risks_482257-126510.jpg", imageAlt: "Sistema com microinversor"
|
||||
},
|
||||
{
|
||||
id: "2", title: "Sistema com Inversor Híbrido e Backup", descriptions: [
|
||||
"Energia 24/7 com bateria de backup integrada", "Continua gerando energia mesmo durante apagões", "Potência de 2,5 kWp a 75 kWp com armazenamento", "Projeto, engenharia e instalação profissional", "Solução completa de autonomia energética"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/businessmen-industrial-plant-doing-research-mockup-tablet_482257-123499.jpg?_wi=1", imageAlt: "Sistema híbrido com bateria backup"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/businessmen-industrial-plant-doing-research-mockup-tablet_482257-123499.jpg", imageAlt: "Sistema híbrido com bateria backup"
|
||||
},
|
||||
{
|
||||
id: "3", title: "Sistema Solar com Inversor Standard", descriptions: [
|
||||
"Solução clássica e confiável de energia solar", "Inversor robusto para máxima durabilidade", "Potência de 2,5 kWp a 75 kWp disponível", "Projeto completo e instalação de qualidade", "Opção econômica com excelente retorno"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/specialist-technician-professional-engineer-with-laptop-tablet-maintenance-checking-installing-solar-roof-panel-factory-rooftop-sunlight-engineers-team-survey-check-solar-panel-roof_609648-2195.jpg?_wi=1", imageAlt: "Sistema solar completo"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/specialist-technician-professional-engineer-with-laptop-tablet-maintenance-checking-installing-solar-roof-panel-factory-rooftop-sunlight-engineers-team-survey-check-solar-panel-roof_609648-2195.jpg", imageAlt: "Sistema solar completo"
|
||||
},
|
||||
{
|
||||
id: "4", title: "Consultoria e Orçamento Personalizado", descriptions: [
|
||||
"Análise gratuita de sua conta de energia atual", "Dimensionamento ideal para sua necessidade", "Simulação de economia mensal e ROI", "Comparação entre diferentes tipos de sistema", "Suporte completo no processo de escolha"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-with-mask-working-environment-project_23-2148894096.jpg?_wi=2", imageAlt: "Consulta personalizada de energia solar"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-with-mask-working-environment-project_23-2148894096.jpg", imageAlt: "Consulta personalizada de energia solar"
|
||||
}
|
||||
]}
|
||||
gridVariant="two-columns-alternating-heights"
|
||||
@@ -129,28 +129,28 @@ export default function LandingPage() {
|
||||
"Consultoria gratuita", "Análise de viabilidade", "Orçamento detalhado", "Suporte na escolha"
|
||||
],
|
||||
button: { text: "Solicitar Orçamento", href: "#contact" },
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/solar-panel-sunset_23-2152002189.jpg?_wi=2", imageAlt: "Projeto pequeno"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/solar-panel-sunset_23-2152002189.jpg", imageAlt: "Projeto pequeno"
|
||||
},
|
||||
{
|
||||
id: "sistema-standard", title: "Sistema 550kWh", price: "R$ 10.000", period: "em diante", features: [
|
||||
"Sistema com inversor padrão", "Potência de 2,5 a 75 kWp", "Projeto e engenharia inclusa", "Instalação profissional", "Garantia 25 anos"
|
||||
],
|
||||
button: { text: "Conhecer Mais", href: "#contact" },
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/specialist-technician-professional-engineer-with-laptop-tablet-maintenance-checking-installing-solar-roof-panel-factory-rooftop-sunlight-engineers-team-survey-check-solar-panel-roof_609648-2195.jpg?_wi=2", imageAlt: "Sistema 550kWh"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/specialist-technician-professional-engineer-with-laptop-tablet-maintenance-checking-installing-solar-roof-panel-factory-rooftop-sunlight-engineers-team-survey-check-solar-panel-roof_609648-2195.jpg", imageAlt: "Sistema 550kWh"
|
||||
},
|
||||
{
|
||||
id: "sistema-micro", title: "Sistema 550kWh Micro Inversor", price: "R$ 10.500", period: "em diante", features: [
|
||||
"Sistema com microinversor", "Monitoramento individual de painéis", "Potência de 2,5 a 75 kWp", "Projeto e engenharia inclusa", "Maior eficiência e durabilidade"
|
||||
],
|
||||
button: { text: "Conhecer Mais", href: "#contact" },
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/investors-look-mockup-monitor-evaluate-factory-investment-potential-risks_482257-126510.jpg?_wi=2", imageAlt: "Sistema com microinversor"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/investors-look-mockup-monitor-evaluate-factory-investment-potential-risks_482257-126510.jpg", imageAlt: "Sistema com microinversor"
|
||||
},
|
||||
{
|
||||
id: "sistema-hibrido", title: "Sistema 550kWh com Inversor Híbrido", price: "R$ 15.500", period: "em diante", features: [
|
||||
"Sistema com inversor híbrido", "Bateria de backup incluída", "Energia 24/7 com armazenamento", "Potência de 2,5 a 75 kWp", "Autonomia energética completa"
|
||||
],
|
||||
button: { text: "Conhecer Mais", href: "#contact" },
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/businessmen-industrial-plant-doing-research-mockup-tablet_482257-123499.jpg?_wi=2", imageAlt: "Sistema híbrido com backup"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/businessmen-industrial-plant-doing-research-mockup-tablet_482257-123499.jpg", imageAlt: "Sistema híbrido com backup"
|
||||
}
|
||||
]}
|
||||
animationType="slide-up"
|
||||
|
||||
@@ -1,51 +1,37 @@
|
||||
"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;
|
||||
fontFamily?: string;
|
||||
fill?: string;
|
||||
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging';
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
>
|
||||
<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"
|
||||
}}
|
||||
const SvgTextLogo = React.forwardRef<SVGSVGElement, SvgTextLogoProps>(
|
||||
({ text, className = '', fontSize = 32, fontFamily = 'Arial', fill = '#000', dominantBaseline = 'middle' }, ref) => {
|
||||
return (
|
||||
<svg
|
||||
ref={ref}
|
||||
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
|
||||
className={className}
|
||||
>
|
||||
{logoText}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
<text
|
||||
x="10"
|
||||
y={fontSize * 0.75}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
dominantBaseline={dominantBaseline}
|
||||
>
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
SvgTextLogo.displayName = 'SvgTextLogo';
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user