updated unsupported page style
This commit is contained in:
parent
2fd72096ae
commit
c36466d952
|
@ -1,12 +1,10 @@
|
||||||
const html = require('choo/html');
|
const html = require('choo/html');
|
||||||
const assets = require('../../common/assets');
|
|
||||||
const modal = require('./modal');
|
const modal = require('./modal');
|
||||||
|
|
||||||
module.exports = function(state, emit) {
|
module.exports = function(state, emit) {
|
||||||
let strings = {};
|
let strings = {};
|
||||||
let why = '';
|
let why = '';
|
||||||
let url = '';
|
let url = '';
|
||||||
let buttonAction = '';
|
|
||||||
|
|
||||||
if (state.params.reason !== 'outdated') {
|
if (state.params.reason !== 'outdated') {
|
||||||
strings = unsupportedStrings(state);
|
strings = unsupportedStrings(state);
|
||||||
|
@ -20,38 +18,22 @@ module.exports = function(state, emit) {
|
||||||
`;
|
`;
|
||||||
url =
|
url =
|
||||||
'https://www.mozilla.org/firefox/new/?utm_campaign=send-acquisition&utm_medium=referral&utm_source=send.firefox.com';
|
'https://www.mozilla.org/firefox/new/?utm_campaign=send-acquisition&utm_medium=referral&utm_source=send.firefox.com';
|
||||||
buttonAction = html`
|
|
||||||
<p class="ml-4 font-bold">
|
|
||||||
Firefox<br /><span class="font-light text-base">${strings.button}</span>
|
|
||||||
</p>
|
|
||||||
`;
|
|
||||||
} else {
|
} else {
|
||||||
strings = outdatedStrings(state);
|
strings = outdatedStrings(state);
|
||||||
url = 'https://support.mozilla.org/kb/update-firefox-latest-version';
|
url = 'https://support.mozilla.org/kb/update-firefox-latest-version';
|
||||||
buttonAction = html`
|
|
||||||
<p class="ml-4">${strings.button}</p>
|
|
||||||
`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<main class="main container">
|
<main class="main container">
|
||||||
${state.modal && modal(state, emit)}
|
${state.modal && modal(state, emit)}
|
||||||
<div
|
<div
|
||||||
class="flex flex-col items-center bg-white m-6 px-6 py-8 border border-grey-light md:border-none md:px-12 md:py-16 shadow w-full md:h-full"
|
class="flex flex-col items-center justify-center text-center bg-white m-6 px-6 py-8 border border-grey-light md:border-none md:px-12 md:py-16 shadow w-full md:h-full"
|
||||||
>
|
>
|
||||||
<h1 class="text-center text-2xl">${strings.header}</h1>
|
<h1 class="">${strings.header}</h1>
|
||||||
<p class="my-10 max-w-md leading-normal">${strings.description}</p>
|
<p class=" mt-4 mb-8 max-w-md leading-normal">${strings.description}</p>
|
||||||
${why}
|
${why}
|
||||||
<a
|
<a href="${url}" class="btn rounded-lg mt-8 py-4 px-8 h-auto">
|
||||||
href="${url}"
|
${strings.button}
|
||||||
class="border border-green-light rounded bg-green hover\:bg-green-dark focus\:bg-green-darker flex items-center justify-center text-2xl text-white mt-10 py-4 px-6"
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
src="${assets.get('firefox_logo-only.svg')}"
|
|
||||||
class="w-10"
|
|
||||||
alt="Firefox"
|
|
||||||
/>
|
|
||||||
${buttonAction}
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
@ -70,6 +52,6 @@ function unsupportedStrings(state) {
|
||||||
return {
|
return {
|
||||||
header: state.translate('notSupportedHeader'),
|
header: state.translate('notSupportedHeader'),
|
||||||
description: state.translate('notSupportedDetailUpdate'),
|
description: state.translate('notSupportedDetailUpdate'),
|
||||||
button: state.translate('downloadFirefoxButtonSub')
|
button: state.translate('downloadFirefox')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,6 +105,7 @@ notSupportedDetailUpdate = Firefox Send will not work with this browser. Send wo
|
||||||
notSupportedLink = Why is my browser not supported?
|
notSupportedLink = Why is my browser not supported?
|
||||||
notSupportedOutdatedDetail = Unfortunately this version of Firefox does not support the web technology that powers Firefox Send. You’ll need to update your browser.
|
notSupportedOutdatedDetail = Unfortunately this version of Firefox does not support the web technology that powers Firefox Send. You’ll need to update your browser.
|
||||||
updateFirefox = Update Firefox
|
updateFirefox = Update Firefox
|
||||||
|
downloadFirefox = Download Firefox
|
||||||
downloadFirefoxButtonSub = Free Download
|
downloadFirefoxButtonSub = Free Download
|
||||||
uploadedFile = File
|
uploadedFile = File
|
||||||
copyFileList = Copy URL
|
copyFileList = Copy URL
|
||||||
|
|
Loading…
Reference in New Issue