Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3168 from mozilla/bug-1150231-firstrun-fx40
[fix bug 1150231] Fx40 firstrun experience.
- Loading branch information
Showing
7 changed files
with
536 additions
and
0 deletions.
There are no files selected for viewing
131 changes: 131 additions & 0 deletions
131
bedrock/firefox/templates/firefox/australis/fx40/firstrun.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
{# This Source Code Form is subject to the terms of the Mozilla Public | ||
# 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/. #} | ||
|
||
{% add_lang_files "firefox/whatsnew_38" %} | ||
|
||
{% extends "firefox/base.html" %} | ||
|
||
{% block extra_meta %}<meta name="robots" content="noindex">{% endblock %} | ||
|
||
{#- This will appear as <meta property="og:title"> which can be used for social share -#} | ||
{% block page_og_title %} | ||
{{_('Choose the independent browser')}} | ||
{% endblock %} | ||
|
||
{#- This will appear as <meta property="og:description"> which can be used for social share -#} | ||
{% block page_og_desc %} | ||
{{_('Firefox is non-profit, non-corporate, non-compromised. Choosing Firefox isn’t just choosing a browser. It’s a vote for personal freedom.')}} | ||
{% endblock %} | ||
|
||
{#- Override <meta property="og:url"> for social share -#} | ||
{% block page_og_url %}{{ url('firefox') }}{% endblock %} | ||
|
||
{% block body_class %}mozID{% endblock %} | ||
|
||
{% block site_css %} | ||
{% stylesheet 'firefox_fx40_firstrun' %} | ||
{% endblock %} | ||
|
||
{% block optimizely %} | ||
{% if waffle.switch('firefox-firstrun-optimizely') %} | ||
{% include 'includes/optimizely.html' %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block site_header %} | ||
<header id="masthead"> | ||
{% block tabzilla_tab %} | ||
<div id="tabzilla"> | ||
<a href="{{ url('mozorg.home') }}">Mozilla</a> | ||
</div> | ||
{% endblock %} | ||
{% block site_header_nav %}{% endblock %} | ||
{% block site_header_logo %}{% endblock %} | ||
{% block breadcrumbs %}{% endblock %} | ||
</header> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<section id="intro" data-fxa-iframe-src="{{ settings.FXA_IFRAME_SRC }}"> | ||
<div class="container"> | ||
<div id="logo"> | ||
{{ high_res_img('img/firefox/australis/fx38.0.5/firefox-logo.png', {'alt': 'Firefox', 'width': '142', 'height': '147'}) }} | ||
</div> | ||
|
||
<div class="leftcol"> | ||
<h1> | ||
{{ _('Almost done!') }} | ||
</h1> | ||
|
||
<h2> | ||
{# L10n: Line break below for visual formatting only. #} | ||
{{ _('Sign in to Firefox and <br>you’re good to go.') }} | ||
</h2> | ||
|
||
<p> | ||
{{ _('With your Firefox Account you can sync your bookmarks, passwords, open tabs and more, and access them everywhere you use Firefox.') }} | ||
</p> | ||
</div> | ||
|
||
<div class="rightcol"> | ||
<iframe id="fxa" scrolling="no" src="{{ settings.FXA_IFRAME_SRC }}?campaign=fxa-embedded-form&entrypoint=firstrun&service=sync&context=iframe&style=chromeless"></iframe> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
{% if video_url %} | ||
<section id="video"> | ||
<div class="container"> | ||
<div class="leftcol"> | ||
<h2 id="video-title">{{ _('From our hands to yours') }}</h2> | ||
|
||
<p> | ||
{{ _('Firefox is built from the heart by thousands who believe in personal freedom on the Web.') }} | ||
</p> | ||
|
||
<div id="video-container"> | ||
<div id="video-frame"> | ||
<video tabindex="0" id="firstrun-video" controls="controls" poster="{{ static('img/firefox/spring-campaign-2015/video-poster.jpg') }}" width="100%" height="auto"> | ||
<source src="{{ video_url }}.webm" type="video/webm"> | ||
<source src="{{ video_url }}.mp4" type="video/mp4"> | ||
</video> | ||
</div> | ||
</div> | ||
</div>{#-- /.leftcol --#} | ||
|
||
<div class="rightcol"> | ||
<a id="cta-video" href="{{ video_url }}.webm"><span>{{ _('Watch the video') }}</span></a> | ||
</div>{#-- /.rightcol --#} | ||
|
||
</div>{#-- /.container --#} | ||
</section>{#-- /#video --#} | ||
{% endif %} | ||
|
||
{% endblock %} | ||
|
||
{% block email_form %}{% endblock %} | ||
|
||
{% block site_footer %} | ||
<footer id="footer"> | ||
<div class="container"> | ||
<a class="mozlogo" href="{{ url('mozorg.home') }}">Mozilla</a> | ||
|
||
<ul> | ||
<li> | ||
<a href="{{ url('privacy') }}">{{ _('Privacy Policy') }}</a> | ||
</li> | ||
<li> | ||
<a href="{{ url('privacy.notices.websites') }}#cookies">{{ _('Cookies') }}</a> | ||
</li> | ||
<li> | ||
<a href="{{ url('legal.index') }}">{{ _('Legal Notices') }}</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</footer> | ||
{% endblock %} | ||
|
||
{% block js %} | ||
{% javascript 'firefox_fx40_firstrun' %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.