diff --git a/client/src/modules/GameStateRenderer.js b/client/src/modules/GameStateRenderer.js index cbbcddc..b27c1b5 100644 --- a/client/src/modules/GameStateRenderer.js +++ b/client/src/modules/GameStateRenderer.js @@ -50,7 +50,9 @@ export class GameStateRenderer { const time = document.getElementById('game-time'); const playerCount = document.getElementById('game-player-count'); + const gameCode = document.getElementById('game-code'); playerCount.innerText = getGameSize(this.stateBucket.currentGameState.deck) + ' Players'; + gameCode.innerHTML = 'Or enter this code on the homepage: ' + this.stateBucket.currentGameState.accessCode + ''; let timeString = ''; if (this.stateBucket.currentGameState.timerParams) { diff --git a/client/src/modules/Templates.js b/client/src/modules/Templates.js index 8cbac2d..40dce19 100644 --- a/client/src/modules/Templates.js +++ b/client/src/modules/Templates.js @@ -1,33 +1,34 @@ export const templates = { LOBBY: - "
" + - '
' + - "" + - "" + - '
' + - "
" + - '
' + - "clock" + - "
" + - '
' + - '
' + - "person" + - "
" + - '
' + - '
' + - '
' + - "
' + - '
' + - '
' + - "
" + - "" + - "
" + - '
' + - "' + - '
', + `
+
+ + +
+
+
+
+ clock +
+
+
+ person +
+
+
+
+ +
+
+
+
+ +
+
+ +
`, ENTER_NAME_STEP: `
@@ -35,238 +36,238 @@ export const templates = {
`, START_GAME_PROMPT: - "
" + - "" + - '
', + `
+ +
`, END_GAME_PROMPT: - "
" + - "" + - '
', + `
+ +
`, PLAYER_GAME_VIEW: - "
" + - '
' + - "" + - "
" + - '
' + - '
' + - "
' + - '
' + - "' + - "
" + - '

Click to show your role

' + - '

(click again to hide)

' + - '
' + - "
" + - "" + - "
" + - '
', + `
+
+ +
+
+
+ +
+
+ +
+

Click to show your role

+

(click again to hide)

+
+
+ +
+
`, SPECTATOR_GAME_VIEW: - "
" + - '
' + - "" + - "
" + - '
' + - '
' + - "
' + - '
' + - "
" + - "" + - "
" + - '
', + `
+
+ +
+
+
+ +
+
+
+ +
+
`, MODERATOR_GAME_VIEW: - "" + - "' + - "
" + - "
" + - '
' + - "" + - "
" + - '
' + - "
" + '
' + - '
' + - "" + - '
' + - "
' + - '
' + - '
' + - "" + - "
" + - "
" + - "" + - "
" + - '
' + - "
" + - "" + - "
" + - '
' + - '
' + - '
', + ` + +
+
+
+ +
+
+
+
+ +
+ +
+
+
+ +
+
+ +
+
+
+ +
+
+
+
`, TEMP_MOD_GAME_VIEW: - "" + - "' + - "
" + - "
" + - '
' + - "" + - "
" + - '
' + - "
" + '
' + - '
' + - '
' + - "
' + - '
' + - "' + - "
" + - '

Click to show your role

' + - '

(click again to hide)

' + - '
' + - "
" + - "" + - "
" + - '
' + - '', + ` + +
+
+
+ +
+
+
+
+
+ +
+
+ +
+

Click to show your role

+

(click again to hide)

+
+
+ +
+
+ `, MODERATOR_PLAYER: - '
' + - "
" + - "
" + - '
' + - "
" + - "" + - "" + - '
', + `
+
+
+
+
+ + +
`, GAME_PLAYER: - '
' + - "
" + - "
" + - '
', + `
+
+
+
`, INITIAL_GAME_DOM: - "
" + - "
" + - "" + - "
" + - "
" + - "
" + - '
' + - '
' + - "
", + `
+
+ +
+
+
+
+
+
`, // via https://loading.io/css/ SPINNER: - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
' + - '
', + `
+
+
+
+
+
+
+
+
+
+
+
+
+
`, NAME_CHANGE_MODAL: - "" + - "', + ` + `, ROLE_INFO_MODAL: - "" + - "', + ` + `, END_OF_GAME_VIEW: - '

The moderator has ended the game. Roles are revealed.

' + - "
" + - '
' + - "
' + - '
' + - "" + - "" + - '' + - '
' + - '
' + - "
" + - "" + - "
" + - '
', + `

The moderator has ended the game. Roles are revealed.

+
+
+ +
+
+ + + +
+
+
+ +
+
`, CREATE_GAME_DECK: - "
" + - '
' + - "" + - "
" + - '
' + - '
' + - "" + - "
" + - '
' + - '
', + `
+
+ +
+
+
+ +
+
+
`, CREATE_GAME_CUSTOM_ROLES: - '
' + - '' + - '' + - '' + - '
' + - '' + - '
', + `
+ + + +
+ +
`, CREATE_GAME_DECK_STATUS: - '
' + - '
0 Players
' + - '
' + - '
', + `
+
0 Players
+
+
`, DECK_SELECT_ROLE: - '
' + - '
' + - 'include' + - 'info' + - 'edit' + - 'remove' + - '
' + `
+
+ include + info + edit + remove +
` }; diff --git a/client/src/styles/game.css b/client/src/styles/game.css index c2c93d7..5af7aed 100644 --- a/client/src/styles/game.css +++ b/client/src/styles/game.css @@ -128,6 +128,16 @@ h1 { transition: background-color 0.2s; max-width: 20em; } +#game-code { + color: whitesmoke; + margin-top: 5px; +} + +#game-code span { + font-family: "Courier New", monospace; + color: #21ba45; + font-size: 20px; +} #game-link > div { white-space: nowrap;