浏览代码

feat(PromotionalFooter): Implement

master
Mihai Uscat 5 年前
父节点
当前提交
ae30d39b4d

+ 1
- 0
css/_promotional-footer.scss 查看文件

1
+/** Insert custom CSS for any additional content in the promotional footer **/

+ 35
- 0
css/_variables.scss 查看文件

220
  * Deep-linking page variables.
220
  * Deep-linking page variables.
221
  */
221
  */
222
 $deepLinkingMobileLogoHeight: 40px;
222
 $deepLinkingMobileLogoHeight: 40px;
223
+
223
 $deepLinkingMobileHeaderBackground: #f1f2f5;
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 查看文件

19
     }
19
     }
20
 
20
 
21
     a {
21
     a {
22
-        text-decoration: none
22
+        text-decoration: none;
23
+        color: $deepLinkingMobileLinkColor;
23
     }
24
     }
24
 
25
 
25
     &__body {
26
     &__body {
41
 
42
 
42
     &__text {
43
     &__text {
43
         font-weight: bolder;
44
         font-weight: bolder;
45
+        font-size: $deepLinkingMobileTextFontSize;
46
+        line-height: $deepLinkingMobileTextLineHeight;
44
         padding: 10px 10px 0px 10px;
47
         padding: 10px 10px 0px 10px;
45
     }
48
     }
46
 
49
 
65
         }
68
         }
66
 
69
 
67
         .dial-in-conference-id {
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
         .dial-in-conference-description {
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
         .toll-free-list {
95
         .toll-free-list {
88
 
108
 
89
     &__href {
109
     &__href {
90
         height: 2.2857142857142856em;
110
         height: 2.2857142857142856em;
91
-        line-height: 2.2857142857142856em;
111
+        line-height: $depLinkingMobileHrefLineHeight;
92
         margin: 18px auto 20px;
112
         margin: 18px auto 20px;
93
         max-width: 300px;
113
         max-width: 300px;
94
         width: auto;
114
         width: auto;
95
-        font-weight: bolder;
115
+        font-weight: $deepLinkingMobileHrefFontWeight;
116
+        font-size: $deepLinkingMobileHrefFontSize;
96
     }
117
     }
97
 
118
 
98
     &__button {
119
     &__button {
99
         border: 0;
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
         padding: 0px 10px 0px 10px;
124
         padding: 0px 10px 0px 10px;
104
         max-width: 300px;
125
         max-width: 300px;
105
-        width: auto;
126
+        width: $deepLinkingMobileButtonWidth;
106
         @include border-radius(3px);
127
         @include border-radius(3px);
107
         background-color: $unsupportedBrowserButtonBgColor;
128
         background-color: $unsupportedBrowserButtonBgColor;
108
         color: #505F79;
129
         color: #505F79;
109
-        font-weight: bold;
130
+        font-weight: $deepLinkingMobileButtonFontWeight;
131
+        font-size: $deepLinkingMobileButtonFontSize;
110
 
132
 
111
         &:active {
133
         &:active {
112
             background-color: $unsupportedBrowserButtonBgColor;
134
             background-color: $unsupportedBrowserButtonBgColor;
115
         &_primary {
137
         &_primary {
116
             background-color: $primaryUnsupportedBrowserButtonBgColor;
138
             background-color: $primaryUnsupportedBrowserButtonBgColor;
117
             color: #FFFFFF;
139
             color: #FFFFFF;
118
-
140
+            border-radius: $primaryDeepLinkingMobileButtonBorderRadius;
119
             &:active {
141
             &:active {
120
                 background-color: $primaryUnsupportedBrowserButtonBgColor;
142
                 background-color: $primaryUnsupportedBrowserButtonBgColor;
121
             }
143
             }

+ 1
- 0
css/main.scss 查看文件

84
 @import 'third-party-branding/google';
84
 @import 'third-party-branding/google';
85
 @import 'third-party-branding/microsoft';
85
 @import 'third-party-branding/microsoft';
86
 @import 'avatar';
86
 @import 'avatar';
87
+@import 'promotional-footer';
87
 
88
 
88
 /* Modules END */
89
 /* Modules END */

+ 2
- 0
react/features/deep-linking/components/DeepLinkingMobilePage.web.js 查看文件

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

+ 9
- 0
react/features/deep-linking/renderPromotionalFooter.js 查看文件

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
+}

正在加载...
取消
保存