Skip to content

Commit 329a6bf

Browse files
committed
チュートリアルのdaisyUI移行
1 parent 5394fbd commit 329a6bf

File tree

1 file changed

+11
-44
lines changed

1 file changed

+11
-44
lines changed

web/app/tutorial/page.tsx

Lines changed: 11 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client";
22

3-
import { Box, Typography } from "@mui/material";
43
import { Navigation, Pagination } from "swiper/modules";
54
import { Swiper, SwiperSlide } from "swiper/react";
65
import "swiper/css";
@@ -42,68 +41,36 @@ const tutorialSteps = [
4241

4342
export default function Tutorial() {
4443
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">
5845
<Header title="チュートリアル/Tutorial" />
59-
<Box
60-
sx={{
61-
textAlign: "left",
62-
}}
63-
>
46+
<div className="text-left">
6447
<Swiper
6548
modules={[Navigation, Pagination]}
6649
spaceBetween={50}
6750
slidesPerView={1}
6851
navigation
6952
pagination={{ clickable: true }}
70-
style={{
71-
paddingBottom: "60px",
72-
}}
53+
className="pb-16"
7354
>
7455
{tutorialSteps.map((step) => (
7556
<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>
8559
<img
8660
src={step.imgPath}
8761
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]"
9663
/>
97-
</Box>
64+
</div>
9865
</SwiperSlide>
9966
))}
10067
</Swiper>
101-
<Box sx={{ textAlign: "center" }}>
68+
<div className="text-center">
10269
<Link href="/home" className="btn btn-primary w-full">
10370
ホーム画面へ
10471
</Link>
105-
</Box>
106-
</Box>
107-
</Box>
72+
</div>
73+
</div>
74+
</div>
10875
);
10976
}

0 commit comments

Comments
 (0)