From 6cf92b685176121ad0183f81b57861c103a64065 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Thu, 4 Dec 2025 17:35:43 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E9=A6=96=E9=A1=B5=E6=95=B4=E4=BD=93?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8=E7=BC=A9=E5=B0=8F=E7=BA=A6=2067%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - useHomeResponsive: 标题尺寸 4xl→2xl,正文 xl→md - HomePage: VStack/SimpleGrid 间距缩小 - HeroHeader: spacing/padding 缩小,maxW 调整 - FeaturedFeatureCard: 图标、标题、按钮尺寸缩小 - FeatureCard: 卡片高度 180→120px,整体元素尺寸缩小 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/hooks/useHomeResponsive.ts | 18 +++++------ src/views/Home/HomePage.tsx | 8 ++--- src/views/Home/components/FeatureCard.tsx | 32 +++++++++---------- .../Home/components/FeaturedFeatureCard.tsx | 28 ++++++++-------- src/views/Home/components/HeroHeader.tsx | 8 ++--- 5 files changed, 47 insertions(+), 47 deletions(-) diff --git a/src/hooks/useHomeResponsive.ts b/src/hooks/useHomeResponsive.ts index 5a2f7f76..c803e7df 100644 --- a/src/hooks/useHomeResponsive.ts +++ b/src/hooks/useHomeResponsive.ts @@ -18,21 +18,21 @@ export const useHomeResponsive = (): ResponsiveConfig => { }); const headingSize = useBreakpointValue({ - base: 'xl', - md: '3xl', - lg: '4xl' + base: 'lg', + md: 'xl', + lg: '2xl' }); const headingLetterSpacing = useBreakpointValue({ - base: '-1px', - md: '-1.5px', - lg: '-2px' + base: '-0.5px', + md: '-1px', + lg: '-1.5px' }); const heroTextSize = useBreakpointValue({ - base: 'md', - md: 'lg', - lg: 'xl' + base: 'xs', + md: 'sm', + lg: 'md' }); const containerPx = useBreakpointValue({ diff --git a/src/views/Home/HomePage.tsx b/src/views/Home/HomePage.tsx index ef50e489..13695984 100644 --- a/src/views/Home/HomePage.tsx +++ b/src/views/Home/HomePage.tsx @@ -91,7 +91,7 @@ const HomePage: React.FC = () => { { /> {/* 核心功能面板 */} - - + + {/* 特色功能卡片 - 新闻中心 */} { {/* 其他功能卡片 */} {regularFeatures.map((feature) => ( diff --git a/src/views/Home/components/FeatureCard.tsx b/src/views/Home/components/FeatureCard.tsx index c026f734..838901ca 100644 --- a/src/views/Home/components/FeatureCard.tsx +++ b/src/views/Home/components/FeatureCard.tsx @@ -34,51 +34,51 @@ export const FeatureCard: React.FC = ({ backdropFilter="blur(10px)" border="1px solid" borderColor="whiteAlpha.200" - borderRadius={{ base: 'xl', md: '2xl' }} + borderRadius={{ base: 'lg', md: 'xl' }} transition="all 0.3s ease" _hover={{ bg: 'whiteAlpha.200', borderColor: `${feature.color}.400`, - transform: 'translateY(-4px)', - shadow: '2xl' + transform: 'translateY(-3px)', + shadow: 'xl' }} _active={{ bg: 'whiteAlpha.200', borderColor: `${feature.color}.400`, - transform: 'translateY(-2px)' + transform: 'translateY(-1px)' }} onClick={() => onClick(feature)} - minH={{ base: 'auto', md: '180px' }} + minH={{ base: 'auto', md: '120px' }} cursor="pointer" > - - + + - {feature.icon} + {feature.icon} {feature.badge} - - + + {feature.title} {feature.description} @@ -87,11 +87,11 @@ export const FeatureCard: React.FC = ({