downloadCompleted.js 779 B

123456789101112131415161718192021222324
  1. const html = require('choo/html');
  2. const assets = require('../../common/assets');
  3. module.exports = function(state) {
  4. return html`
  5. <div
  6. id="download-complete"
  7. class="flex flex-col items-center justify-center h-full w-full bg-white p-2 dark:bg-grey-90"
  8. >
  9. <h1 class="text-center text-3xl font-bold my-2">
  10. ${state.translate('downloadFinish')}
  11. </h1>
  12. <img src="${assets.get('completed.svg')}" class="my-12 h-48" />
  13. <p class="text-grey-80 leading-normal dark:text-grey-40">
  14. ${state.translate('trySendDescription')}
  15. </p>
  16. <p class="my-5">
  17. <a href="/" class="btn rounded-lg flex items-center mt-4" role="button"
  18. >${state.translate('sendYourFilesLink')}</a
  19. >
  20. </p>
  21. </div>
  22. `;
  23. };