diff --git a/astro.config.mjs b/astro.config.mjs index ac6fe54..c293cc3 100755 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,11 +1,12 @@ import { defineConfig } from 'astro/config'; import cloudflare from "@astrojs/cloudflare"; - import tailwind from "@astrojs/tailwind"; // https://astro.build/config export default defineConfig({ output: "server", adapter: cloudflare(), - integrations: [tailwind()], + integrations: [ +tailwind() + ], site: "https://s0u7a.net" }); diff --git a/public/manifest.json b/public/manifest.json index e1431f3..60e56d1 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -6,74 +6,64 @@ "start_url": "/", "display": "standalone", "orientation": "any", - "background_color": "#fff", - "theme_color": "#fff", + "background_color": "#0F172A", + "theme_color": "#0F172A", "icons": [ { "src": "/android-chrome-36x36.png", "sizes": "36x36", - "type": "image/png", - "purpose": "maskable" + "type": "image/png" }, { "src": "/android-chrome-48x48.png", "sizes": "48x48", - "type": "image/png", - "purpose": "maskable" + "type": "image/png" }, { "src": "/android-chrome-72x72.png", "sizes": "72x72", - "type": "image/png", - "purpose": "maskable" + "type": "image/png" }, { "src": "/android-chrome-96x96.png", "sizes": "96x96", - "type": "image/png", - "purpose": "maskable" + "type": "image/png" }, { "src": "/android-chrome-128x128.png", "sizes": "128x128", - "type": "image/png", - "purpose": "maskable" + "type": "image/png" }, { "src": "/android-chrome-144x144.png", "sizes": "144x144", - "type": "image/png", - "purpose": "maskable" + "type": "image/png" }, { "src": "/android-chrome-152x152.png", "sizes": "152x152", - "type": "image/png", - "purpose": "maskable" + "type": "image/png" }, { "src": "/android-chrome-192x192.png", "sizes": "192x192", - "type": "image/png", - "purpose": "maskable" + "type": "image/png" }, { "src": "/android-chrome-256x256.png", "sizes": "256x256", - "type": "image/png", - "purpose": "maskable" + "type": "image/png" }, { "src": "/android-chrome-384x384.png", "sizes": "384x384", - "type": "image/png", - "purpose": "maskable" + "type": "image/png" }, { "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png", - "purpose": "maskable" + "purpose": "any maskable" } ] } diff --git a/public/sw.js b/public/sw.js new file mode 100644 index 0000000..94d11d7 --- /dev/null +++ b/public/sw.js @@ -0,0 +1,10 @@ +self.addEventListener('activate', (event) => { + event.waitUntil(self.clients.claim()); + }); + self.addEventListener('install', (event) => { + console.log('インストール'); + event.waitUntil(self.skipWaiting()); + }); + self.addEventListener("fetch", (e) => { + console.log("[Service Worker] Fetched resource " + e.request.url); + }); \ No newline at end of file diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index 28aacfc..bfc6199 100755 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -22,8 +22,11 @@ function parseOGP(link: string): string { + {title} + + @@ -86,4 +89,5 @@ function parseOGP(link: string): string { + diff --git a/src/components/Layout/Footer.astro b/src/components/Layout/Footer.astro index 7ef1ce7..1bde5ab 100755 --- a/src/components/Layout/Footer.astro +++ b/src/components/Layout/Footer.astro @@ -3,7 +3,7 @@ ---