This commit is contained in:
Li1304553726 2025-11-18 15:31:37 +08:00
parent b50f2a5bf6
commit 65e97a3a24
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,7 @@
import { CarouselDemo } from "@/components/untils/Carousel"; import { CarouselDemo } from "@/components/untils/Carousel";
import type { Route } from "./+types/news"; import type { Route } from "./+types/news";
import { Header } from "@/components/header/Header";
import { TopNav } from "@/components/header/TopNav";
export function meta({}: Route.MetaArgs) { export function meta({}: Route.MetaArgs) {
@ -10,5 +12,11 @@ export function meta({}: Route.MetaArgs) {
} }
export default function Home() { export default function Home() {
return <CarouselDemo />; return (
<div>
<Header />
<TopNav />
<CarouselDemo />
</div>
);
} }

View File

@ -5,7 +5,7 @@ import useEmblaCarousel, {
import { ArrowLeft, ArrowRight } from "lucide-react" import { ArrowLeft, ArrowRight } from "lucide-react"
import { cn } from "@/lib/utils" import { cn } from "@/lib/utils"
import { Button } from "@/components/ui/button" import { Button } from "@/ui/button"
type CarouselApi = UseEmblaCarouselType[1] type CarouselApi = UseEmblaCarouselType[1]
type UseCarouselParameters = Parameters<typeof useEmblaCarousel> type UseCarouselParameters = Parameters<typeof useEmblaCarousel>