Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Add policy section

Ilya Daynatovicha63bb5d90641
diff --git a/css/_policy.scss b/css/_policy.scss
index c19396947b..73e303bcfc 100644
--- a/css/_policy.scss
+++ b/css/_policy.scss
@@ -1,5 +1,15 @@
.policy {
&__logo {
+ display: block;
+ width: 200px;
+ height: 50px;
+ margin: 30px auto 0;
+ }
+ &__text {
+ text-align: center;
+ font-size: 14px;
+ line-height: 21px;
+ font-weight: 300;
}
}
\ No newline at end of file
diff --git a/css/main.scss b/css/main.scss
index 532c902126..677c536b96 100644
--- a/css/main.scss
+++ b/css/main.scss
@@ -65,5 +65,6 @@
@import "connection-info";
@import 'aui-components/dropdown';
@import '404';
+@import 'policy';
/* Modules END */
diff --git a/css/overlay/_overlay.scss b/css/overlay/_overlay.scss
index f0f9190f73..4e993da55a 100644
--- a/css/overlay/_overlay.scss
+++ b/css/overlay/_overlay.scss
@@ -10,14 +10,23 @@
}
&__content {
+ position: absolute;
margin: 0 auto;
+ height: 100%;
width: 56%;
+ left: 50%;
+ @include transform(translateX(-50%));
&_bottom {
position: absolute;
bottom: 0;
}
}
+
+ &__policy {
+ position: absolute;
+ bottom: 24px;
+ }
}
.inlay {
diff --git a/modules/UI/gum_overlay/UserMediaPermissionsGuidanceOverlay.js b/modules/UI/gum_overlay/UserMediaPermissionsGuidanceOverlay.js
index 8140ea5c9f..2f862f2037 100644
--- a/modules/UI/gum_overlay/UserMediaPermissionsGuidanceOverlay.js
+++ b/modules/UI/gum_overlay/UserMediaPermissionsGuidanceOverlay.js
@@ -1,4 +1,4 @@
-/* global */
+/* global interfaceConfig */
import Overlay from '../overlay/Overlay';
@@ -27,7 +27,7 @@ class GUMOverlayImpl extends Overlay {
let title = 'HipChat Video needs to use your microphone and camera.';
let text;
text = 'Select "Allow" when your browser asks for these permissions.';
- return (
+ let content = (
`<div class="inlay">
<span class="inlay__icon icon-microphone"></span>
<span class="inlay__icon icon-camera"></span>
@@ -35,6 +35,19 @@ class GUMOverlayImpl extends Overlay {
<span class='inlay__text'>${text}</span>
</div>`
);
+
+ if (interfaceConfig.HAS_POLICY) {
+ content += (
+ `<div class="policy overlay__policy">
+ <p class="policy__text" data-i18n="policyText"></p>
+ <div class="policy__logo">
+ <img src=""/>
+ </div>
+ </div>`
+ );
+ }
+
+ return content;
}
}