promo.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. const html = require('choo/html');
  2. const Component = require('choo/component');
  3. const assets = require('../../common/assets');
  4. class Promo extends Component {
  5. constructor(name, state) {
  6. super(name);
  7. this.state = state;
  8. }
  9. update() {
  10. return false;
  11. }
  12. createElement() {
  13. return html`
  14. <send-promo
  15. class="w-full flex-row items-center content-center justify-center bg-white text-grey-80 px-4 py-3 flex border-b border-grey-banner leading-normal dark:bg-grey-90 dark:text-grey-20 dark:border-grey-80"
  16. >
  17. <div class="flex items-center mx-auto">
  18. <img
  19. src="${assets.get('master-logo.svg')}"
  20. class="w-6 h-6"
  21. alt="Firefox"
  22. />
  23. <span class="ml-2 sm:ml-4 text-xs sm:text-base">
  24. ${`Like Firefox Send? You'll love our new full-device VPN. `}
  25. <a
  26. class="underline link-blue"
  27. href="https://vpn.mozilla.org/?utm_source=send.firefox.com&utm_medium=referral&utm_content=Try+Firefox+Private+Network&utm_campaign=top-bar"
  28. >${`Get it today`}</a
  29. >
  30. </span>
  31. </div>
  32. </send-promo>
  33. `;
  34. }
  35. }
  36. module.exports = Promo;