Skip to content

Commit

Permalink
basic style for New Game button
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Steinke committed Feb 9, 2024
1 parent ec28f75 commit 6aff3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (g *ui) Render() app.UI {
g.Text = "Start a New Game"
}
gameStateText := app.Div().Class("game-state").Text(g.Text)
newGameButton := app.Button().Class("new-game").Text("New Game").OnClick(func(ctx app.Context, _ app.Event) {
newGameButton := app.Button().Class("simon-button").Body(app.Span().Text("New Game")).OnClick(func(ctx app.Context, _ app.Event) {
ctx.NewAction(newGame)
})
return app.Div().Class("fill", "background").Body(
Expand Down

0 comments on commit 6aff3d4

Please sign in to comment.