feat: Added favicon and PWA

This commit is contained in:
2025-07-10 08:57:57 +00:00
parent 22481e5af2
commit 1df4920406
5 changed files with 55 additions and 1 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 241 KiB

After

Width:  |  Height:  |  Size: 238 KiB

+21
View File
@@ -0,0 +1,21 @@
{
"name": "EchoLog",
"short_name": "EchoLog",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#0f172a",
"description": "Your personal homelab journal",
"icons": [
{
"src": "/static/echolog.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/static/echolog.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
+15
View File
@@ -0,0 +1,15 @@
self.addEventListener('install', function(event) {
self.skipWaiting();
});
self.addEventListener('activate', function(event) {
event.waitUntil(self.clients.claim());
});
self.addEventListener('fetch', function(event) {
event.respondWith(
caches.match(event.request).then(function(response) {
return response || fetch(event.request);
})
);
});