diff --git a/bun.lockb b/bun.lockb index d09a109..5986c7d 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/article/content.vue b/components/article/content.vue index 70c145e..28dcbf4 100644 --- a/components/article/content.vue +++ b/components/article/content.vue @@ -1,7 +1,4 @@ @@ -29,8 +26,12 @@ defineProps<{ @apply h-6 w-6 flex-none rounded-full bg-gray-800; } +.content :global :has(.header-anchor):hover .header-anchor { + @apply opacity-100; +} + .content :global .header-anchor { - @apply no-underline absolute w-16 md:w-auto text-right left-[calc(100%-3.75rem)] md:-left-10 text-gray-200 + @apply no-underline absolute size-6 md:w-auto text-right opacity-0 duration-75 left-[calc(100%-3.75rem)] md:-left-10 text-gray-200 } .content :global .header-anchor::before { diff --git a/components/article/image.vue b/components/article/image.vue index c749946..8b618dd 100644 --- a/components/article/image.vue +++ b/components/article/image.vue @@ -1,6 +1,9 @@ \ No newline at end of file diff --git a/components/article/title.vue b/components/article/title.vue index 58e3584..cd14293 100644 --- a/components/article/title.vue +++ b/components/article/title.vue @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/nuxt.config.ts b/nuxt.config.ts index 8702379..1283d59 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -94,6 +94,23 @@ export default defineNuxtConfig({ future: { compatibilityVersion: 4, }, + fonts: { + defaults: { + subsets: ["latin", "latin-ext"], + }, + }, + security: { + headers: { + contentSecurityPolicy: { + "img-src": [ + "'self'", + "data:", + "images.pexels.com", + "cdn.versia.pub", + ], + }, + }, + }, image: { domains: ["images.pexels.com"], }, diff --git a/package.json b/package.json index 02e668f..29416d6 100644 --- a/package.json +++ b/package.json @@ -49,12 +49,14 @@ "markdown-it-toc-done-right": "^4.2.0", "nuxt": "^3.13.2", "nuxt-security": "^2.0.0", + "sharp": "^0.33.5", "shiki": "^1.22.2", "vue": "^3.5.12", "vue-router": "^4.4.5" }, "devDependencies": { "@biomejs/biome": "^1.9.4", + "@iconify-json/tabler": "^1.2.6", "@types/bun": "^1.1.12", "@types/markdown-it-container": "^2.0.10", "tailwindcss": "^3.4.14" diff --git a/pages/articles/[...path].vue b/pages/articles/[...path].vue index ccfbe03..7f9c930 100644 --- a/pages/articles/[...path].vue +++ b/pages/articles/[...path].vue @@ -1,7 +1,7 @@