first prototype

This commit is contained in:
2026-09-27 09:52:00 +02:00
parent 4635199a41
commit 6d011d474f
109 changed files with 6354 additions and 507 deletions
@@ -0,0 +1,22 @@
import type { Suit } from '../../api/types'
import { SUIT_NAMES, SUITS } from '../../util/cards'
import styles from './TrumpPicker.module.css'
interface TrumpPickerProps {
onChoose: (suit: Suit) => void
}
export function TrumpPicker({ onChoose }: TrumpPickerProps) {
return (
<div className={styles.panel}>
<p className={styles.question}>A wizard was turned up — choose the trump suit.</p>
<div className={styles.suits}>
{SUITS.map((suit) => (
<button key={suit} type="button" className={`${styles.suit} ${styles[suit]}`} onClick={() => onChoose(suit)}>
{SUIT_NAMES[suit]}
</button>
))}
</div>
</div>
)
}