This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": "1.0.9",
|
||||
"date": "2026-05-29",
|
||||
"environment": "development"
|
||||
}
|
||||
+7
-7
@@ -14,14 +14,14 @@ export const LOGO = {
|
||||
// Opcao 1: SVG inline (deixe vazio se for usar imagem)
|
||||
svgInline: '',
|
||||
|
||||
// Opcao 2: URL da imagem (use quando o logo esta hospedado externamente)
|
||||
// Exemplo: '/assets/logo.png' para arquivo local
|
||||
// Exemplo: 'https://avanzato.com.br/logo.png' para imagem externa
|
||||
imageUrl: 'https://avanzato.com.br/logo.png',
|
||||
// Opcao 2: URL da imagem
|
||||
// Use '/logo.png' para carregar da pasta public/ (funciona em qualquer ambiente)
|
||||
// Use 'https://avanzato.com.br/logo.png' apenas se for carregar de servidor externo
|
||||
imageUrl: '/logo.png',
|
||||
|
||||
// Texto ao lado do logo (deixe vazio se nao quiser texto)
|
||||
text: 'avanzato',
|
||||
textHighlight: '.', // O ponto verde apos o texto
|
||||
// Texto ao lado do logo (deixe vazio se o logo ja tiver texto)
|
||||
text: '',
|
||||
textHighlight: '',
|
||||
|
||||
// Link do logo (para onde vai quando clica)
|
||||
href: '/',
|
||||
|
||||
+11
-1
@@ -1,3 +1,4 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { Facebook, Youtube, Linkedin, Instagram, ArrowUp, MapPin } from 'lucide-react';
|
||||
import { LOGO, SOCIAL_LINKS, ADDRESSES, FOOTER_LINKS, COMPANY } from '../config/site';
|
||||
@@ -11,6 +12,15 @@ const socialIcons: Record<string, React.ReactNode> = {
|
||||
};
|
||||
|
||||
const Footer = () => {
|
||||
const [version, setVersion] = useState('');
|
||||
|
||||
useEffect(() => {
|
||||
fetch('/version.json')
|
||||
.then(r => r.json())
|
||||
.then(data => setVersion(data.version))
|
||||
.catch(() => setVersion(''));
|
||||
}, []);
|
||||
|
||||
const scrollToTop = () => {
|
||||
window.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
};
|
||||
@@ -161,7 +171,7 @@ const Footer = () => {
|
||||
<div className="flex flex-col md:flex-row items-center justify-between gap-4">
|
||||
<p className="text-gray-500 text-sm">
|
||||
© {new Date().getFullYear()} {COMPANY.name}. Todos os direitos reservados.
|
||||
<span className="ml-2 text-gray-600 text-xs">v1.0.4</span>
|
||||
{version && <span className="ml-2 text-gray-600 text-xs">v{version}</span>}
|
||||
</p>
|
||||
|
||||
<div className="flex items-center gap-6">
|
||||
|
||||
@@ -46,14 +46,8 @@ const Navigation = () => {
|
||||
<div className="container-custom">
|
||||
<div className="flex items-center justify-between h-20">
|
||||
{/* Logo - importado de config/site.ts */}
|
||||
<Link to={LOGO.href} className="flex items-center gap-3">
|
||||
<Link to={LOGO.href} className="flex items-center">
|
||||
{renderLogo()}
|
||||
{LOGO.text && (
|
||||
<span className="text-2xl font-bold text-white tracking-tight">
|
||||
{LOGO.text}
|
||||
<span className="text-[#cbf400]">{LOGO.textHighlight}</span>
|
||||
</span>
|
||||
)}
|
||||
</Link>
|
||||
|
||||
{/* Desktop Navigation - importado de config/site.ts */}
|
||||
|
||||
Reference in New Issue
Block a user