From a4533be2c1bea9e3796e54f25a5075587c0a796d 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:52:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=20Tailwind=20CSS=20=E9=87=8D=E5=86=99?= =?UTF-8?q?=20Jwt=20=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/Jwt/index.tsx | 114 ++++++++++++-------------------------------- 1 file changed, 31 insertions(+), 83 deletions(-) diff --git a/pages/Jwt/index.tsx b/pages/Jwt/index.tsx index 4238a8b..dbefd2d 100644 --- a/pages/Jwt/index.tsx +++ b/pages/Jwt/index.tsx @@ -1,7 +1,6 @@ import { useCallback, useMemo, useState } from 'react'; -import { Box, Container, Paper, Stack, Typography } from '@mui/material'; +import { Key } from 'lucide-react'; import { useSnackbar } from '@/components/GlobalSnackbar'; -import VpnKeyIcon from '@mui/icons-material/VpnKey'; import PageHeader from '@/components/PageHeader'; import { stringifyJson, parseJwt } from '@/utils/jwt'; import CopyButton from '@/components/CopyButton'; @@ -18,42 +17,25 @@ interface SectionProps { const Section = ({ title, content, color }: SectionProps) => { const { t } = useLazyTranslation('jwt'); return ( - - - +
+ {title} - - + +
- - - +
+
+
         {content ? stringifyJson(content) : t('jwt:invalidFormat')}
-      
-    
+      
+ ); }; @@ -77,15 +59,11 @@ export default function Index() { }, [jwtInput]); return ( - - - } - /> +
+
+ } /> - +
{/* Input Area */} {result && !result.error && ( - +
- - - +
+
+ {t('jwt:signatureTitle')} - + - - +
+ {result.signature || t('jwt:noSignature')} - - - + +
+
)} -
- - +
+
+
); }