diff --git a/components/AIChatWidget.tsx b/components/AIChatWidget.tsx index ace8d62..9f7db06 100644 --- a/components/AIChatWidget.tsx +++ b/components/AIChatWidget.tsx @@ -15,56 +15,16 @@ import { useState, useEffect, useRef } from 'react' import { useSession } from 'next-auth/react' import Image from 'next/image' -import { useThemeStyles, cn } from '@/lib/ui-styles' - -// 添加动画样式 -const shimmerStyle = ` - @keyframes shimmer { - 0% { background-position: -200% 0; } - 100% { background-position: 200% 0; } - } - - @keyframes breathe { - 0%, 100% { - filter: blur(15px) brightness(0.7); - transform: scale(1); - } - 50% { - filter: blur(12px) brightness(0.8); - transform: scale(1.02); - } - } -` +import { cn } from '@/lib/ui-styles' // 图片加载占位符组件 const ImageLoadingPlaceholder = () => { return ( -
- {/* 动态模糊背景 */} -
-
-
- - {/* 中心图标 */} +
-
- {/* 旋转的光圈 */} -
- {/* 中心图标 */} -
- - - -
-
-

正在生成图片...

-

AI正在为您创作中

+
+

图片处理中

@@ -83,7 +43,6 @@ interface Message { } export default function AIChatWidget() { - const styles = useThemeStyles() const { data: session } = useSession() const [isOpen, setIsOpen] = useState(false) const [messages, setMessages] = useState([]) @@ -405,41 +364,39 @@ export default function AIChatWidget() { return (
- {/* AI聊天窗口 - 苹果风格 */} + {/* AI聊天窗口 */} {isOpen && ( <> -