From e31bbdf78e55e00065ed3d89dc758d27a80210ad Mon Sep 17 00:00:00 2001 From: Li1304553726 <1304553726@qq.com> Date: Tue, 18 Nov 2025 16:20:51 +0800 Subject: [PATCH] 1 --- app/components/untils/Carousel.tsx | 21 +++++++++++++++------ app/routes/news.tsx | 2 ++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/app/components/untils/Carousel.tsx b/app/components/untils/Carousel.tsx index e9eff99..6f8ea42 100755 --- a/app/components/untils/Carousel.tsx +++ b/app/components/untils/Carousel.tsx @@ -31,7 +31,7 @@ export function CarouselDemo() { }, [api]); return ( -
+
- + {Array.from({ length: totalSlides }).map((_, index) => ( - +
- - {index + 1} + +
+
+ +
+
diff --git a/app/routes/news.tsx b/app/routes/news.tsx index 15dc361..973aa4a 100755 --- a/app/routes/news.tsx +++ b/app/routes/news.tsx @@ -2,6 +2,7 @@ import { CarouselDemo } from "@/components/untils/Carousel"; import type { Route } from "./+types/news"; import { Header } from "@/components/header/Header"; import { TopNav } from "@/components/header/TopNav"; +import NewsList from "@/components/list/NewsList"; export function meta( ) { @@ -17,6 +18,7 @@ export default function Home() {
+
); }