diff --git a/public/logo.png b/public/logo.png new file mode 100644 index 00000000..1518b34a Binary files /dev/null and b/public/logo.png differ diff --git a/public/version.json b/public/version.json new file mode 100644 index 00000000..47ebfb96 --- /dev/null +++ b/public/version.json @@ -0,0 +1,5 @@ +{ + "version": "1.0.9", + "date": "2026-05-29", + "environment": "development" +} diff --git a/src/config/site.ts b/src/config/site.ts index cd312421..5070b201 100644 --- a/src/config/site.ts +++ b/src/config/site.ts @@ -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: '/', diff --git a/src/sections/Footer.tsx b/src/sections/Footer.tsx index cae5b8e1..4356b313 100644 --- a/src/sections/Footer.tsx +++ b/src/sections/Footer.tsx @@ -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 = { }; 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 = () => {

© {new Date().getFullYear()} {COMPANY.name}. Todos os direitos reservados. - v1.0.4 + {version && v{version}}

diff --git a/src/sections/Navigation.tsx b/src/sections/Navigation.tsx index 45c4cdc9..f44e4703 100644 --- a/src/sections/Navigation.tsx +++ b/src/sections/Navigation.tsx @@ -46,14 +46,8 @@ const Navigation = () => {
{/* Logo - importado de config/site.ts */} - + {renderLogo()} - {LOGO.text && ( - - {LOGO.text} - {LOGO.textHighlight} - - )} {/* Desktop Navigation - importado de config/site.ts */}