From 15ca8a953e2d06d915579dcaab199b0878f2e948 Mon Sep 17 00:00:00 2001 From: shari-sushi Date: Wed, 6 Nov 2024 11:56:45 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=8A=E7=9F=A5=E3=82=89=E3=81=9Bmodal?= =?UTF-8?q?=E3=81=AEui=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../myapp/src/features/notice/notice.tsx | 52 +++++++++++-------- t0016Next/myapp/src/styles/tailwiind.js | 5 +- 2 files changed, 34 insertions(+), 23 deletions(-) diff --git a/t0016Next/myapp/src/features/notice/notice.tsx b/t0016Next/myapp/src/features/notice/notice.tsx index 62e3cfa..ef9194f 100644 --- a/t0016Next/myapp/src/features/notice/notice.tsx +++ b/t0016Next/myapp/src/features/notice/notice.tsx @@ -1,4 +1,3 @@ -import { ToClickTW } from "@/styles/tailwiind"; import Link from "next/link"; import { useState } from "react"; @@ -21,7 +20,6 @@ export const TopPageNotice = () => {
  • {NoticeItems[0].content}
  • {NoticeItems[1].content}
  • -
  • {NoticeItems[2].content}
  • {isDisplay && ( @@ -32,19 +30,26 @@ export const TopPageNotice = () => { />
    -
    -
    お知らせ全件
    -
    - {NoticeItems.map((item) => ( -
  • {item.content}
  • - ))} -
    +
    + お知らせ全件 +
    + +
    + {NoticeItems.map((item) => ( +
    +
    {item.data} :
    +
    {item.content}
    +
    + ))}
    { setIsDisplay(false); }} @@ -73,40 +78,43 @@ const NoticeLink = ({ }; type NoticeItem = { - id: string; + data: string; content: React.ReactNode; }; const NoticeItems: NoticeItem[] = [ { - id: "notice-2024-10-22", - content: "10/20~10/22におけるサイトが不安定な問題の解決 (10/23)", + data: "2024-11-05", + content: "お知らせ表示方法の変更 : 「?」をクリックで全件表示", + }, + { + data: "2024-10-22", + content: "10/20~10/22におけるサイトが不安定な問題の解決", }, - { - id: "notice-2024-10-18", + data: "2024-10-18", content: ( <> 「ログイン」 - ページのデザインとエラー表示の改善、ログインできない不具合の修正 (10/18) + ページのデザインとエラー表示の改善、ログインできない不具合の修正 ), }, { - id: "notice-2024-06-03", + data: "2024-06-03", content: ( <> 「カラオケ」 - ページの検索機能を強化 (6/3) + ページの検索機能を強化 ), }, { - id: "notice-2024-05-30", + data: "2024-05-30", content: ( <> 「妹望おいも」 - 誕生日(5/30) + 誕生日 ), }, diff --git a/t0016Next/myapp/src/styles/tailwiind.js b/t0016Next/myapp/src/styles/tailwiind.js index c7cde09..8c68fc0 100644 --- a/t0016Next/myapp/src/styles/tailwiind.js +++ b/t0016Next/myapp/src/styles/tailwiind.js @@ -32,7 +32,10 @@ export const ToClickTW = { regular: "bg-[#776D5C] hover:bg-[#575044] hover:cursor-pointer text-white font-semibold rounded-md p-1", formButton: - "bg-[#B7A692] text-white font-semibold rounded-md p-1 text-center shadow-sm shadow-black shadow-black hover:shadow-inner hover:shadow-lg hover:shadow-[#FFF6E4]", + "bg-[#B7A692] text-white font-semibold rounded-md p-1 shadow-sm shadow-black hover:shadow-inner hover:shadow-[#FFF6E4]", + textSize: "bg-[#776D5C] text-white font-semibold rounded-md", + nomarlButton: + "bg-[#776D5C] text-white font-semibold rounded-md p-1 shadow-sm shadow-black hover:shadow-inner hover:shadow-[#FFF6E4]", textSize: "bg-[#776D5C] text-white font-semibold rounded-md", choice: "md:hover:bg-[#657261] border border-[#575044] text-white font-semibold " +