boardgame.io icon indicating copy to clipboard operation
boardgame.io copied to clipboard

What's the recommended technique of styling the lobby?

Open haoyangnz opened this issue 4 years ago • 5 comments

What's the recommended technique of styling the lobby? Say I want to hide the lobby once the game starts and just create a button to exit game

haoyangnz avatar Sep 15 '19 06:09 haoyangnz

@flamecoals @jasonharrison Any thoughts?

nicolodavis avatar Sep 15 '19 13:09 nicolodavis

There really isn't much you can customize in BGIO's current Lobby component.

You may want to handle customization like @flamecoals and I did with FreeBoardGame.org, writing the React components ourselves and using superagent to call BGIO's API endpoints.

https://github.com/freeboardgame/FreeBoardGame.org/blob/master/src/App/Lobby/LobbyService.ts https://github.com/freeboardgame/FreeBoardGame.org/tree/master/src/App/Lobby https://freeboardgame.org/

jasonharrison avatar Sep 16 '19 01:09 jasonharrison

@jasonharrison Thanks.

@nicolodavis If I write an improved lobby component would you be open to merging it as the new default, or to support a plugin system or some sort?

haoyangnz avatar Sep 16 '19 01:09 haoyangnz

Feel free to update the existing Lobby component to support styling.

nicolodavis avatar Sep 16 '19 01:09 nicolodavis

Just note that we're planning to eventually move the lobby implementation to Svelte (link), so try not to spend too much time on it or make it very React specific.

nicolodavis avatar Sep 16 '19 01:09 nicolodavis