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 #2852 from mozilla/bug-1134414-ff37-whatsnew-page
Bug 1134414 ff37 whatsnew page
- Loading branch information
Showing
18 changed files
with
1,039 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
{# 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/. -#} | ||
|
||
{% extends "firefox/base-resp.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 page_title_prefix %}{% endblock %} | ||
|
||
{# L10n: This string is used in the <title> tag #} | ||
{% block page_title %}{{ _('Now add Firefox to your Android devices') }}{% endblock %} | ||
{% block page_title_suffix %}{% endblock %} | ||
{% block body_id %}firefox-whatsnew-37{% endblock %} | ||
{% block body_class %}{% endblock %} | ||
|
||
{% block site_header_nav %}{% endblock %} | ||
{% block site_header_logo %} | ||
<h2><a href="{{ url('firefox') }}"> | ||
{{ high_res_img('img/firefox/whatsnew-fx37/firefox-wordmark.png', {'alt': 'Mozilla Firefox', 'width': '220', 'height': '90'}) }} | ||
</a></h2> | ||
{% endblock %} | ||
|
||
{% block site_css %} | ||
{% stylesheet 'firefox_whatsnew_37' %} | ||
{% endblock %} | ||
|
||
{% macro thank_you_message() %} | ||
{# L10n: Thank you message after sending the SMS/email #} | ||
{{_('Check your device to start downloading.') }} | ||
<p><a role="button" href="#send-another" class="send-another more"> | ||
{# L10n: Thank you message after sending the SMS/email #} | ||
{{ _('Send to another device') }} | ||
</a></p> | ||
{%- endmacro %} | ||
|
||
{% block content %} | ||
<main role="main" data-active="email-only"> | ||
<header> | ||
<p class="up-to-date">{{ _('Your Firefox is up to date.') }}</p> | ||
<h1>{{ _('Now add Firefox to your Android devices') }}</h1> | ||
<p class="tagline">{{ _('Get the features you love and the privacy you trust in our most customizable Android browser yet. Simply send a download link straight to your phone or tablet — or both.') }}</p> | ||
</header> | ||
<nav class="toggle"> | ||
<ul role="tablist"> | ||
<li role="presentation" class="sms-tab"> | ||
<a id="tab-sms" role="tab" aria-controls="send-sms" href="#send-sms">{{ _('Send by text message') }}</a> | ||
</li> | ||
<li role="presentation" class="email-tab"> | ||
<a id="tab-email" role="tab" aria-controls="send-email" href="#send-email">{{ _('Send by email') }}</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
<div class="tab-container"> | ||
<div class="inner-wrapper"> | ||
<section id="send-email" class="tab-content"> | ||
{% set newsletter_id = 'download-firefox-android' %} | ||
{% set newsletter_title = _('Send Firefox to your Android phone or tablet') %} | ||
{% set newsletter_submit = _('Send') %} | ||
{% set newsletter_thankyou_head = _('Your link has been sent!') %} | ||
{% set newsletter_thankyou_content = thank_you_message() %} | ||
|
||
{{ email_newsletter_form(newsletter_id, title=newsletter_title, submit_text=newsletter_submit, thankyou_head=newsletter_thankyou_head,thankyou_content=newsletter_thankyou_content) }} | ||
<footer> | ||
{% trans url=settings.GOOGLE_PLAY_FIREFOX_LINK %} | ||
Also available from <a href="{{ url }}">Google Play</a>. | ||
{% endtrans %} | ||
<br>{{ _('The intended recipient of the email must have consented.') }} <a href="{{ url('privacy.notices.websites') }}#campaigns">{{ _('Learn more') }}</a> | ||
</footer> | ||
</section> | ||
<section id="send-sms" class="tab-content"> | ||
<div class="inner-wrapper"> | ||
<div class="sms-form-wrapper"> | ||
<h3>{{ _('Send Firefox to your Android phone') }}</h3> | ||
<form id="sms-form" method="post" action="{{ secure_url('firefox.sms') }}"> | ||
<div class="input"> | ||
<label for="number">{{ _('Enter your 10-digit phone number') }}</label> | ||
<input type="tel" | ||
maxlength="14" | ||
id="number" | ||
name="number" | ||
placeholder="{{ _('Enter your 10-digit phone number') }}" | ||
value="" | ||
required> | ||
<p class="error hidden">{{ _('An error occurred in our system. Please try again later.') }}</p> | ||
</div> | ||
<button type="submit">{{ _('Send') }}</button> | ||
</form> | ||
<div id="sms-form-thank-you"> | ||
<h3>{{ _('Your link has been sent!') }}</h3> | ||
<p>{{ thank_you_message() }}</p> | ||
</div> | ||
<div id="sms-spinner" class="hidden"></div> | ||
</div> | ||
<footer> | ||
{% trans url=settings.GOOGLE_PLAY_FIREFOX_LINK %} | ||
Also available from <a href="{{ url }}">Google Play</a>. | ||
{% endtrans %} | ||
<br> | ||
{{ _('SMS service available in the U.S. only.') }} {{ _('SMS & data rates may apply. The intended recipient of the SMS must have consented.') }} <a href="{{ url('privacy.notices.websites') }}#campaigns">{{ _('Learn more') }}</a> | ||
</footer> | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
</main> | ||
{% endblock %} | ||
|
||
{% block email_form %}{% endblock%} | ||
|
||
{% block js %} | ||
{% javascript 'firefox_whatsnew_fx37' %} | ||
{% 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
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.