notFound.js 925 B

123456789101112131415161718192021222324252627
  1. const html = require('choo/html');
  2. const assets = require('../../common/assets');
  3. const modal = require('./modal');
  4. module.exports = function(state, emit) {
  5. return html`
  6. <main class="main">
  7. ${state.modal && modal(state, emit)}
  8. <section
  9. class="flex flex-col items-center justify-center h-full w-full p-6 md:p-8 overflow-hidden md:rounded-xl md:shadow-big"
  10. >
  11. <h1 class="text-center text-3xl font-bold my-2">
  12. ${state.translate('expiredTitle')}
  13. </h1>
  14. <img src="${assets.get('notFound.svg')}" class="my-12" />
  15. <p class="max-w-md text-center text-grey-80 leading-normal">
  16. ${state.translate('trySendDescription')}
  17. </p>
  18. <p class="my-5">
  19. <a href="/" class="btn rounded-lg flex items-center" role="button"
  20. >${state.translate('sendYourFilesLink')}</a
  21. >
  22. </p>
  23. </section>
  24. </main>
  25. `;
  26. };