Atualiza site corrigindo logo
Deploy HML Avanzato / deploy-hml (push) Successful in 34s

This commit is contained in:
2026-05-29 01:09:08 -03:00
parent d0334004fd
commit eb39bd7867
5 changed files with 24 additions and 15 deletions
+11 -1
View File
@@ -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">
&copy; {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">
+1 -7
View File
@@ -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 */}