From 3f72661411be338a8d086cf400f226003093858b Mon Sep 17 00:00:00 2001 From: jinsir <874871581@qq.com> Date: Thu, 20 Nov 2025 16:51:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?list=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/news/list/NewsList.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/components/news/list/NewsList.tsx b/app/components/news/list/NewsList.tsx index 955401f..9096912 100644 --- a/app/components/news/list/NewsList.tsx +++ b/app/components/news/list/NewsList.tsx @@ -14,8 +14,8 @@ const NewsItem: React.FC = ({ title = '', time = '', url = '' }) => { onClick={() => url && window.open(url)} // 点击时打开链接 className="flex items-center justify-between hover:text-blue-600 cursor-pointer transition duration-300 ease-in-out" > -

{title}

-

{time}

+

{title}

+

{time}

); @@ -28,7 +28,7 @@ const NewsList: React.FC = () => { const educationNews = mockNewsData.filter((news) => news.type === "教育"); return ( -
+
{/* 使用 Flexbox 将两个列表放在一行 */}
{/* 科技新闻 */} @@ -38,7 +38,7 @@ const NewsList: React.FC = () => {
科技新闻
-
@@ -63,7 +63,7 @@ const NewsList: React.FC = () => {
教育新闻
-
From 1c5428434d80b30798838767eaf673cbba531355 Mon Sep 17 00:00:00 2001 From: Li1304553726 <1304553726@qq.com> Date: Thu, 20 Nov 2025 17:51:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=AE=E6=92=AD?= =?UTF-8?q?=E5=9B=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../news/body/FireNews/FireNewsList.tsx | 2 +- .../news/body/FireNews/ImportantNews.tsx | 32 ++++++++++--------- app/components/news/body/ImageGridSection.tsx | 4 +-- app/components/news/header/TopNav.tsx | 2 +- 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/app/components/news/body/FireNews/FireNewsList.tsx b/app/components/news/body/FireNews/FireNewsList.tsx index dadf8e6..71d5d46 100644 --- a/app/components/news/body/FireNews/FireNewsList.tsx +++ b/app/components/news/body/FireNews/FireNewsList.tsx @@ -69,7 +69,7 @@ export function FireNewsList() {
{/* 文章列表 */} -
+
{articles.map((article, index) => (
{/* 左侧竖线和日期 */} diff --git a/app/components/news/body/FireNews/ImportantNews.tsx b/app/components/news/body/FireNews/ImportantNews.tsx index fec4d77..9734914 100644 --- a/app/components/news/body/FireNews/ImportantNews.tsx +++ b/app/components/news/body/FireNews/ImportantNews.tsx @@ -16,8 +16,8 @@ export function ImportantNews() { "/images/carousel-9.jpg", ]; - // 转换为 slides 格式 - const slides = carouselImages.map((imageUrl, index) => ({ + // 转换为 slides 格式 + const slides = carouselImages.map((imageUrl, index) => ({ key: `carousel-${index + 1}`, content: (
- {/* 轮播背景图 - 确保有明确尺寸 */} -
- +
+ {/* 轮播背景图 - 使用 aspect-ratio 或固定高度 */} +
{/* 或者设置固定高度 */} +
+ +
+ + {/* 固定的烽火要闻 */} +
+ +
+
- - {/* 固定的烽火要闻 */} -
- -
-
) } \ No newline at end of file diff --git a/app/components/news/body/ImageGridSection.tsx b/app/components/news/body/ImageGridSection.tsx index 1194639..e7934ad 100644 --- a/app/components/news/body/ImageGridSection.tsx +++ b/app/components/news/body/ImageGridSection.tsx @@ -65,11 +65,11 @@ const LearnPage = () => { {/* 顶部Logo区:使用背景图片方式展示logo,宽70高20 */}
-
+
{/* 左侧图片区:占据屏幕3/5的宽度 */}
{/* 使用grid布局来安排图片的位置 */} -
+
{/* 上左第一张图 */}
Image 1 diff --git a/app/components/news/header/TopNav.tsx b/app/components/news/header/TopNav.tsx index fd89bbb..5bbb160 100644 --- a/app/components/news/header/TopNav.tsx +++ b/app/components/news/header/TopNav.tsx @@ -59,7 +59,7 @@ export function TopNav({ return ( // 将组件宽度调整为1514px,并保持居中 -
+
{/* 搜索框与导航菜单组合 */}
{/* 导航菜单 */}