From 6f557d08dc69ee635c45390772b6b4e4001ca340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Wed, 16 Apr 2025 12:56:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Header.tsx | 2 +- src/pages/index/index.tsx | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 72e11cf..bfa1066 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -22,7 +22,7 @@ function Header(props) { } > - {props?.title || '标题'} + {props?.title || '标题'} ) diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index a195f10..c649e5f 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -44,6 +44,7 @@ function Home() { background: 'url(https://oss.wsdns.cn/20250413/defb52abb1414429930ae2727d2b8ff6.png)', backgroundSize: 'cover', color: '#fff', + height: screenWidth > 800 ? '80px' : '', }} fixed={true} onBackClick={() => { @@ -53,9 +54,10 @@ function Home() { - {website.websiteName} + 800 ? '20px' : '20px' }}>{website.websiteName} } > @@ -64,8 +66,8 @@ function Home() { className={'mt-8 p-2 py-3 w-full'} style={{ height: 'calc(100vh - 2rem)', - background: screenWidth > 390 ? 'url(https://oss.wsdns.cn/20250413/4650a6d214434159a5d6bf161c7a9367.png?x-oss-process=image/resize,m_fixed,w_2000/quality,Q_90) #fef2f2' : 'url(https://oss.wsdns.cn/20250413/4650a6d214434159a5d6bf161c7a9367.png?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90) #fef2f2', - backgroundSize: screenWidth > 390 ? 'cover' : '100%', + background: screenWidth > 800 ? 'url(https://oss.wsdns.cn/20250413/4650a6d214434159a5d6bf161c7a9367.png?x-oss-process=image/resize,m_fixed,w_2000/quality,Q_90) #fef2f2' : 'url(https://oss.wsdns.cn/20250413/4650a6d214434159a5d6bf161c7a9367.png?x-oss-process=image/resize,m_fixed,w_750/quality,Q_90) #fef2f2', + backgroundSize: screenWidth > 800 ? 'cover' : '100%', backgroundPosition: 'bottom', backgroundRepeat: 'no-repeat' }}> @@ -76,7 +78,7 @@ function Home() { return (
onNav(item)}>
- +
{item.title}
{item.comments}
@@ -95,7 +97,7 @@ function Home() { return (
onNav(item)}>
- +
{item.title}
{item.comments}