feat: PWA support - manifest, service worker, icons
This commit is contained in:
@@ -3,6 +3,15 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="theme-color" content="#10a37f">
|
||||
<meta name="description" content="Assistente virtual da Camila - Profesora">
|
||||
<!-- PWA Manifest -->
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<!-- iOS PWA Support -->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="apple-mobile-web-app-title" content="Camila AI">
|
||||
<link rel="apple-touch-icon" href="/icon-192.png">
|
||||
<title>Camila AI</title>
|
||||
<!-- Google Fonts Outfit & Inter -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
@@ -202,5 +211,19 @@
|
||||
<script>
|
||||
document.write('<script src="app.js?v=' + Date.now() + '"><\/script>');
|
||||
</script>
|
||||
<!-- Service Worker Registration for PWA -->
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', () => {
|
||||
navigator.serviceWorker.register('/sw.js')
|
||||
.then((registration) => {
|
||||
console.log('Camila AI SW registered:', registration.scope);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log('Camila AI SW registration failed:', error);
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user