diff --git a/app/ui/body.js b/app/ui/body.js index c7b271de..b717a9b1 100644 --- a/app/ui/body.js +++ b/app/ui/body.js @@ -1,29 +1,15 @@ const html = require('choo/html'); -const Promo = require('./promo'); const Header = require('./header'); const Footer = require('./footer'); -function banner(state) { - if (state.layout) { - return; // server side - } - const show = - !state.capabilities.standalone && - !state.route.startsWith('/unsupported/') && - state.locale === 'en-US'; - if (show) { - return state.cache(Promo, 'promo').render(); - } -} - module.exports = function body(main) { return function(state, emit) { const b = html` - ${banner(state, emit)} ${state.cache(Header, 'header').render()} - ${main(state, emit)} ${state.cache(Footer, 'footer').render()} + ${state.cache(Header, 'header').render()} ${main(state, emit)} + ${state.cache(Footer, 'footer').render()} `; if (state.layout) { diff --git a/app/ui/promo.js b/app/ui/promo.js deleted file mode 100644 index e514c241..00000000 --- a/app/ui/promo.js +++ /dev/null @@ -1,40 +0,0 @@ -const html = require('choo/html'); -const Component = require('choo/component'); -const assets = require('../../common/assets'); - -class Promo extends Component { - constructor(name, state) { - super(name); - this.state = state; - } - - update() { - return false; - } - - createElement() { - return html` - -
- Firefox - - ${`Like Firefox Send? You'll love our new full-device VPN. `} - ${`Get it today`} - -
-
- `; - } -} - -module.exports = Promo;