refactor(glass): 批次1 - 迁移全局组件使用统一毛玻璃配置

迁移以下 10 个组件使用 glassConfig.ts 统一配置:
- GlassCard: GLASS_BLUR/GLASS_SHADOW 替换硬编码 blur/glow
- SubTabContainer: GLASS_BLUR.lg 替换 blur(20px)
- HomeNavbar: GLASS_BLUR.sm 替换 blur(10px)
- AuthModalManager: GLASS_BLUR.sm 替换 blur(10px)
- WechatRegister: GLASS_BLUR.xs 替换 blur(4px)
- SubscriptionModal: GLASS_BLUR.xs 替换 blur(4px)
- SubscriptionContentNew: GLASS_BLUR.sm/lg/xl 替换多处硬编码
- ImageLightbox: GLASS_BLUR.sm 替换 blur(10px)
- ImagePreviewModal: GLASS_BLUR.sm 替换 blur(10px)
- FuiContainer: GLASS_BLUR.md 替换 blur(16px)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-25 16:18:55 +08:00
parent 3865f7778f
commit 3c47fb5176
10 changed files with 31 additions and 21 deletions

View File

@@ -18,6 +18,7 @@ import {
} from '@chakra-ui/react';
import { ChevronLeft, ChevronRight, Download, ZoomIn, ZoomOut } from 'lucide-react';
import { motion, AnimatePresence } from 'framer-motion';
import { GLASS_BLUR } from '@/constants/glassConfig';
const MotionBox = motion(Box);
@@ -195,7 +196,7 @@ const ImagePreviewModal = ({ isOpen, onClose, images = [], initialIndex = 0 }) =
borderRadius="full"
px="6"
py="3"
backdropFilter="blur(10px)"
backdropFilter={GLASS_BLUR.sm}
zIndex="2"
>
<HStack spacing="4">
@@ -255,7 +256,7 @@ const ImagePreviewModal = ({ isOpen, onClose, images = [], initialIndex = 0 }) =
borderRadius="md"
px="4"
py="2"
backdropFilter="blur(10px)"
backdropFilter={GLASS_BLUR.sm}
>
<Text color="whiteAlpha.800" fontSize="xs">
快捷键: 切换 | + - 缩放 | ESC 关闭