From 079b1f555e7cb20dd7d0ee3205aebfeaf26165b8 Mon Sep 17 00:00:00 2001 From: Li1304553726 <1304553726@qq.com> Date: Tue, 18 Nov 2025 17:01:45 +0800 Subject: [PATCH] 1 --- app/components/untils/Carousel.tsx | 15 ++++-- app/components/untils/FireNewsList.tsx | 63 ++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 app/components/untils/FireNewsList.tsx diff --git a/app/components/untils/Carousel.tsx b/app/components/untils/Carousel.tsx index 6f8ea42..bc6b333 100755 --- a/app/components/untils/Carousel.tsx +++ b/app/components/untils/Carousel.tsx @@ -11,6 +11,7 @@ import { CarouselPrevious, type CarouselApi, } from "@/ui/carousel"; +import FireNewsList from "./FireNewsList"; export function CarouselDemo() { const [api, setApi] = React.useState(); @@ -51,15 +52,12 @@ export function CarouselDemo() {
-
- -
@@ -71,6 +69,15 @@ export function CarouselDemo() { + {/* 要闻列表 - 右上角 */} +
+ + + + + +
+ {/* 分页指示器 - 右下角 */}
{Array.from({ length: count }).map((_, index) => ( diff --git a/app/components/untils/FireNewsList.tsx b/app/components/untils/FireNewsList.tsx new file mode 100644 index 0000000..a4712ca --- /dev/null +++ b/app/components/untils/FireNewsList.tsx @@ -0,0 +1,63 @@ +import React from 'react'; + +interface NewsItem { + content: string; +} + +const FireNewsList: React.FC = () => { + const newsItems: NewsItem[] = [ + { + content: "记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262万人次,支出达399.7亿元...", + }, + { + content: "记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262万人次,支出达399.7亿元...", + }, + { + content: "记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262万人次,支出达399.7亿元...", + }, + { + content: "记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262万人次,支出达399.7亿元...", + }, + { + content: "记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262万人次,支出达399.7亿元...", + }, + + ]; + + return ( +
+ {/* 标题栏 */} +
+

烽火要闻

+ + 查看更多 {'>'} + +
+ + {/* 新闻列表 */} +
+ {newsItems.map((item, index) => ( +
+ + {/* 内容部分 */} +
+

+ {item.content} + + [MORE] + +

+
+
+ ))} +
+
+ ); +}; + +export default FireNewsList; \ No newline at end of file