Skip to content

Commit 1dd0499

Browse files
committed
Settings の UI を調整
1 parent 496d017 commit 1dd0499

File tree

2 files changed

+36
-57
lines changed

2 files changed

+36
-57
lines changed

web/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
}
1010

1111
.cm-li-btn {
12-
@apply no-animation h-auto w-full justify-start rounded-none border-none bg-white px-4 py-4 text-left font-normal text-base shadow-none hover:bg-zinc-100 focus:bg-zinc-300;
12+
@apply no-animation h-auto w-full justify-start rounded-none border-none bg-white px-6 py-4 text-left font-normal text-base shadow-none hover:bg-zinc-100 focus:bg-zinc-300;
1313
}

web/app/settings/page.tsx

Lines changed: 35 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,48 @@
11
import Link from "next/link";
2+
import { MdChevronRight } from "react-icons/md";
23
import LogOutButton from "~/components/LogOutButton";
34
import { NavigateByAuthState } from "~/components/common/NavigateByAuthState";
5+
6+
function Item({
7+
href,
8+
title,
9+
}: {
10+
href: string;
11+
title: string;
12+
}) {
13+
return (
14+
<li>
15+
<Link href={href} className="btn cm-li-btn">
16+
<div className="flex w-full items-center justify-between">
17+
<span>{title}</span>
18+
<MdChevronRight className="text-2xl" />
19+
</div>
20+
</Link>
21+
</li>
22+
);
23+
}
24+
425
export default function Settings() {
526
return (
627
<NavigateByAuthState type="toLoginForUnauthenticated">
7-
<div className="flex flex-col items-center justify-start">
28+
<div className="flex flex-col justify-start">
29+
<h2 className="p-4 pb-2 text-gray-500 text-xs">基本情報</h2>
830
<ul className="w-full">
9-
<li>
10-
<Link href="/settings/profile" className="btn cm-li-btn">
11-
あなたのカード
12-
</Link>
13-
</li>
14-
<hr />
15-
<li>
16-
<Link href="/edit/interests" className="btn cm-li-btn">
17-
興味分野の設定
18-
</Link>
19-
</li>
20-
<hr />
21-
<li>
22-
<Link href="/tutorial" className="btn cm-li-btn">
23-
CourseMateの使い方
24-
</Link>
25-
</li>
26-
<hr />
27-
<li>
28-
<Link href="/settings/notification" className="btn cm-li-btn">
29-
運営からのお知らせ
30-
</Link>
31-
</li>
32-
<hr />
33-
<li>
34-
<Link href="/settings/contact" className="btn cm-li-btn">
35-
お問い合わせ
36-
</Link>
37-
</li>
38-
<hr />
39-
<li>
40-
<Link href="/faq" className="btn cm-li-btn">
41-
よくあるご質問
42-
</Link>
43-
</li>
44-
<hr />
45-
<li>
46-
<Link href="/settings/aboutUs" className="btn cm-li-btn">
47-
About Us
48-
</Link>
49-
</li>
50-
<hr />
51-
<li>
52-
<Link href="/settings/disclaimer" className="btn cm-li-btn">
53-
免責事項
54-
</Link>
55-
</li>
56-
<hr />
57-
<li>
58-
<Link href="/settings/delete" className="btn cm-li-btn">
59-
アカウント削除
60-
</Link>
61-
</li>
62-
<hr />
31+
<Item href="/settings/profile" title="あなたのカード" />
32+
<Item href="/edit/interests" title="興味分野の設定" />
33+
</ul>
34+
<h2 className="p-4 py-2 text-gray-500 text-xs">その他</h2>
35+
<ul className="w-full">
36+
<Item href="/tutorial" title="CourseMateの使い方" />
37+
<Item href="/settings/notification" title="運営からのお知らせ" />
38+
<Item href="/settings/contact" title="お問い合わせ" />
39+
<Item href="/faq" title="よくあるご質問" />
40+
<Item href="/settings/aboutUs" title="About Us" />
41+
<Item href="/settings/disclaimer" title="免責事項" />
42+
<Item href="/settings/delete" title="アカウント削除" />
6343
<li>
6444
<LogOutButton />
6545
</li>
66-
<hr />
6746
</ul>
6847
</div>
6948
</NavigateByAuthState>

0 commit comments

Comments
 (0)