Merge branch 'm9/tutorial' into codex/owner/grp_discord_joke-app
This commit is contained in:
@@ -14,6 +14,7 @@ import type { GameUI } from '../games/types';
|
||||
import { sounds } from '../lib/feedback';
|
||||
import { ChatPanel, EmoteBubbles, useChatSeen } from '../components/ChatPanel';
|
||||
import { useWide } from '../lib/media';
|
||||
import { GameHelp } from '../components/GameHelp';
|
||||
|
||||
export default function RoomPage() {
|
||||
const { code = '' } = useParams();
|
||||
@@ -544,14 +545,21 @@ function GameView({ room, ui, me, players, pending, slow }: { room: RoomView; ui
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
// [?] 지금 할 수 있는 것 sits right next to the turn status (docs/07 §5).
|
||||
const statusRow = (
|
||||
<div className="row" style={{ flexWrap: 'nowrap', gap: 8, width: '100%', alignItems: 'stretch' }}>
|
||||
{status}
|
||||
<GameHelp room={room} ui={ui} title={gameName(room.gameId)} me={me.id} players={players} />
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<div className="game-layout">
|
||||
<div className="game-main">
|
||||
{!wide && status}
|
||||
{!wide && statusRow}
|
||||
<ui.Board {...props} />
|
||||
</div>
|
||||
<aside className="game-side" aria-label="게임 정보">
|
||||
{wide && status}
|
||||
{wide && statusRow}
|
||||
<ui.Side {...props} />
|
||||
{wide && !(ui.ownChat && (room.status === 'playing' || room.status === 'paused')) && <ChatPanel room={room} me={me} title={false} />}
|
||||
</aside>
|
||||
|
||||
@@ -4,6 +4,7 @@ import { TopBar } from '../components/ui';
|
||||
import { loadGameUI } from '../games/registry';
|
||||
import type { GameUI } from '../games/types';
|
||||
import { GameNotice, gameName } from '../components/GameNotice';
|
||||
import { QuickStartButton } from '../components/GameHelp';
|
||||
|
||||
export default function RulesPage() {
|
||||
const { gameId = '' } = useParams();
|
||||
@@ -18,6 +19,7 @@ export default function RulesPage() {
|
||||
<TopBar title={`${g?.nameKo ?? ''} 규칙`} onBack={() => nav(-1)} />
|
||||
<main className="page">
|
||||
<GameNotice gameId={gameId} />
|
||||
{ui && <QuickStartButton title={g.nameKo} cards={ui.quickStart} />}
|
||||
{ui === undefined ? <p className="muted">불러오는 중…</p> : ui ? <ui.Rules /> : <p>아직 준비 중인 게임이에요.</p>}
|
||||
</main>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user