downloadCompleted.js 1.0 KB

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