From 6a4b575ee2969f827d0e7628f101e782179b7806 Mon Sep 17 00:00:00 2001 From: ld3zian <42660576+ld3z@users.noreply.github.com> Date: Sun, 19 Jan 2025 21:20:38 -0700 Subject: [PATCH] fix light mode --- package-lock.json | 23 +++++++++ package.json | 1 + src/components/ComicCard.astro | 93 +++++++++++++++++++++------------- 3 files changed, 83 insertions(+), 34 deletions(-) diff --git a/package-lock.json b/package-lock.json index 51a0a97..4b6e19f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "@astrojs/rss": "^4.0.11", "@astrojs/tailwind": "^5.1.0", "@astrojs/vercel": "^8.0.2", + "@floating-ui/dom": "^1.6.3", "astro": "^5.1.6", "tailwindcss": "^3.4.1" } @@ -939,6 +940,28 @@ "node": ">=12" } }, + "node_modules/@floating-ui/core": { + "version": "1.6.9", + "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.9.tgz", + "integrity": "sha512-uMXCuQ3BItDUbAMhIXw7UPXRfAlOAvZzdK9BWpE60MCn+Svt3aLn9jsPTi/WNGlRUu2uI0v5S7JiIUsbsvh3fw==", + "dependencies": { + "@floating-ui/utils": "^0.2.9" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.6.13", + "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.13.tgz", + "integrity": "sha512-umqzocjDgNRGTuO7Q8CU32dkHkECqI8ZdMZ5Swb6QAM0t5rnlrN3lGo1hdpscRd3WS8T6DKYK4ephgIH9iRh3w==", + "dependencies": { + "@floating-ui/core": "^1.6.0", + "@floating-ui/utils": "^0.2.9" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.9.tgz", + "integrity": "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==" + }, "node_modules/@img/sharp-darwin-arm64": { "version": "0.33.5", "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz", diff --git a/package.json b/package.json index 5fb8f93..c185ada 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@astrojs/rss": "^4.0.11", "@astrojs/tailwind": "^5.1.0", "@astrojs/vercel": "^8.0.2", + "@floating-ui/dom": "^1.6.3", "astro": "^5.1.6", "tailwindcss": "^3.4.1" } diff --git a/src/components/ComicCard.astro b/src/components/ComicCard.astro index 1c98086..121b49f 100644 --- a/src/components/ComicCard.astro +++ b/src/components/ComicCard.astro @@ -39,8 +39,10 @@ const coverUrl = comic.md_comics.md_covers[0]