Skip to content

Commit 028b3b8

Browse files
committed
アイコン導入etc
1 parent 6094fd3 commit 028b3b8

File tree

5 files changed

+47
-121
lines changed

5 files changed

+47
-121
lines changed

web/app/faq/page.tsx

Lines changed: 38 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,47 @@
11
"use client";
22

3-
import { ArrowBack } from "@mui/icons-material";
4-
import { Box, IconButton, Typography } from "@mui/material";
5-
import { useRouter } from "next/navigation";
63
import Header from "~/components/Header";
4+
import TopNavigation from "~/components/common/TopNavigation";
75

86
export default function FAQ() {
9-
const router = useRouter();
10-
117
return (
12-
<Box
13-
sx={{
14-
padding: "20px",
15-
display: "flex",
16-
flexDirection: "column",
17-
position: "absolute",
18-
top: "56px",
19-
bottom: 0,
20-
left: 0,
21-
right: 0,
22-
overflowY: "auto",
23-
}}
24-
>
8+
<>
259
<Header title="よくある質問/FAQ" />
26-
<IconButton
27-
sx={{ position: "absolute", top: "20px", left: "20px" }}
28-
onClick={() => router.back()}
29-
>
30-
<ArrowBack />
31-
</IconButton>
32-
33-
<Box
34-
sx={{
35-
width: "100%",
36-
maxWidth: "600px",
37-
padding: "30px",
38-
textAlign: "left",
39-
}}
40-
>
41-
<Typography
42-
variant="h5"
43-
component="h1"
44-
gutterBottom
45-
sx={{ fontWeight: "bold", mb: "24px", textAlign: "center" }}
46-
>
47-
よくある質問
48-
</Typography>
49-
50-
<Typography
51-
variant="body1"
52-
paragraph
53-
sx={{ lineHeight: 1.8, mb: "16px" }}
54-
>
55-
<strong>Q: 東大生以外も利用できますか?</strong>
56-
<br />
57-
A:
58-
本サービスは東大生のみを対象としています。それゆえ、ECCSアカウントによるログインが必須です。他のGoogleアカウントではログインできません。
59-
</Typography>
60-
61-
<Typography
62-
variant="body1"
63-
paragraph
64-
sx={{ lineHeight: 1.8, mb: "16px" }}
65-
>
66-
<strong>Q: 授業登録機能はすべての学部に対応していますか?</strong>
67-
<br />
68-
A:
69-
本サービスの授業登録機能は前期教養学部のみに対応しており、今のところ後期学部には対応しておりません。
70-
</Typography>
71-
72-
<Typography
73-
variant="body1"
74-
paragraph
75-
sx={{ lineHeight: 1.8, mb: "16px" }}
76-
>
77-
<strong>Q: 収集された個人情報はどのように利用されますか?</strong>
78-
<br />
79-
A:
80-
収集した個人情報は、サインインおよびサービス提供の目的にのみ使用され、他の目的には使用されません。
81-
</Typography>
82-
83-
<Typography
84-
variant="body1"
85-
paragraph
86-
sx={{ lineHeight: 1.8, mb: "16px" }}
87-
>
88-
<strong>Q: 東大公式のアプリですか?</strong>
89-
<br />
90-
A:
91-
本サービスはut.code();によって運営されており、東京大学は運営に関与しておりません
92-
</Typography>
93-
</Box>
94-
</Box>
10+
<div className="absolute top-14 right-0 bottom-0 left-0 flex flex-column overflow-y-auto sm:top-16">
11+
<div className="flex flex-col p-2">
12+
<TopNavigation title="よくある質問" />
13+
<div className="w-full p-8 text-left">
14+
<p className="mb-4 leading-7">
15+
{/* TODO: この辺の構造を直す */}
16+
<strong>Q: 東大生以外も利用できますか?</strong>
17+
<br />
18+
A:
19+
本サービスは東大生のみを対象としています。それゆえ、ECCSアカウントによるログインが必須です。他のGoogleアカウントではログインできません。
20+
</p>
21+
22+
<p className="mb-4 leading-7">
23+
<strong>Q: 授業登録機能はすべての学部に対応していますか?</strong>
24+
<br />
25+
A:
26+
本サービスの授業登録機能は前期教養学部のみに対応しており、今のところ後期学部には対応しておりません。
27+
</p>
28+
29+
<p className="mb-4 leading-7">
30+
<strong>Q: 収集された個人情報はどのように利用されますか?</strong>
31+
<br />
32+
A:
33+
収集した個人情報は、サインインおよびサービス提供の目的にのみ使用され、他の目的には使用されません。
34+
</p>
35+
36+
<p className="mb-4 leading-7">
37+
<strong>Q: 東大公式のアプリですか?</strong>
38+
<br />
39+
A:
40+
本サービスはut.code();によって運営されており、東京大学は運営に関与しておりません
41+
</p>
42+
</div>
43+
</div>
44+
</div>
45+
</>
9546
);
9647
}

web/app/settings/contact/page.tsx

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,15 @@
1-
import { Box, Typography } from "@mui/material";
21
import { NavigateByAuthState } from "~/components/common/NavigateByAuthState";
32
import TopNavigation from "~/components/common/TopNavigation";
43

54
export default function Contact() {
65
return (
76
<NavigateByAuthState type="toLoginForUnauthenticated">
8-
<Box
9-
sx={{
10-
padding: "8px",
11-
display: "flex",
12-
flexDirection: "column",
13-
}}
14-
>
7+
<div className="flex flex-col p-2">
158
<TopNavigation title="お問い合わせ" />
16-
<Box
17-
sx={{
18-
width: "100%",
19-
padding: "30px",
20-
textAlign: "left",
21-
}}
22-
>
23-
<Typography sx={{ mb: "16px", lineHeight: "1.8" }}>
9+
<div className="w-full p-8 text-left">
10+
<p className="mb-4 leading-7">
2411
ご利用いただきありがとうございます。サービスに関するご意見やバグ報告がございましたら、以下のリンクからお問い合わせください。皆様のフィードバックは、サービスの改善に役立てさせていただきます。
25-
</Typography>
12+
</p>
2613
<a
2714
href="https://forms.gle/WvFTbsJoHjGp9Qt88"
2815
target="_blank"
@@ -31,8 +18,8 @@ export default function Contact() {
3118
>
3219
ご意見・バグ報告をする
3320
</a>
34-
</Box>
35-
</Box>
21+
</div>
22+
</div>
3623
</NavigateByAuthState>
3724
);
3825
}

web/app/settings/layout.tsx

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Box } from "@mui/material";
21
import BottomBar from "~/components/BottomBar";
32
import Header from "~/components/Header";
43

@@ -10,21 +9,9 @@ export default function SettingsPageLayout({
109
return (
1110
<>
1211
<Header title="設定/Settings" />
13-
<Box
14-
sx={{
15-
position: "absolute", // TODO: absolute 指定しない
16-
top: {
17-
xs: "56px",
18-
sm: "64px",
19-
},
20-
bottom: "56px",
21-
left: 0,
22-
right: 0,
23-
overflowY: "auto",
24-
}}
25-
>
12+
<div className="absolute top-14 right-0 bottom-14 left-0 overflow-y-auto sm:top-16">
2613
{children}
27-
</Box>
14+
</div>
2815
<BottomBar activeTab="3_settings" />
2916
</>
3017
);

web/bun.lockb

393 Bytes
Binary file not shown.

web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"react": "^18.2.0",
2323
"react-dom": "^18.2.0",
2424
"react-easy-crop": "^5.0.8",
25+
"react-icons": "^5.3.0",
2526
"socket.io-client": "^4.7.5",
2627
"swiper": "^11.1.14",
2728
"zod": "^3.23.8"

0 commit comments

Comments
 (0)