From c8f3bfc74d06ca4a09803bf6cc3563e5e464064e Mon Sep 17 00:00:00 2001
From: Li1304553726 <1304553726@qq.com>
Date: Thu, 20 Nov 2025 08:35:59 +0800
Subject: [PATCH 1/3] 1
---
app/components/news/footer/footer.tsx | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/app/components/news/footer/footer.tsx b/app/components/news/footer/footer.tsx
index 6282f6f..edc3d4a 100644
--- a/app/components/news/footer/footer.tsx
+++ b/app/components/news/footer/footer.tsx
@@ -8,39 +8,39 @@ const Footer: React.FC = () => {
>
{/* 主标题 */}
{/* 版权声明 */}
-
+
免责声明:免责条款的提出必须是明示的,不允许以默示方式作出,也不允许法官推定免责条款的存在。
-
+
版权所有:Copyright©2016-2019 包图网ibaotu.com 版权所有
{/* 导航链接 */}
From 4d1105d1db2f78bead7a9a29245eecab6f4cc6d8 Mon Sep 17 00:00:00 2001
From: qiuchenfan <2035024011@qq.com>
Date: Thu, 20 Nov 2025 09:57:11 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E6=B3=9B=E5=8C=96=E8=BD=AE=E6=92=AD?=
=?UTF-8?q?=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../news/body/FireNews/ImportantNews.tsx | 29 ++++++++++++++++++-
app/components/untils/CarouselPreset.tsx | 16 +++++-----
2 files changed, 36 insertions(+), 9 deletions(-)
diff --git a/app/components/news/body/FireNews/ImportantNews.tsx b/app/components/news/body/FireNews/ImportantNews.tsx
index 9feff88..5aace90 100644
--- a/app/components/news/body/FireNews/ImportantNews.tsx
+++ b/app/components/news/body/FireNews/ImportantNews.tsx
@@ -3,11 +3,38 @@ import {FireNewsList} from "./FireNewsList";
import { CarouselPreset } from "@/components/untils/CarouselPreset";
export function ImportantNews() {
+ // 定义所有轮播图片路径
+ const carouselImages = [
+ "/images/carousel-1.jpg",
+ "/images/carousel-2.jpg",
+ "/images/carousel-3.jpg",
+ "/images/carousel-4.jpg",
+ "/images/carousel-5.jpg",
+ "/images/carousel-6.jpg",
+ "/images/carousel-7.jpg",
+ "/images/carousel-8.jpg",
+ "/images/carousel-9.jpg",
+ ];
+
+ // 转换为 slides 格式
+ const slides = carouselImages.map((imageUrl, index) => ({
+ key: `carousel-${index + 1}`,
+ content: (
+
+ ),
+ }));
+
return(
{/* 轮播背景图 - 确保有明确尺寸 */}
-
+
{/* 固定的烽火要闻 */}
diff --git a/app/components/untils/CarouselPreset.tsx b/app/components/untils/CarouselPreset.tsx
index a9a7c6f..53da3dd 100644
--- a/app/components/untils/CarouselPreset.tsx
+++ b/app/components/untils/CarouselPreset.tsx
@@ -17,14 +17,14 @@ type Slide = {
}
type CarouselPresetProps = {
- slides: Slide[]
- autoplayDelay?: number
- showControls?: boolean
- showIndicators?: boolean
- indicatorVariant?: "dot" | "pill"
- className?: string
- contentClassName?: string
- itemClassName?: string
+ slides: Slide[] //传入的轮播项
+ autoplayDelay?: number //自动轮播的间隔,默认为3000
+ showControls?: boolean //是否显示左右切换按钮
+ showIndicators?: boolean //是否显示底部的分页指示器
+ indicatorVariant?: "dot" | "pill" //分页指示器的样式,默认为"dot",dot圆点,pill小胶囊
+ className?: string // 作用在最外层容器,用来定制整体尺寸/布局
+ contentClassName?: string //作用在内部的 CarouselContent 容器,可自定义内层排列方式(例如圆角、阴影等)
+ itemClassName?: string //作用在每个 CarouselItem 上,调整单个 slide 的额外样式(比如内边距、宽高)
}
export function CarouselPreset({
From 9b2103b0d626f7225614d4811acd517f21e92cbb Mon Sep 17 00:00:00 2001
From: qiuchenfan <2035024011@qq.com>
Date: Thu, 20 Nov 2025 10:17:43 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=AD=A6=E4=B9=A0?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=8B=E6=8D=A2=E7=BA=BF=EF=BC=8C=E5=9C=86?=
=?UTF-8?q?=E7=82=B9=E4=B8=8E=E6=A0=87=E9=A2=98=E5=B1=85=E4=B8=AD=E5=AF=B9?=
=?UTF-8?q?=E9=BD=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/components/news/body/ImageGridSection.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/components/news/body/ImageGridSection.tsx b/app/components/news/body/ImageGridSection.tsx
index a3f8d51..bdb5ff5 100644
--- a/app/components/news/body/ImageGridSection.tsx
+++ b/app/components/news/body/ImageGridSection.tsx
@@ -64,10 +64,10 @@ const LearnPage = () => {
{newsList.map((item, index) => (
•
- {item}
+ {item}
))}