diff --git a/client/src/images/framed-phone-screenshot-2_resized.webp b/client/src/images/framed-phone-screenshot-2_resized.webp new file mode 100644 index 0000000..9558a5a Binary files /dev/null and b/client/src/images/framed-phone-screenshot-2_resized.webp differ diff --git a/client/src/images/framed-phone-screenshot_resized.webp b/client/src/images/framed-phone-screenshot_resized.webp new file mode 100644 index 0000000..6fa0a33 Binary files /dev/null and b/client/src/images/framed-phone-screenshot_resized.webp differ diff --git a/client/src/modules/game_creation/GameCreationStepManager.js b/client/src/modules/game_creation/GameCreationStepManager.js index 7dfb6b9..4d0b097 100644 --- a/client/src/modules/game_creation/GameCreationStepManager.js +++ b/client/src/modules/game_creation/GameCreationStepManager.js @@ -500,7 +500,7 @@ function showButtons (back, forward, forwardHandler, backHandler, builtGame = nu document.querySelector('#create-game')?.remove(); if (back) { const backButton = document.createElement('button'); - backButton.innerHTML = 'back'; + backButton.innerHTML = 'back'; backButton.addEventListener('click', backHandler); backButton.setAttribute('id', 'step-back-button'); backButton.classList.add('app-button'); @@ -509,7 +509,7 @@ function showButtons (back, forward, forwardHandler, backHandler, builtGame = nu if (forward && builtGame === null) { const fwdButton = document.createElement('button'); - fwdButton.innerHTML = 'next'; + fwdButton.innerHTML = 'next'; fwdButton.addEventListener('click', forwardHandler); fwdButton.setAttribute('id', 'step-forward-button'); fwdButton.classList.add('app-button'); diff --git a/client/src/scripts/home.js b/client/src/scripts/home.js index 3839f23..266855a 100644 --- a/client/src/scripts/home.js +++ b/client/src/scripts/home.js @@ -46,9 +46,7 @@ function attemptToJoinGame (event) { } else { res.json().then(json => { window.location = window.location.protocol + '//' + window.location.host + - '/join/' + encodeURIComponent(json.accessCode) + - '?playerCount=' + encodeURIComponent(json.playerCount) + - '&timer=' + encodeURIComponent(getTimeString(json.timerParams)); + '/join/' + encodeURIComponent(json.accessCode); }); } }).catch(() => { @@ -62,29 +60,6 @@ function attemptToJoinGame (event) { } } -function getTimeString (timerParams) { - let timeString = ''; - if (timerParams) { - const hours = timerParams.hours; - const minutes = timerParams.minutes; - if (hours) { - timeString += hours > 1 - ? hours + ' hours ' - : hours + ' hour '; - } - if (minutes) { - timeString += minutes > 1 - ? minutes + ' minutes ' - : minutes + ' minute '; - } - - return timeString; - } else { - timeString = 'untimed'; - return timeString; - } -} - if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { module.exports = home; } else { diff --git a/client/src/styles/GLOBAL.css b/client/src/styles/GLOBAL.css index 2441968..da05940 100644 --- a/client/src/styles/GLOBAL.css +++ b/client/src/styles/GLOBAL.css @@ -15,6 +15,7 @@ th, thead, tr, tt, u, ul, var { @font-face { font-family: 'signika-negative'; src: url("../webfonts/SignikaNegative-Light.woff2") format("woff2"); + font-display: swap; } html { diff --git a/client/src/view_templates/CreateTemplate.js b/client/src/view_templates/CreateTemplate.js index f7473a3..c7d1053 100644 --- a/client/src/view_templates/CreateTemplate.js +++ b/client/src/view_templates/CreateTemplate.js @@ -36,9 +36,9 @@ export const hiddenMenus =