diff --git a/public/resources/send-fb.jpg b/public/resources/send-fb.jpg new file mode 100644 index 00000000..784fe51f Binary files /dev/null and b/public/resources/send-fb.jpg differ diff --git a/public/resources/send-twitter.jpg b/public/resources/send-twitter.jpg new file mode 100644 index 00000000..d13d5f90 Binary files /dev/null and b/public/resources/send-twitter.jpg differ diff --git a/server/server.js b/server/server.js index 3164ff3d..65c1dcd8 100644 --- a/server/server.js +++ b/server/server.js @@ -38,6 +38,16 @@ function prodLangs() { const availableLanguages = conf.l10n_dev ? allLangs() : prodLangs(); +const envURL = (env) => { + switch (env) { + case 'test': + return 'https://send.stage.mozaws.net'; + case 'development': + return 'https://testpilot.dev.mozaws.net'; + } + return 'https://send.firefox.com'; +} + if (conf.env === 'development') { const webpack = require('webpack'); const webpackDevMiddleware = require('webpack-dev-middleware'); @@ -58,7 +68,10 @@ app.engine( partialsDir: 'views/partials/', helpers: { availableLanguages, - l10nDev: conf.l10n_dev + l10nDev: conf.l10n_dev, + envURL: envURL(conf.env), + title: 'Firefox Send', + description: 'Encrypt and send files with a link that automatically expires to ensure your important documents don’t stay online forever.' } }) ); diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars index 9f04aa16..be2fac90 100644 --- a/views/layouts/main.handlebars +++ b/views/layouts/main.handlebars @@ -7,7 +7,17 @@ -