Paginas e SEO master
This commit is contained in:
@@ -130,6 +130,7 @@ export const NAV_LINKS = [
|
||||
},
|
||||
{ name: 'Tecnologias', href: '/tecnologias' },
|
||||
{ name: 'Avaliacao TI', href: '/avaliacao' },
|
||||
{ name: 'Onde Atuamos', href: '/onde-atuamos' },
|
||||
{ name: 'Cases', href: '/cases' },
|
||||
{ name: 'Blog', href: '/blog' },
|
||||
{ name: 'Contato', href: '/contato' },
|
||||
@@ -146,6 +147,7 @@ export const FOOTER_LINKS = {
|
||||
],
|
||||
empresa: [
|
||||
{ name: 'Sobre nos', href: '/sobre' },
|
||||
{ name: 'Onde Atuamos', href: '/onde-atuamos' },
|
||||
{ name: 'Cases de sucesso', href: '/cases' },
|
||||
{ name: 'Blog', href: '/blog' },
|
||||
{ name: 'Trabalhe conosco', href: '/contato' },
|
||||
|
||||
+11
-4
@@ -15,10 +15,17 @@ const Footer = () => {
|
||||
const [version, setVersion] = useState('');
|
||||
|
||||
useEffect(() => {
|
||||
fetch('/version.json?t=' + Date.now())
|
||||
.then(r => r.json())
|
||||
.then(data => setVersion(data.version))
|
||||
.catch(() => setVersion(''));
|
||||
// Ler versao da meta tag (mais confiavel que fetch de arquivo separado)
|
||||
const metaVersion = document.querySelector('meta[name="app-version"]')?.getAttribute('content');
|
||||
if (metaVersion && metaVersion !== '1.0.0') {
|
||||
setVersion(metaVersion);
|
||||
} else {
|
||||
// Fallback: tentar version.json
|
||||
fetch('/version.json?t=' + Date.now())
|
||||
.then(r => r.json())
|
||||
.then(data => setVersion(data.version))
|
||||
.catch(() => setVersion(''));
|
||||
}
|
||||
}, []);
|
||||
|
||||
const scrollToTop = () => {
|
||||
|
||||
Reference in New Issue
Block a user