boardgame.io
boardgame.io copied to clipboard
What's the recommended technique of styling the lobby?
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
@flamecoals @jasonharrison Any thoughts?
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 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?
Feel free to update the existing Lobby component to support styling.
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.