Skip to content

Commit

Permalink
Add TEF logo to intro. Bug 1119435.
Browse files Browse the repository at this point in the history
- Organize hello files
  • Loading branch information
jpetto committed Jan 20, 2015
1 parent 9b47aa8 commit 91efc84
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

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

{% set_lang_files "firefox/hello" %}

{% block page_title_prefix %}{% endblock %}
{% block page_title %}{{ _('Firefox Hello — Free, easy video conversations') }}{% endblock %}
{% 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 %}
Expand Down Expand Up @@ -117,6 +119,10 @@ <h2 class="heading-tertiary">

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

<aside id="powered-by">
{{ _('Powered by %s')|format(high_res_img('/img/firefox/hello/tef-logo.png', {'alt': 'Telefonica', 'width': '106', 'height': '29'})) }}
</aside>

{#
Share widget pulled from 35, will be back for 36:
https://bugzilla.mozilla.org/show_bug.cgi?id=1113917#c4
Expand Down
2 changes: 1 addition & 1 deletion bedrock/firefox/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def hello(request):
'zh-TW': 'https://videos.cdn.mozilla.net/uploads/FirefoxHello/firefoxhello_intro_chinese'
}

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


class HelloStartView(LatestFxView):
Expand Down
22 changes: 11 additions & 11 deletions bedrock/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,12 @@ def JINJA_CONFIG():
'css/sandstone/sandstone-resp.less',
'css/firefox/hello/start.less',
),
'firefox_hello': (
'css/sandstone/sandstone-resp.less',
'css/firefox/menu-resp.less',
'css/base/mozilla-modal.less',
'css/firefox/hello/index.less',
),
'firefox_new': (
'css/sandstone/sandstone-resp.less',
'css/firefox/template-resp.less',
Expand Down Expand Up @@ -424,12 +430,6 @@ def JINJA_CONFIG():
'firefox_sync_anim': (
'css/firefox/sync-animation.less',
),
'firefox_hello': (
'css/sandstone/sandstone-resp.less',
'css/firefox/menu-resp.less',
'css/base/mozilla-modal.less',
'css/firefox/hello.less',
),
'firefox_independent': (
'css/sandstone/sandstone-resp.less',
'css/base/mozilla-share-cta.less',
Expand Down Expand Up @@ -751,10 +751,6 @@ def JINJA_CONFIG():
'js/base/mozilla-modal.js',
'js/firefox/dev-firstrun.js',
),
'firefox_hello_start': (
'js/firefox/australis/australis-uitour.js',
'js/firefox/hello/start.js',
),
'firefox_new': (
'js/libs/jquery-1.11.0.min.js',
'js/libs/spin.min.js',
Expand Down Expand Up @@ -818,11 +814,15 @@ def JINJA_CONFIG():
'js/firefox/sync-animation.js',
'js/firefox/sync-old.js',
),
'firefox_hello_start': (
'js/firefox/australis/australis-uitour.js',
'js/firefox/hello/start.js',
),
'firefox_hello': (
'js/firefox/australis/australis-uitour.js',
'js/libs/modernizr.custom.cssanimations.js',
'js/base/mozilla-modal.js',
'js/firefox/hello.js',
'js/firefox/hello/index.js',
),
'firefox_hello_ie9': (
'js/libs/matchMedia.js',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

@import "../sandstone/lib.less";
@import "../../sandstone/lib.less";

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

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

#powered-by {
.font-size(@smallFontSize);
text-align: center;
margin-top: @baseLine * 1.5;

img {
vertical-align: middle;
}
}

html[lang^="en"] #powered-by {
text-transform: uppercase;
.font-size(10px);
}

// Animation

#animation-stage {
Expand Down
Binary file added media/img/firefox/hello/tef-logo-high-res.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/img/firefox/hello/tef-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.

0 comments on commit 91efc84

Please sign in to comment.