From 4753a7b54dcad3d84e64abc5a8f1b0de0573405b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Thu, 21 May 2026 23:35:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=20Tailwind=20CSS=20=E9=87=8D=E5=86=99?= =?UTF-8?q?=20TextStatistics=20=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/TextStatistics/index.tsx | 78 ++++++++++------------------------ 1 file changed, 23 insertions(+), 55 deletions(-) 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} + +
))} -
- - +
+
+
); }