@@ -37,7 +37,6 @@ interface Props {
3737 playAgain ?: ( ) => void
3838 simulateMaiaTime ?: boolean
3939 setSimulateMaiaTime ?: ( value : boolean ) => void
40- embedded ?: boolean
4140}
4241
4342export const HandBrainPlayControls : React . FC < Props > = ( {
@@ -54,7 +53,6 @@ export const HandBrainPlayControls: React.FC<Props> = ({
5453 playAgain,
5554 simulateMaiaTime,
5655 setSimulateMaiaTime,
57- embedded = false ,
5856} : Props ) => {
5957 const [ showResignConfirm , setShowResignConfirm ] = useState ( false )
6058
@@ -77,12 +75,8 @@ export const HandBrainPlayControls: React.FC<Props> = ({
7775 : 'Waiting for brain'
7876 : 'Waiting for opponent'
7977
80- const containerClasses = embedded
81- ? 'flex w-full flex-col'
82- : 'flex w-full flex-col overflow-hidden rounded-lg border border-glassBorder bg-glass backdrop-blur-md'
83-
8478 return (
85- < div className = { containerClasses } >
79+ < div className = "flex w-full flex-col" >
8680 < div id = "play-controls" className = "flex h-full flex-col" >
8781 { gameOver ? (
8882 < div className = "flex flex-col gap-3 p-4" >
@@ -94,23 +88,23 @@ export const HandBrainPlayControls: React.FC<Props> = ({
9488 '_blank' ,
9589 )
9690 } }
97- className = "flex items-center justify-center rounded-md border border-glassBorder bg-glass px-4 py-2 text-sm font-semibold text-white/90 transition-colors duration-200 hover:bg-glass-hover"
91+ className = "flex items-center justify-center rounded border border-glassBorder bg-glass px-4 py-2 text-sm font-semibold text-white/90 transition-colors duration-200 hover:bg-glass-hover"
9892 >
9993 ANALYZE GAME
10094 </ button >
10195 ) : null }
10296 { playAgain ? (
10397 < button
10498 onClick = { playAgain }
105- className = "flex w-full items-center justify-center rounded-md border border-glassBorder bg-glass px-4 py-2 text-sm font-semibold tracking-wide text-white/90 transition-colors duration-200 hover:bg-glass-hover"
99+ className = "flex w-full items-center justify-center rounded border border-glassBorder bg-glass px-4 py-2 text-sm font-semibold tracking-wide text-white/90 transition-colors duration-200 hover:bg-glass-hover"
106100 >
107101 PLAY AGAIN
108102 </ button >
109103 ) : null }
110104 </ div >
111105 ) : (
112106 < >
113- < div className = "border-b border-glassBorder bg-transparent px-4 py-3" >
107+ < div className = "bg-transparent px-4 py-3" >
114108 < div className = "space-y-1 text-center" >
115109 < p
116110 className = { `text-sm font-semibold uppercase tracking-wider ${
@@ -125,7 +119,7 @@ export const HandBrainPlayControls: React.FC<Props> = ({
125119 </ div >
126120 </ div >
127121
128- < div className = "border-b border-glassBorder bg-transparent px-4 py-4 " >
122+ < div className = "bg-transparent px-4 py-2 " >
129123 { isBrain ? (
130124 < div className = "flex flex-col gap-3" >
131125 < p className = "text-center text-xs font-semibold uppercase tracking-wide text-white/70" >
@@ -143,10 +137,10 @@ export const HandBrainPlayControls: React.FC<Props> = ({
143137 key = { p }
144138 onClick = { ( ) => selectPiece ( p ) }
145139 disabled = { ! isSelectable }
146- className = { `flex h-10 w-10 items-center justify-center rounded-md border transition-colors duration-200 md:h-12 md:w-12 ${
140+ className = { `flex h-10 w-10 items-center justify-center rounded transition-colors duration-200 md:h-12 md:w-12 ${
147141 isSelectable
148- ? 'border-glassBorder bg-white/10 hover:bg-white/15 '
149- : 'cursor-not-allowed border-transparent bg-white/5 opacity-40'
142+ ? 'border border -glassBorder bg-glass-strong hover:bg-glass-stronger '
143+ : 'cursor-not-allowed bg-glass opacity-40'
150144 } `}
151145 >
152146 < img
@@ -161,20 +155,20 @@ export const HandBrainPlayControls: React.FC<Props> = ({
161155 </ div >
162156 ) : (
163157 < div className = "flex flex-col items-center gap-3" >
164- < p className = "text-center text-xs font-semibold uppercase tracking-wide text-white/70" >
158+ < p className = "text-center text-xs font-medium uppercase tracking-wider text-white/70" >
165159 SELECTED PIECE
166160 </ p >
167161 < div className = "flex h-16 w-16 items-center justify-center" >
168162 { selectedPiece ? (
169- < div className = "flex items-center justify-center rounded-lg border border-glassBorder bg-white/10 p-2" >
163+ < div className = "flex items-center justify-center rounded border border-glassBorder bg-glass-strong p-2" >
170164 < img
171165 src = { `/assets/pieces/${ pieceColorMap [ color [ 0 ] + selectedPiece ] } .svg` }
172166 className = "h-12 w-12"
173167 alt = { pieceColorMap [ color [ 0 ] + selectedPiece ] }
174168 />
175169 </ div >
176170 ) : (
177- < div className = "flex h-12 w-12 items-center justify-center rounded-lg border border-dashed border-white/20 bg-white/5 " >
171+ < div className = "flex h-12 w-12 items-center justify-center rounded border border-dashed border-glassBorder bg-glass " >
178172 < span className = "text-xs text-white/40" > ...</ span >
179173 </ div >
180174 ) }
@@ -184,17 +178,17 @@ export const HandBrainPlayControls: React.FC<Props> = ({
184178 </ div >
185179
186180 { simulateMaiaTime !== undefined && setSimulateMaiaTime && (
187- < div className = "border-b border-glassBorder bg-transparent px-4 py-3" >
181+ < div className = "bg-transparent px-4 py-3" >
188182 < div className = "flex flex-col gap-2" >
189- < p className = "text-center text-xs font-semibold tracking-wider text-white/70" >
190- MAIA THINKING TIME
183+ < p className = "text-center text-xs font-medium uppercase tracking-wider text-white/70" >
184+ Maia Thinking Time
191185 </ p >
192- < div className = "flex overflow-hidden rounded-md border border-glassBorder bg-glass" >
186+ < div className = "flex overflow-hidden rounded border border-glassBorder bg-glass" >
193187 < button
194188 className = { `flex-1 px-3 py-1.5 text-xs font-medium transition-colors duration-200 ${
195189 ! simulateMaiaTime
196- ? 'bg-white/10 text-white'
197- : 'text-white/70 hover:bg-white/10 hover:text-white'
190+ ? 'bg-glass-stronger text-white'
191+ : 'text-white/70 hover:bg-glass-strong hover:text-white'
198192 } `}
199193 onClick = { ( ) => setSimulateMaiaTime ( false ) }
200194 >
@@ -203,8 +197,8 @@ export const HandBrainPlayControls: React.FC<Props> = ({
203197 < button
204198 className = { `flex-1 px-3 py-1.5 text-xs font-medium transition-colors duration-200 ${
205199 simulateMaiaTime
206- ? 'bg-white/10 text-white'
207- : 'text-white/70 hover:bg-white/10 hover:text-white'
200+ ? 'bg-glass-stronger text-white'
201+ : 'text-white/70 hover:bg-glass-strong hover:text-white'
208202 } `}
209203 onClick = { ( ) => setSimulateMaiaTime ( true ) }
210204 >
@@ -221,7 +215,7 @@ export const HandBrainPlayControls: React.FC<Props> = ({
221215 < button
222216 onClick = { offerDraw }
223217 disabled = { ! playerActive }
224- className = { `w-full rounded-md border border-glassBorder px-4 py-2 text-sm font-semibold transition-colors duration-200 ${
218+ className = { `w-full rounded border border-glassBorder px-4 py-2 text-sm font-semibold transition-colors duration-200 ${
225219 playerActive
226220 ? 'bg-glass text-white/90 hover:bg-glass-hover'
227221 : 'cursor-not-allowed bg-white/5 text-white/40'
0 commit comments