diff --git a/config/politictalk.parallelglobe.io-config.js b/config/politictalk.parallelglobe.io-config.js index 777c2fc..bd4a378 100644 --- a/config/politictalk.parallelglobe.io-config.js +++ b/config/politictalk.parallelglobe.io-config.js @@ -766,6 +766,7 @@ var config = { // Disables profile and the edit of all fields from the profile settings (display name and email) // disableProfile: false, + disableProfile: true, // Hides the email section under profile settings. // hideEmailInSettings: false, @@ -802,6 +803,7 @@ var config = { // When 'true', the user cannot edit the display name. // (Mainly useful when used in conjunction with the JWT so the JWT name becomes read only.) // readOnlyName: false, + readOnlyName: true, // If etherpad integration is enabled, setting this to true will // automatically open the etherpad when a participant joins. This @@ -1498,14 +1500,12 @@ var config = { }, // Options related to the breakout rooms feature. - // breakoutRooms: { - // // Hides the add breakout room button. This replaces `hideAddRoomButton`. - // hideAddRoomButton: false, - // // Hides the auto assign participants button. - // hideAutoAssignButton: false, - // // Hides the join breakout room button. - // hideJoinRoomButton: false, - // }, + breakoutRooms: { + // PoliticTalk uses one moderated room only. + hideAddRoomButton: true, + hideAutoAssignButton: true, + hideJoinRoomButton: true + }, // When true, virtual background feature will be disabled. // disableVirtualBackground: false, diff --git a/local/custom-config.js b/local/custom-config.js index 7f621c0..c9a3c60 100644 --- a/local/custom-config.js +++ b/local/custom-config.js @@ -17,6 +17,8 @@ config.startWithVideoMuted = true; config.disableSelfView = true; config.disableSelfViewSettings = true; config.disableLocalVideoFlip = true; +config.disableProfile = true; +config.readOnlyName = true; config.disableChat = false; config.disablePolls = false; @@ -67,6 +69,12 @@ config.participantsPane = { hideMuteAllButton: false }; +config.breakoutRooms = { + hideAddRoomButton: true, + hideAutoAssignButton: true, + hideJoinRoomButton: true +}; + config.e2ee = { externallyManagedKey: false, disabled: false, diff --git a/web/plugin.head.html b/web/plugin.head.html index b6fa775..cdaaf3e 100644 --- a/web/plugin.head.html +++ b/web/plugin.head.html @@ -19,6 +19,85 @@ width: 100%; } + html.politictalk-direct-access-blocked, + html.politictalk-direct-access-blocked body { + background: #202424 !important; + min-height: 100%; + } + + html.politictalk-direct-access-blocked #react { + display: none !important; + } + + .politictalk-direct-access { + align-items: center; + background: rgba(13, 15, 16, 0.48); + box-sizing: border-box; + display: flex; + inset: 0; + justify-content: center; + padding: 24px; + position: fixed; + z-index: 2147482999; + } + + .politictalk-direct-access__dialog { + background: #111111; + border: 1px solid rgba(255, 255, 255, 0.16); + border-radius: 8px; + box-shadow: 0 22px 64px rgba(0, 0, 0, 0.32); + box-sizing: border-box; + color: #f5f5f5; + max-width: 520px; + padding: 32px; + width: min(100%, 520px); + } + + .politictalk-direct-access__title { + font-family: inherit; + font-size: 26px; + font-weight: 700; + line-height: 1.2; + margin: 0 0 16px; + } + + .politictalk-direct-access__message { + color: rgba(255, 255, 255, 0.78); + font-size: 17px; + line-height: 1.5; + margin: 0; + } + + .politictalk-direct-access__actions { + display: flex; + justify-content: flex-end; + margin-top: 28px; + } + + .politictalk-direct-access__button { + background: #ffffff; + border: 0; + border-radius: 6px; + color: #151515; + cursor: pointer; + font-size: 16px; + font-weight: 700; + min-width: 96px; + padding: 13px 22px; + } + + .politictalk-direct-access__button:focus { + outline: 3px solid rgba(255, 255, 255, 0.42); + outline-offset: 3px; + } + + html.politictalk-host-user button[aria-label*="Leave meeting" i], + html.politictalk-host-user button[aria-label*="Leave conference" i], + html.politictalk-host-user [role="button"][aria-label*="Leave meeting" i], + html.politictalk-host-user [role="button"][aria-label*="Leave conference" i] { + display: none !important; + } + @media (max-width: 640px) { .politictalk-room-logo { height: 52px; @@ -26,11 +105,52 @@ top: max(12px, env(safe-area-inset-top)); width: 52px; } + + .politictalk-direct-access { + align-items: flex-start; + padding: 132px 18px 18px; + } + + .politictalk-direct-access__dialog { + padding: 24px; + } + + .politictalk-direct-access__title { + font-size: 24px; + } }