From e3502d9e649fe61bb0ba4046b2c23c0d78bc92e9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 11 Aug 2024 20:17:25 +0900 Subject: feat(frontend): tweak dashboard style --- frontend/app/components/NavigateLink.tsx | 2 +- frontend/app/routes/dashboard.tsx | 60 ++++++++++++++++++-------------- 2 files changed, 34 insertions(+), 28 deletions(-) (limited to 'frontend') diff --git a/frontend/app/components/NavigateLink.tsx b/frontend/app/components/NavigateLink.tsx index a94d774..b749cea 100644 --- a/frontend/app/components/NavigateLink.tsx +++ b/frontend/app/components/NavigateLink.tsx @@ -4,7 +4,7 @@ export default function NavigateLink(props: LinkProps) { return ( ); } diff --git a/frontend/app/routes/dashboard.tsx b/frontend/app/routes/dashboard.tsx index ec01a1c..4c751d9 100644 --- a/frontend/app/routes/dashboard.tsx +++ b/frontend/app/routes/dashboard.tsx @@ -38,34 +38,40 @@ export default function Dashboard() {

試合

-
    - {games.map((game) => ( -
  • -
    - - {game.display_name} - - - {game.game_type === "multiplayer" ? " (マルチ)" : " (1v1)"} - -
    - - {game.state === "closed" || game.state === "finished" ? ( - - 入室 + {games.length === 0 ? ( +

    エントリーしている試合はありません

    + ) : ( +
      + {games.map((game) => ( +
    • +
      + + {game.display_name} - ) : ( - - 入室 - - )} - -
    • - ))} -
    + + {game.game_type === "multiplayer" + ? " (マルチ)" + : " (1v1)"} + +
+ + {game.state === "closed" || game.state === "finished" ? ( + + 入室 + + ) : ( + + 入室 + + )} + + + ))} + + )}
-- cgit v1.2.3-70-g09d2