diff --git a/app/components/Carousel.tsx b/app/components/Carousel.tsx
index 8e01115..51c40f0 100755
--- a/app/components/Carousel.tsx
+++ b/app/components/Carousel.tsx
@@ -53,7 +53,7 @@ export function CarouselDemo() {
diff --git a/app/components/FireNews/FireNewsList.tsx b/app/components/FireNews/FireNewsList.tsx
index 77601c8..e9b7109 100644
--- a/app/components/FireNews/FireNewsList.tsx
+++ b/app/components/FireNews/FireNewsList.tsx
@@ -1,63 +1,99 @@
import React from 'react';
-interface NewsItem {
- content: string;
-}
-
export function FireNewsList() {
- 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亿元...",
- },
- {
- content: "记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262万人次,支出达399.7亿元...",
- },
- ];
+ const articles = [
+ {
+ date: { month: '11', day: '2025-02' },
+ title: '记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262人次,支出达399.7亿元...',
+ isHighlighted: false,
+ },
+ {
+ date: { month: '11', day: '2025-02' },
+ title: '记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262人次,支出达399.7亿元...',
+ isHighlighted: false,
+ },
+ {
+ date: { month: '11', day: '2025-02' },
+ title: '记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262人次,支出达399.7亿元...',
+ isHighlighted: false,
+ },
+ {
+ date: { month: '11', day: '2025-02' },
+ title: '记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262人次,支出达399.7亿元...',
+ isHighlighted: true,
+ },
+ {
+ date: { month: '11', day: '2025-02' },
+ title: '记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262人次,支出达399.7亿元...',
+ isHighlighted: true,
+ },
+ {
+ date: { month: '11', day: '2025-02' },
+ title: '记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262人次,支出达399.7亿元...',
+ isHighlighted: false,
+ },
+ {
+ date: { month: '11', day: '2025-02' },
+ title: '记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262人次,支出达399.7亿元...',
+ isHighlighted: true,
+ },
+ {
+ date: { month: '11', day: '2025-02' },
+ title: '记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262人次,支出达399.7亿元...',
+ isHighlighted: false,
+ },
+ {
+ date: { month: '11', day: '2025-02' },
+ title: '记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262人次,支出达399.7亿元...',
+ isHighlighted: false,
+ },
+ {
+ date: { month: '11', day: '2025-02' },
+ title: '记者从16日召开的海南省政府新闻发布会上获悉,2018年,海南旅游总收入达1,262人次,支出达399.7亿元...',
+ isHighlighted: false,
+ },
+ ];
return (
-
- {/* 标题栏 */}
-
+
+ {/* 文章列表 */}
+
+ {/* 标题栏 */}
+
- {/* 新闻列表 */}
-
- {newsItems.map((item, index) => (
-
- ))}
-
-
+ {/* 文章列表 */}
+
+ {articles.map((article, index) => (
+
+ {/* 左侧竖线和日期 */}
+
+
+
+
{article.date.month}
+
{article.date.day}
+
+
+ {/* 右侧文章内容 */}
+
+
+ ))}
+
+
+
);
};
diff --git a/app/components/FireNews/fhjt.tsx b/app/components/FireNews/fhjt.tsx
index c728b79..458d46f 100644
--- a/app/components/FireNews/fhjt.tsx
+++ b/app/components/FireNews/fhjt.tsx
@@ -1,16 +1,17 @@
import { CarouselDemo } from "../Carousel";
-import {FireNewsList} from "./FireNewsList";
+
export function FhjtPage() {
return(
-
+
{/* 轮播背景图 */}
-
-
+ {/* 白色遮罩层 - 覆盖被裁剪的部分 */}
+
+
{/* 标题部分 */}
烽火讲堂
diff --git a/app/components/FireNews/fhrx.tsx b/app/components/FireNews/fhrx.tsx
index bc0b108..5f52437 100644
--- a/app/components/FireNews/fhrx.tsx
+++ b/app/components/FireNews/fhrx.tsx
@@ -4,7 +4,7 @@ import {FireNewsList} from "./FireNewsList";
export function FhrxPage() {
return(
-
+
{/* 轮播背景图 */}
diff --git a/app/components/FireNews/fhws.tsx b/app/components/FireNews/fhws.tsx
index 4d2d440..30a65b7 100644
--- a/app/components/FireNews/fhws.tsx
+++ b/app/components/FireNews/fhws.tsx
@@ -4,16 +4,16 @@ import {FireNewsList} from "./FireNewsList";
export function FhwsPage() {
return(
-
+
{/* 标题部分 */}
-
+
{/* 列表 */}
-
+
一
diff --git a/app/components/news/header/Header.tsx b/app/components/news/header/Header.tsx
index 96d3624..c0af4ae 100644
--- a/app/components/news/header/Header.tsx
+++ b/app/components/news/header/Header.tsx
@@ -7,7 +7,7 @@ export function Header(){
// setInterval是 JavaScript 中的一个全局函数,用于重复执行代码
const timer = setInterval(() => {
setCurrentTime(new Date());
- }, 1000); // 每秒更新一次
+ }, 24*60*1000); // 每天更新一次
// 清理定时器
return () => clearInterval(timer);// 只在组件卸载时清理定时器
@@ -15,8 +15,8 @@ export function Header(){
return (
{/* 时间显示 只显示日期: "2025/3/15"*/}
diff --git a/app/routes/news.tsx b/app/routes/news.tsx
index 76a8479..844b68d 100755
--- a/app/routes/news.tsx
+++ b/app/routes/news.tsx
@@ -28,13 +28,17 @@ export default function Home() {
-
-
-
-
-
-
-
+
);
}
diff --git a/app/images/header.png b/public/images/header.png
similarity index 100%
rename from app/images/header.png
rename to public/images/header.png
diff --git a/public/images/jcdt.png b/public/images/jcdt.png
new file mode 100644
index 0000000..529c734
Binary files /dev/null and b/public/images/jcdt.png differ