Paginas e SEO master

This commit is contained in:
2026-06-02 12:43:57 -03:00
parent 6db7b5200b
commit 80dbb986f4
18 changed files with 431 additions and 387 deletions
+11 -4
View File
@@ -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 = () => {