diff --git a/pages/TextStatistics/index.tsx b/pages/TextStatistics/index.tsx index 2caa79e..313a439 100644 --- a/pages/TextStatistics/index.tsx +++ b/pages/TextStatistics/index.tsx @@ -1,8 +1,7 @@ import { useCallback, useMemo, useState } from 'react'; -import { alpha, Box, Container, Grid, Paper, Typography } from '@mui/material'; +import { FileText } from 'lucide-react'; import PageHeader from '@/components/PageHeader'; import TextInputArea from '@/components/TextInputArea'; -import DescriptionIcon from '@mui/icons-material/Description'; import { formatByteSize, getTextStats } from '@/utils/textStatistics'; import { textStatisticsPageStyles } from '@/config/pageTheme'; import { useLazyTranslation } from '@/utils/useLazyTranslation'; @@ -35,13 +34,13 @@ export default function Index() { ]; return ( - - +
+
{/* 头部区域 */} } + icon={} iconColor={textStatisticsPageStyles.primaryColor} /> @@ -57,58 +56,27 @@ export default function Index() { /> {/* 统计结果展示区域 */} - +
{statItems.map((item) => ( - - - `0 4px 12px ${alpha(textStatisticsPageStyles.primaryColor, 0.15)}`, - borderColor: textStatisticsPageStyles.primaryColor, - }, - lineHeight: 1.6, - fontSize: '0.9rem', - fontWeight: 600, - }} +
+ {item.label} + - - {item.label} - - - {item.value} - - - + {item.value} + +
))} -
- - +
+
+
); }