diff --git a/src/components/Loading/PageLoader.js b/src/components/Loading/PageLoader.js index 38fa4027..29a45fdd 100644 --- a/src/components/Loading/PageLoader.js +++ b/src/components/Loading/PageLoader.js @@ -1,10 +1,11 @@ // src/components/Loading/PageLoader.js import React from 'react'; import { Box, Spinner, Text, VStack } from '@chakra-ui/react'; +import { forumColors } from 'theme/forumTheme'; /** * 页面加载组件 - 用于路由懒加载的 fallback - * 优雅的加载动画,提升用户体验 + * 黑金主题:深色背景 + 金色 Spinner */ export default function PageLoader({ message = '加载中...' }) { return ( @@ -13,18 +14,17 @@ export default function PageLoader({ message = '加载中...' }) { display="flex" alignItems="center" justifyContent="center" - bg="gray.50" - _dark={{ bg: 'gray.900' }} + bg={forumColors.background.main} > - + {message}