diff --git a/app/components/news/body/ImageGridSection.tsx b/app/components/news/body/ImageGridSection.tsx index 3279d8f..85d8d87 100644 --- a/app/components/news/body/ImageGridSection.tsx +++ b/app/components/news/body/ImageGridSection.tsx @@ -1,7 +1,9 @@ -import { CarouselDemo } from '@/components/Carousel'; +import { CarouselDemo } from '@/components/Carousel'; // 导入轮播图组件 import React from 'react'; +// LearnPage 组件定义 const LearnPage = () => { + // 新闻列表数据,用于显示在右侧新闻列表区 const newsList = [ '中华人民共和国监察法', '2024年国办印发意见部门工作人员党听全国两...', @@ -13,101 +15,82 @@ const LearnPage = () => { '"选择中国"——世界从中国两会读出心动机号', '中国经济信心说丨新玛合信心从哪里来', ]; - + {/* 弹性 默认纵向 大屏横向 */} return (
+ {/* 页面主容器,宽度为页面的5/6,并且水平居中 */}
- {/* 顶部 Logo */} -
-

学习进行时

-
- - {/* 主内容区:固定高度,紧凑布局 */} -
- {/* 左侧图片区 */} -
-
- {/* 上左:第一张图 */} -
- Image 1 -
- - {/* 上右:轮播图 */} -
- -
- - {/* 下三图 */} - {[3, 4, 6].map((i) => ( -
- {`Image + {/* 顶部Logo区:使用背景图片方式展示logo,宽70高20 */} +
+ +
+ {/* 左侧图片区:占据屏幕3/5的宽度 */} +
+ {/* 使用grid布局来安排图片的位置 */} +
+ {/* 上左第一张图 */} +
+ Image 1
- ))} + + {/* 上右轮播图 */} +
+ +
+ + {/* 下三图:动态渲染 */} + {[3, 4, 6].map((i) => ( +
+ {`Image +
+ ))} +
+
+ + {/* 右侧新闻列表:占据屏幕剩余2/5的宽度 */} +
+
    + {newsList.map((item, index) => ( +
  • + + {item} +
  • + ))} +
- - {/* 右侧新闻列表 */} -
-
    - {newsList.map((item, index) => ( -
  • - - {item} -
  • - ))} -
+ {/* 底部两个特色区域,分别展示书籍信息 */} +
+ {/* 左边书籍区域 */} +
+
+ {/* 左边容器内的文本内容 */} +
+

+ 习近平新时代中国特色社会主义思想专题数据库 +

+
+
+ + {/* 右边书籍区域 */} +
+
+ {/* 右边容器内的文本内容 */} +
+

习近平著作选读

+
+
-
-
-
-
- {/* 左边容器内容 */} -
-

- 习近平新时代中国特色社会 -
- 主义思想专题数据库 -

-
-
-
-
- {/* 右边容器内容 */} -
-

习近平著作选读

-
-
-
+
+ + {/* 烽火动态部分,使用特殊clip-path样式实现独特形状 */} +
+
+
烽火动态
+
-
-
-
烽火动态
-
-
); }; -export default LearnPage; \ No newline at end of file +export default LearnPage; \ No newline at end of file diff --git a/public/images/learn.png b/public/images/learn.png new file mode 100644 index 0000000..db05395 Binary files /dev/null and b/public/images/learn.png differ