Browse Source

feat(PromotionalFooter): Implement

master
Mihai Uscat 4 years ago
parent
commit
ae30d39b4d

+ 1
- 0
css/_promotional-footer.scss View File

@@ -0,0 +1 @@
1
+/** Insert custom CSS for any additional content in the promotional footer **/

+ 35
- 0
css/_variables.scss View File

@@ -220,4 +220,39 @@ $welcomePageButtonLineHeight: 35px;
220 220
  * Deep-linking page variables.
221 221
  */
222 222
 $deepLinkingMobileLogoHeight: 40px;
223
+
223 224
 $deepLinkingMobileHeaderBackground: #f1f2f5;
225
+
226
+$deepLinkingMobileLinkColor: inherit;
227
+$deepLinkingMobileTextFontSize: inherit;
228
+$deepLinkingMobileTextLineHeight: inherit;
229
+
230
+$deepLinkingDialInConferenceIdMargin: 10px 0 10px 0;
231
+$deepLinkingDialInConferenceIdPadding: inherit;
232
+$deepLinkingDialInConferenceIdBackgroundColor: inherit;
233
+$deepLinkingDialInConferenceIdBorderRadius: inherit;
234
+
235
+$deepLinkingDialInConferenceNameFontSize: inherit;
236
+$deepLinkingDialInConferenceNameLineHeight: inherit;
237
+$deepLinkingDialInConferenceNameMarginBottom: none;
238
+$deepLinkingDialInConferenceNameFontWeight: inherit;
239
+
240
+$deepLinkingDialInConferenceDescriptionFontSize: 0.8em;
241
+$deepLinkingDialInConferenceDescriptionLineHeight: inherit;
242
+$deepLinkingDialInConferenceDescriptionMarginBottom: none;
243
+
244
+$deepLinkingDialInConferencePinFontSize: inherit;
245
+$deepLinkingDialInConferencePinLineHeight: inherit;
246
+
247
+$depLinkingMobileHrefLineHeight: 2.2857142857142856em;
248
+$deepLinkingMobileHrefFontWeight: bolder;
249
+$deepLinkingMobileHrefFontSize: inherit;
250
+
251
+$deepLinkingMobileButtonHeight: 2.2857142857142856em;
252
+$deepLinkingMobileButtonLineHeight: 2.2857142857142856em;
253
+$deepLinkingMobileButtonMargin: 18px auto 10px;
254
+$deepLinkingMobileButtonWidth: auto;
255
+$deepLinkingMobileButtonFontWeight: bold;
256
+$deepLinkingMobileButtonFontSize: inherit;
257
+
258
+$primaryDeepLinkingMobileButtonBorderRadius: inherit;

+ 33
- 11
css/deep-linking/_mobile.scss View File

@@ -19,7 +19,8 @@
19 19
     }
20 20
 
21 21
     a {
22
-        text-decoration: none
22
+        text-decoration: none;
23
+        color: $deepLinkingMobileLinkColor;
23 24
     }
24 25
 
25 26
     &__body {
@@ -41,6 +42,8 @@
41 42
 
42 43
     &__text {
43 44
         font-weight: bolder;
45
+        font-size: $deepLinkingMobileTextFontSize;
46
+        line-height: $deepLinkingMobileTextLineHeight;
44 47
         padding: 10px 10px 0px 10px;
45 48
     }
46 49
 
@@ -65,11 +68,28 @@
65 68
         }
66 69
 
67 70
         .dial-in-conference-id {
68
-            margin: 10px 0 10px 0;
71
+            margin: $deepLinkingDialInConferenceIdMargin;
72
+            padding: $deepLinkingDialInConferenceIdPadding;
73
+            background-color: $deepLinkingDialInConferenceIdBackgroundColor;
74
+            border-radius: $deepLinkingDialInConferenceIdBorderRadius;
75
+        }
76
+
77
+        .dial-in-conference-name {
78
+            font-size: $deepLinkingDialInConferenceNameFontSize;
79
+            line-height: $deepLinkingDialInConferenceNameLineHeight;
80
+            margin-bottom: $deepLinkingDialInConferenceNameMarginBottom;
81
+            font-weight: $deepLinkingDialInConferenceNameFontWeight;
69 82
         }
70 83
 
71 84
         .dial-in-conference-description {
72
-            font-size: 0.8em;
85
+            font-size: $deepLinkingDialInConferenceDescriptionFontSize;
86
+            line-height: $deepLinkingDialInConferenceDescriptionLineHeight;
87
+            margin-bottom: $deepLinkingDialInConferenceDescriptionMarginBottom;
88
+        }
89
+
90
+        .dial-in-conference-pin {
91
+            font-size: $deepLinkingDialInConferencePinFontSize;
92
+            line-height: $deepLinkingDialInConferencePinLineHeight;
73 93
         }
74 94
 
75 95
         .toll-free-list {
@@ -88,25 +108,27 @@
88 108
 
89 109
     &__href {
90 110
         height: 2.2857142857142856em;
91
-        line-height: 2.2857142857142856em;
111
+        line-height: $depLinkingMobileHrefLineHeight;
92 112
         margin: 18px auto 20px;
93 113
         max-width: 300px;
94 114
         width: auto;
95
-        font-weight: bolder;
115
+        font-weight: $deepLinkingMobileHrefFontWeight;
116
+        font-size: $deepLinkingMobileHrefFontSize;
96 117
     }
97 118
 
98 119
     &__button {
99 120
         border: 0;
100
-        height: 2.2857142857142856em;
101
-        line-height: 2.2857142857142856em;
102
-        margin: 18px auto 10px;
121
+        height: $deepLinkingMobileButtonHeight;
122
+        line-height: $deepLinkingMobileButtonLineHeight;
123
+        margin: $deepLinkingMobileButtonMargin;
103 124
         padding: 0px 10px 0px 10px;
104 125
         max-width: 300px;
105
-        width: auto;
126
+        width: $deepLinkingMobileButtonWidth;
106 127
         @include border-radius(3px);
107 128
         background-color: $unsupportedBrowserButtonBgColor;
108 129
         color: #505F79;
109
-        font-weight: bold;
130
+        font-weight: $deepLinkingMobileButtonFontWeight;
131
+        font-size: $deepLinkingMobileButtonFontSize;
110 132
 
111 133
         &:active {
112 134
             background-color: $unsupportedBrowserButtonBgColor;
@@ -115,7 +137,7 @@
115 137
         &_primary {
116 138
             background-color: $primaryUnsupportedBrowserButtonBgColor;
117 139
             color: #FFFFFF;
118
-
140
+            border-radius: $primaryDeepLinkingMobileButtonBorderRadius;
119 141
             &:active {
120 142
                 background-color: $primaryUnsupportedBrowserButtonBgColor;
121 143
             }

+ 1
- 0
css/main.scss View File

@@ -84,5 +84,6 @@ $flagsImagePath: "../images/";
84 84
 @import 'third-party-branding/google';
85 85
 @import 'third-party-branding/microsoft';
86 86
 @import 'avatar';
87
+@import 'promotional-footer';
87 88
 
88 89
 /* Modules END */

+ 2
- 0
react/features/deep-linking/components/DeepLinkingMobilePage.web.js View File

@@ -10,6 +10,7 @@ import { DialInSummary } from '../../invite';
10 10
 
11 11
 import { _TNS } from '../constants';
12 12
 import { generateDeepLinkingURL } from '../functions';
13
+import { renderPromotionalFooter } from '../renderPromotionalFooter';
13 14
 
14 15
 declare var interfaceConfig: Object;
15 16
 
@@ -130,6 +131,7 @@ class DeepLinkingMobilePage extends Component<Props> {
130 131
                         { t(`${_TNS}.openApp`) }
131 132
                         {/* </button> */}
132 133
                     </a>
134
+                    { renderPromotionalFooter() }
133 135
                     <DialInSummary
134 136
                         className = 'deep-linking-dial-in'
135 137
                         clickableNumbers = { true }

+ 9
- 0
react/features/deep-linking/renderPromotionalFooter.js View File

@@ -0,0 +1,9 @@
1
+// @flow
2
+/**
3
+ * Method used in order to render a custom promotional footer.
4
+ *
5
+ * @returns {HTMLElement}
6
+ */
7
+export function renderPromotionalFooter() {
8
+    return null;
9
+}

Loading…
Cancel
Save