From 3c6dd48b5b9ab72904040dd520bf7bdfc94a550d Mon Sep 17 00:00:00 2001 From: neon <18559658+neonsolstice@users.noreply.github.com> Date: Sat, 10 Oct 2026 17:17:12 +0000 Subject: [PATCH] style(books): add enchanted request button effects Give the missing-format action a wand and subtle accent glow to make it more inviting. Keep its status readable in narrow cards and honor reduced motion. --- client/src/assets/main.css | 22 +++++++++++++++++++ .../components/BookMissingFormatRequest.vue | 18 ++++++++++----- 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/client/src/assets/main.css b/client/src/assets/main.css index b3c4d4e97..5ff038b48 100644 --- a/client/src/assets/main.css +++ b/client/src/assets/main.css @@ -592,6 +592,28 @@ html[data-glow='off'] .glow-wrapper::after { } } + @keyframes request-shimmer { + from { + inset-inline-start: -70%; + } + to { + inset-inline-start: 140%; + } + } + + @keyframes request-wand { + 0%, + 100% { + transform: rotate(0deg); + } + 35% { + transform: rotate(-16deg); + } + 70% { + transform: rotate(10deg); + } + } + @keyframes shake { 0%, 100% { diff --git a/client/src/features/book-requests/components/BookMissingFormatRequest.vue b/client/src/features/book-requests/components/BookMissingFormatRequest.vue index c61be82c3..c3ac2831c 100644 --- a/client/src/features/book-requests/components/BookMissingFormatRequest.vue +++ b/client/src/features/book-requests/components/BookMissingFormatRequest.vue @@ -2,7 +2,7 @@ import { computed, toRef } from 'vue' import { useI18n } from 'vue-i18n' import { toast } from 'vue-sonner' -import { BookOpen, Check, Headphones, Library, Loader2, Users } from '@lucide/vue' +import { BookOpen, Check, Headphones, Library, Loader2, Users, WandSparkles } from '@lucide/vue' import { Permission, type BookDetail } from '@bookorbit/types' import { usePermissions } from '@/features/auth/composables/usePermissions' import { useBookRequestVisibility } from '../composables/useBookRequestVisibility' @@ -67,13 +67,13 @@ async function handleRequest() { -->