downloadCompleted.js 979 B

1234567891011121314151617181920212223242526272829303132
  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. <svg class="my-8 h-48 text-primary">
  14. <use xlink:href="${assets.get('completed.svg')}#Page-1" />
  15. </svg>
  16. <p
  17. class="text-grey-80 leading-normal dark:text-grey-40 ${state.user
  18. .loggedIn
  19. ? 'hidden'
  20. : ''}"
  21. >
  22. ${state.translate('trySendDescription')}
  23. </p>
  24. <p class="my-5">
  25. <a href="/" class="btn rounded-lg flex items-center mt-4" role="button"
  26. >${state.translate(btnText)}</a
  27. >
  28. </p>
  29. </div>
  30. `;
  31. };