Skip to content

Commit 91efc84

Browse files
committed
Add TEF logo to intro. Bug 1119435.
- Organize hello files
1 parent 9b47aa8 commit 91efc84

File tree

7 files changed

+35
-14
lines changed

7 files changed

+35
-14
lines changed

bedrock/firefox/templates/firefox/hello.html renamed to bedrock/firefox/templates/firefox/hello/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
{% extends "firefox/base-resp.html" %}
66

7+
{% set_lang_files "firefox/hello" %}
8+
79
{% block page_title_prefix %}{% endblock %}
810
{% block page_title %}{{ _('Firefox Hello — Free, easy video conversations') }}{% endblock %}
911
{% block page_desc %}{{ _('Learn all about Firefox Hello and see for yourself how easy it is to have a free video conversation with anyone, anywhere, right from your browser') }}{% endblock %}
@@ -117,6 +119,10 @@ <h2 class="heading-tertiary">
117119

118120
<button class="try-hello" id="try-hello-intro">{{ _('Try Firefox Hello') }}</button>
119121

122+
<aside id="powered-by">
123+
{{ _('Powered by %s')|format(high_res_img('/img/firefox/hello/tef-logo.png', {'alt': 'Telefonica', 'width': '106', 'height': '29'})) }}
124+
</aside>
125+
120126
{#
121127
Share widget pulled from 35, will be back for 36:
122128
https://bugzilla.mozilla.org/show_bug.cgi?id=1113917#c4

bedrock/firefox/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def hello(request):
512512
'zh-TW': 'https://videos.cdn.mozilla.net/uploads/FirefoxHello/firefoxhello_intro_chinese'
513513
}
514514

515-
return l10n_utils.render(request, 'firefox/hello.html', {'video_url': videos.get(request.locale, '')})
515+
return l10n_utils.render(request, 'firefox/hello/index.html', {'video_url': videos.get(request.locale, '')})
516516

517517

518518
class HelloStartView(LatestFxView):

bedrock/settings/base.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,12 @@ def JINJA_CONFIG():
310310
'css/sandstone/sandstone-resp.less',
311311
'css/firefox/hello/start.less',
312312
),
313+
'firefox_hello': (
314+
'css/sandstone/sandstone-resp.less',
315+
'css/firefox/menu-resp.less',
316+
'css/base/mozilla-modal.less',
317+
'css/firefox/hello/index.less',
318+
),
313319
'firefox_new': (
314320
'css/sandstone/sandstone-resp.less',
315321
'css/firefox/template-resp.less',
@@ -424,12 +430,6 @@ def JINJA_CONFIG():
424430
'firefox_sync_anim': (
425431
'css/firefox/sync-animation.less',
426432
),
427-
'firefox_hello': (
428-
'css/sandstone/sandstone-resp.less',
429-
'css/firefox/menu-resp.less',
430-
'css/base/mozilla-modal.less',
431-
'css/firefox/hello.less',
432-
),
433433
'firefox_independent': (
434434
'css/sandstone/sandstone-resp.less',
435435
'css/base/mozilla-share-cta.less',
@@ -751,10 +751,6 @@ def JINJA_CONFIG():
751751
'js/base/mozilla-modal.js',
752752
'js/firefox/dev-firstrun.js',
753753
),
754-
'firefox_hello_start': (
755-
'js/firefox/australis/australis-uitour.js',
756-
'js/firefox/hello/start.js',
757-
),
758754
'firefox_new': (
759755
'js/libs/jquery-1.11.0.min.js',
760756
'js/libs/spin.min.js',
@@ -818,11 +814,15 @@ def JINJA_CONFIG():
818814
'js/firefox/sync-animation.js',
819815
'js/firefox/sync-old.js',
820816
),
817+
'firefox_hello_start': (
818+
'js/firefox/australis/australis-uitour.js',
819+
'js/firefox/hello/start.js',
820+
),
821821
'firefox_hello': (
822822
'js/firefox/australis/australis-uitour.js',
823823
'js/libs/modernizr.custom.cssanimations.js',
824824
'js/base/mozilla-modal.js',
825-
'js/firefox/hello.js',
825+
'js/firefox/hello/index.js',
826826
),
827827
'firefox_hello_ie9': (
828828
'js/libs/matchMedia.js',
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// License, v. 2.0. If a copy of the MPL was not distributed with this
33
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
44

5-
@import "../sandstone/lib.less";
5+
@import "../../sandstone/lib.less";
66

77
.grainy-sky() {
88
background: #cae1f4;
@@ -178,7 +178,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1113917#c4
178178
border: 2px solid #a9bcca;
179179
background: transparent;
180180
color: #00a0db;
181-
margin: 34px auto 0;
181+
margin: (@baseLine * 1.5) auto 0;
182182

183183
&:hover {
184184
background: #fff;
@@ -200,6 +200,21 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1113917#c4
200200
background: url(/media/img/firefox/hello/hello-intro.png) center center no-repeat;
201201
}
202202

203+
#powered-by {
204+
.font-size(@smallFontSize);
205+
text-align: center;
206+
margin-top: @baseLine * 1.5;
207+
208+
img {
209+
vertical-align: middle;
210+
}
211+
}
212+
213+
html[lang^="en"] #powered-by {
214+
text-transform: uppercase;
215+
.font-size(10px);
216+
}
217+
203218
// Animation
204219

205220
#animation-stage {
3.8 KB
Loading
1.87 KB
Loading

0 commit comments

Comments
 (0)