diff --git a/app/(auth)/(routes)/login/page.tsx b/app/(auth)/(routes)/login/page.tsx index 22fd4f1..2fa9df5 100644 --- a/app/(auth)/(routes)/login/page.tsx +++ b/app/(auth)/(routes)/login/page.tsx @@ -11,7 +11,7 @@ export const metadata: Metadata = { export default function LoginPage() { return ( <> -

ログイン

+

ログイン

diff --git a/app/(auth)/(routes)/register/page.tsx b/app/(auth)/(routes)/register/page.tsx index 26fa7f6..1a7c911 100644 --- a/app/(auth)/(routes)/register/page.tsx +++ b/app/(auth)/(routes)/register/page.tsx @@ -19,9 +19,7 @@ export default async function RegisterPage() { return ( <> -

- ユーザー情報登録 -

+

ユーザー情報登録

ユーザーIDと名前を決めてください。
diff --git a/app/(auth)/(routes)/sign-up/page.tsx b/app/(auth)/(routes)/sign-up/page.tsx index 60b7c84..4ba5d87 100644 --- a/app/(auth)/(routes)/sign-up/page.tsx +++ b/app/(auth)/(routes)/sign-up/page.tsx @@ -9,7 +9,7 @@ export const metadata: Metadata = { export default function SignUpPage() { return ( <> -

新規登録

+

新規登録

既にアカウントをお持ちの方は diff --git a/app/(lp)/page.tsx b/app/(lp)/page.tsx index f40b0e2..91490d9 100644 --- a/app/(lp)/page.tsx +++ b/app/(lp)/page.tsx @@ -126,16 +126,12 @@ export default function LandingPage() {

{/* 機能紹介 */}
-

- 主な機能 -

+

主な機能

{features.map((feature, index) => ( -

- {feature.title} -

+

{feature.title}

{feature.description}

@@ -146,18 +142,14 @@ export default function LandingPage() { {/* 使用方法 */}
-

- 使い方 -

+

使い方

{steps.map((step) => (
-
+
{step.number}
-

- {step.title} -

+

{step.title}

{step.description}

))} @@ -168,9 +160,7 @@ export default function LandingPage() { {/* FAQ */}
-

- よくある質問 -

+

よくある質問

diff --git a/app/(main)/(components)/Appbar/Avatar/Menu/index.tsx b/app/(main)/(components)/Appbar/Avatar/Menu/index.tsx index 215f055..339a5d6 100644 --- a/app/(main)/(components)/Appbar/Avatar/Menu/index.tsx +++ b/app/(main)/(components)/Appbar/Avatar/Menu/index.tsx @@ -39,8 +39,8 @@ export function AppbarAvatarMenu({ className="h-14 gap-2" textValue={`${name}@${displayId}`} > -

{name}

-

@{displayId}

+

{name}

+

@{displayId}

フレンド diff --git a/app/(main)/(routes)/matches/(components)/MatchCard/index.tsx b/app/(main)/(routes)/matches/(components)/MatchCard/index.tsx index 6d7b0d3..0e280fa 100644 --- a/app/(main)/(routes)/matches/(components)/MatchCard/index.tsx +++ b/app/(main)/(routes)/matches/(components)/MatchCard/index.tsx @@ -20,7 +20,7 @@ export function MatchCard({ match, userId }: { match: Match; userId: string }) {
-

{displayDate}

+

{displayDate}

{match.players.map((player) => ( @@ -33,7 +33,7 @@ export function MatchCard({ match, userId }: { match: Match; userId: string }) {
平均着順
-
+
{data.averageRank?.toFixed(2) ?? "なし"}
@@ -47,7 +47,7 @@ export function MatchCard({ match, userId }: { match: Match; userId: string }) { {match.rule.playersCount === 4 && 4位} - + {data.rankCounts[0]} {data.rankCounts[1]} diff --git a/app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchTable/(components)/GameRow/index.tsx b/app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchTable/(components)/GameRow/index.tsx index ade11da..cf90538 100644 --- a/app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchTable/(components)/GameRow/index.tsx +++ b/app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchTable/(components)/GameRow/index.tsx @@ -5,16 +5,16 @@ import { GameUpdateModal, useGameUpdateModal } from "../GameUpdateModal"; export function GameRow({ index, - className, children, matchId, gameId, + style, }: { index: number; - className?: string; children: React.ReactNode; matchId: string; gameId: string; + style?: React.CSSProperties; }) { const gameUpdateModal = useGameUpdateModal(); return ( @@ -22,8 +22,9 @@ export function GameRow({ {children} diff --git a/app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchTable/index.tsx b/app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchTable/index.tsx index e7913ca..8eec431 100644 --- a/app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchTable/index.tsx +++ b/app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchTable/index.tsx @@ -1,4 +1,5 @@ import classNames from "classnames"; +import { CSSProperties } from "react"; import { Icon } from "@/components/Icon"; import { serverServices } from "@/lib/services/server"; import { MatchPlayer } from "@/lib/type"; @@ -6,7 +7,6 @@ import { ChipModalTrigger } from "../ChipModal"; import { GameModalTrigger } from "../GameModal"; import { PlayersModalTrigger } from "../PlayersModal"; import { GameRow } from "./(components)/GameRow"; -import styles from "./styles.module.css"; type Column = { id: string; @@ -67,150 +67,121 @@ export async function MatchTable({ ), })) ?? []; + const rowStyle: CSSProperties = { + display: "grid", + gridTemplateColumns: `46px repeat(${columns.length}, minmax(80px, 1fr))`, + width: "100%", + }; + return ( -
- -
+
+ {/* ヘッダー */} + +
+ {columns.map((column) => ( +
+ {column.name} +
+ ))} + + {/* ボディ */} +
+ {gameRows.length === 0 && ( +

+ まだデータはありません +

)} - /> - {columns.map((column) => ( -
- {column.type === "player" && ( - {column.name} - )} -
- ))} - -
- {gameRows.length === 0 && ( -

- まだデータはありません -

- )} - {gameRows.length > 0 && ( -
    - {gameRows.map((item, index) => ( -
  1. - + {gameRows.length > 0 && + gameRows.map((item, index) => ( + +
    + {index + 1} +
    + {columns.map((column) => (
    - {index + 1} + {item.players[column.id]}
    - {columns.map((column) => ( -
    - {item.players[column.id]} -
    - ))} -
    -
  2. + ))} + ))} -
- )} - } - variant="ghost" - isPlayersShort={isPlayersShort} - > - 結果を入力する - -
-
-
-
} + variant="ghost" + isPlayersShort={isPlayersShort} > - 合計 -
- {columns.map((column) => ( -
- {column.totalScore} -
- ))} + 結果を入力する +
- -
- チップ -
- {columns.map((column) => ( -
- {column.chipCount} - {column.chipCount !== null && } + {/* フッター */} +
+
+
+ 合計
- ))} - -
-
- 収支 + {columns.map((column) => ( +
+ {column.totalScore} +
+ ))}
- {columns.map((column) => ( -
- {column.result} - + +
+ チップ
- ))} + {columns.map((column) => ( +
+ {column.chipCount} + {column.chipCount !== null && ( + + )} +
+ ))} +
+
+
+ 収支 +
+ {columns.map((column) => ( +
+ {column.result} + +
+ ))} +
diff --git a/app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchTable/styles.module.css b/app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchTable/styles.module.css deleted file mode 100644 index c2c1e2d..0000000 --- a/app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchTable/styles.module.css +++ /dev/null @@ -1,23 +0,0 @@ -.row { - @apply flex; -} - -.col { - @apply flex-1 flex items-center justify-center; -} - -.col--index { - @apply basis-[46px] grow-0 shrink-0 text-default-500; -} - -.col--header { - @apply h-10 whitespace-nowrap px-1 text-left align-middle text-tiny font-semibold; -} - -.col--body { - @apply px-1 py-2 align-middle text-small font-normal; -} - -.col--footer { - @apply h-10 whitespace-nowrap px-1 align-middle text-tiny font-semibold; -} diff --git a/app/(main)/(routes)/matches/(routes)/[matchId]/page.tsx b/app/(main)/(routes)/matches/(routes)/[matchId]/page.tsx index 18eac07..78b40af 100644 --- a/app/(main)/(routes)/matches/(routes)/[matchId]/page.tsx +++ b/app/(main)/(routes)/matches/(routes)/[matchId]/page.tsx @@ -21,14 +21,14 @@ export default async function Match({ return ( -
+
{/* TODO: fetch */} - {/*

{displayDate}

*/} + {/*

{displayDate}

*/}