|
1 | 1 | "use client"; |
2 | 2 |
|
3 | | -import { Navigation, Pagination } from "swiper/modules"; |
| 3 | +import { Navigation } from "swiper/modules"; |
4 | 4 | import { Swiper, SwiperSlide } from "swiper/react"; |
5 | 5 | import "swiper/css"; |
6 | 6 | import "swiper/css/navigation"; |
7 | 7 | import "swiper/css/pagination"; |
8 | | -import Link from "next/link"; |
9 | | -import Header from "~/components/Header"; |
10 | 8 |
|
11 | 9 | const tutorialSteps = [ |
12 | 10 | { |
@@ -41,36 +39,26 @@ const tutorialSteps = [ |
41 | 39 |
|
42 | 40 | export default function Tutorial() { |
43 | 41 | return ( |
44 | | - <div className="absolute inset-0 flex flex-col overflow-y-auto px-5 pt-14"> |
45 | | - <Header title="チュートリアル/Tutorial" /> |
46 | | - <div className="text-left"> |
47 | | - <Swiper |
48 | | - modules={[Navigation, Pagination]} |
49 | | - spaceBetween={50} |
50 | | - slidesPerView={1} |
51 | | - navigation |
52 | | - pagination={{ clickable: true }} |
53 | | - className="pb-16" |
54 | | - > |
55 | | - {tutorialSteps.map((step) => ( |
56 | | - <SwiperSlide key={step.imgPath}> |
57 | | - <div className="mb-6 text-center"> |
58 | | - <h1 className="mb-4 font-bold text-lg">{step.label}</h1> |
59 | | - <img |
60 | | - src={step.imgPath} |
61 | | - alt={step.label} |
62 | | - className="mx-auto block h-auto w-[60vw] max-w-[400px]" |
63 | | - /> |
64 | | - </div> |
65 | | - </SwiperSlide> |
66 | | - ))} |
67 | | - </Swiper> |
68 | | - <div className="text-center"> |
69 | | - <Link href="/home" className="btn btn-primary w-full"> |
70 | | - ホーム画面へ |
71 | | - </Link> |
72 | | - </div> |
73 | | - </div> |
| 42 | + <div className="h-full "> |
| 43 | + <Swiper |
| 44 | + modules={[Navigation]} |
| 45 | + spaceBetween={50} |
| 46 | + slidesPerView={1} |
| 47 | + navigation |
| 48 | + > |
| 49 | + {tutorialSteps.map((step) => ( |
| 50 | + <SwiperSlide key={step.imgPath}> |
| 51 | + <div className="text-center "> |
| 52 | + <h1 className="m-6 font-bold text-3xl">{step.label}</h1> |
| 53 | + <img |
| 54 | + src={step.imgPath} |
| 55 | + alt={step.label} |
| 56 | + className="mx-auto block h-auto w-[60vw] max-w-[400px] " |
| 57 | + /> |
| 58 | + </div> |
| 59 | + </SwiperSlide> |
| 60 | + ))} |
| 61 | + </Swiper> |
74 | 62 | </div> |
75 | 63 | ); |
76 | 64 | } |
0 commit comments