|
1 | 1 | "use client"; |
2 | 2 |
|
3 | | -import { Box, Typography } from "@mui/material"; |
4 | 3 | import { Navigation, Pagination } from "swiper/modules"; |
5 | 4 | import { Swiper, SwiperSlide } from "swiper/react"; |
6 | 5 | import "swiper/css"; |
@@ -42,68 +41,36 @@ const tutorialSteps = [ |
42 | 41 |
|
43 | 42 | export default function Tutorial() { |
44 | 43 | return ( |
45 | | - <Box |
46 | | - sx={{ |
47 | | - padding: "20px", |
48 | | - display: "flex", |
49 | | - flexDirection: "column", |
50 | | - position: "absolute", |
51 | | - top: "56px", |
52 | | - bottom: 0, |
53 | | - left: 0, |
54 | | - right: 0, |
55 | | - overflowY: "auto", |
56 | | - }} |
57 | | - > |
| 44 | + <div className="absolute inset-0 flex flex-col overflow-y-auto px-5 pt-14"> |
58 | 45 | <Header title="チュートリアル/Tutorial" /> |
59 | | - <Box |
60 | | - sx={{ |
61 | | - textAlign: "left", |
62 | | - }} |
63 | | - > |
| 46 | + <div className="text-left"> |
64 | 47 | <Swiper |
65 | 48 | modules={[Navigation, Pagination]} |
66 | 49 | spaceBetween={50} |
67 | 50 | slidesPerView={1} |
68 | 51 | navigation |
69 | 52 | pagination={{ clickable: true }} |
70 | | - style={{ |
71 | | - paddingBottom: "60px", |
72 | | - }} |
| 53 | + className="pb-16" |
73 | 54 | > |
74 | 55 | {tutorialSteps.map((step) => ( |
75 | 56 | <SwiperSlide key={step.imgPath}> |
76 | | - <Box sx={{ textAlign: "center", mb: "24px" }}> |
77 | | - <Typography |
78 | | - variant="h6" |
79 | | - component="h1" |
80 | | - gutterBottom |
81 | | - sx={{ fontWeight: "bold", mb: "16px" }} |
82 | | - > |
83 | | - {step.label} |
84 | | - </Typography> |
| 57 | + <div className="mb-6 text-center"> |
| 58 | + <h1 className="mb-4 font-bold text-lg">{step.label}</h1> |
85 | 59 | <img |
86 | 60 | src={step.imgPath} |
87 | 61 | alt={step.label} |
88 | | - style={{ |
89 | | - display: "block", |
90 | | - width: "60vw", |
91 | | - height: "calc(60vw·*·(667·/·375))", |
92 | | - maxWidth: 400, |
93 | | - overflow: "hidden", |
94 | | - margin: "auto", |
95 | | - }} |
| 62 | + className="mx-auto block h-auto w-[60vw] max-w-[400px]" |
96 | 63 | /> |
97 | | - </Box> |
| 64 | + </div> |
98 | 65 | </SwiperSlide> |
99 | 66 | ))} |
100 | 67 | </Swiper> |
101 | | - <Box sx={{ textAlign: "center" }}> |
| 68 | + <div className="text-center"> |
102 | 69 | <Link href="/home" className="btn btn-primary w-full"> |
103 | 70 | ホーム画面へ |
104 | 71 | </Link> |
105 | | - </Box> |
106 | | - </Box> |
107 | | - </Box> |
| 72 | + </div> |
| 73 | + </div> |
| 74 | + </div> |
108 | 75 | ); |
109 | 76 | } |
0 commit comments