button color changes
This commit is contained in:
parent
272b39915c
commit
39d4e138a9
@ -139,7 +139,7 @@ const Home: FunctionComponent<{ initial?: number }> = ({ initial = 0 }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const renderNewGameButton = () => {
|
const renderNewGameButton = () => {
|
||||||
const newGame = <Button text={context.texts.NewGame} color="white" onClick={newGameClick} />
|
const newGame = <Button text={context.texts.NewGame} color="#005f73" onClick={newGameClick} />
|
||||||
if (userKeyWhoLeave) {
|
if (userKeyWhoLeave) {
|
||||||
return newGame
|
return newGame
|
||||||
}
|
}
|
||||||
@ -166,11 +166,12 @@ const Home: FunctionComponent<{ initial?: number }> = ({ initial = 0 }) => {
|
|||||||
position: "absolute",
|
position: "absolute",
|
||||||
bottom: "0px",
|
bottom: "0px",
|
||||||
left: "0px",
|
left: "0px",
|
||||||
padding: "15px 15px 5px 5px",
|
padding: "15px ",
|
||||||
borderTopRightRadius: "1vw",
|
borderTopRightRadius: "1vw",
|
||||||
minWidth: "10vw",
|
minWidth: "10vw",
|
||||||
minHeight: "1vw",
|
minHeight: "1vw",
|
||||||
background: "grey"
|
background: "#2F2504",
|
||||||
|
color : "white",
|
||||||
}}>
|
}}>
|
||||||
{connectionStateText()}
|
{connectionStateText()}
|
||||||
</div>}
|
</div>}
|
||||||
@ -186,7 +187,7 @@ const Home: FunctionComponent<{ initial?: number }> = ({ initial = 0 }) => {
|
|||||||
<h1 style={{ margin: "10px 0px" }}>{context.texts.Mancala}</h1>
|
<h1 style={{ margin: "10px 0px" }}>{context.texts.Mancala}</h1>
|
||||||
<div>
|
<div>
|
||||||
{renderNewGameButton()}
|
{renderNewGameButton()}
|
||||||
{game && !userKeyWhoLeave && !crashMessage && < Button color="white" text={context.texts.Leave} onClick={leaveGame} />}
|
{game && !userKeyWhoLeave && !crashMessage && < Button color="#005f73" text={context.texts.Leave} onClick={leaveGame} />}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -8,6 +8,7 @@ const Button: FunctionComponent<{ text: String,onClick: () => void, color: stri
|
|||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
style={{
|
style={{
|
||||||
background: color,
|
background: color,
|
||||||
|
color : "white",
|
||||||
margin: "5px",
|
margin: "5px",
|
||||||
padding: "10px",
|
padding: "10px",
|
||||||
border : "none",
|
border : "none",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user