diff --git a/index.html b/index.html index 3fa8f24..1bd7874 100644 --- a/index.html +++ b/index.html @@ -173,22 +173,6 @@ border-color: var(--off-neon); } 95.51% { - box-shadow: var(--neon-shadow); - border-color: var(--primary-neon); - } - 96% { - box-shadow: var(--neon-shadow); - border-color: var(--primary-neon); - } - 96.01% { - box-shadow: none; - border-color: var(--off-neon); - } - 96.5% { - box-shadow: none; - border-color: var(--off-neon); - } - 96.51% { box-shadow: var(--neon-shadow-bright); border-color: var(--primary-neon); } @@ -279,6 +263,10 @@

Instinct

+ +
@@ -323,7 +311,7 @@
diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..5e0de2c --- /dev/null +++ b/manifest.json @@ -0,0 +1,21 @@ +{ + "name": "Instinct App", + "short_name": "Instinct", + "start_url": "/", + "display": "standalone", + "background_color": "#000000", + "theme_color": "#000000", + "description": "An instinct-driven app", + "icons": [ + { + "src": "icon.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icon.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/service-worker.js b/service-worker.js new file mode 100644 index 0000000..6fe304f --- /dev/null +++ b/service-worker.js @@ -0,0 +1,22 @@ +self.addEventListener('install', (event) => { + event.waitUntil( + caches.open('instinct-app-cache').then((cache) => { + return cache.addAll([ + '/', + '/index.html', + '/styles.css', + '/script.js', + '/icon.png', + '/manifest.json', + ]); + }) + ); +}); + +self.addEventListener('fetch', (event) => { + event.respondWith( + caches.match(event.request).then((response) => { + return response || fetch(event.request); + }) + ); +});