diff --git a/web/app/settings/notification/page.tsx b/web/app/settings/notification/page.tsx new file mode 100644 index 00000000..7afda68c --- /dev/null +++ b/web/app/settings/notification/page.tsx @@ -0,0 +1,53 @@ +import { NavigateByAuthState } from "~/components/common/NavigateByAuthState"; +import TopNavigation from "~/components/common/TopNavigation"; + +// Notification型を定義 +type Notification = { + date: string; // お知らせの日付 (例: "2024-12-15") + title: string; // お知らせのタイトル (例: "システムメンテナンスのお知らせ") + content: string; // お知らせの内容 (例: "2024年12月20日午後2時より...") +}; + +// お知らせリスト +const notifications: Notification[] = [ + { + date: "2024-12-28", + title: "CourseMate Ver2.0.0リリースのお知らせ", + content: "検索機能など、新たな機能を実装しました。ぜひご活用ください。", + }, + { + date: "2024-10-9", + title: "CourseMate Ver1.0.1リリースのお知らせ", + content: "授業登録モーダルにおいて、授業IDを追加しました。", + }, + { + date: "2024-10-1", + title: "CourseMate リリースのお知らせ", + content: "CourseMateがリリースされました!ぜひご活用ください。", + }, +]; + +// 日付の降順(最近の順)で並べ替え +const sortedNotifications = notifications.sort( + (a, b) => new Date(b.date).getTime() - new Date(a.date).getTime(), +); + +export default function Notification() { + return ( + +
+ + +
    + {sortedNotifications.map((notification) => ( +
  • +

    {notification.title}

    +

    {notification.date}

    +

    {notification.content}

    +
  • + ))} +
+
+
+ ); +} diff --git a/web/app/settings/page.tsx b/web/app/settings/page.tsx index abf97e34..287c2452 100644 --- a/web/app/settings/page.tsx +++ b/web/app/settings/page.tsx @@ -1,7 +1,6 @@ import Link from "next/link"; import LogOutButton from "~/components/LogOutButton"; import { NavigateByAuthState } from "~/components/common/NavigateByAuthState"; - export default function Settings() { return ( @@ -19,6 +18,12 @@ export default function Settings() {
+
  • + + 運営からのお知らせ + +
  • +
  • お問い合わせ @@ -27,7 +32,7 @@ export default function Settings() {
  • - よくある質問 + よくあるご質問