paste.tpl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. % link = setdefault("link", "") or ""
  2. % disabled = setdefault("disabled", "") and 'disabled="true"'
  3. % download = setdefault("download", "") or ""
  4. % download_disabled = "" if download else 'disabled="true"'
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <style>
  9. html {
  10. --scrollbarBG: #333333;
  11. --thumbBG: #080808;
  12. }
  13. body {
  14. background-color: #080808;
  15. color: #cccccc;
  16. }
  17. </style>
  18. <title>Paste</title>
  19. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  20. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css" integrity="sha384-yHIFVG6ClnONEA5yB5DJXfW2/KC173DIQrYoZMEtBvGzmf0PKiGyNEqe9N6BNDBH" crossorigin="anonymous"/>
  21. <link rel="stylesheet" href="https://shandan.one/css/grids-responsive-min.css"/>
  22. <link rel="stylesheet" href="https://shandan.one/css/responsive-visibility-collapse.css"/>
  23. </head>
  24. <body align="center" style="text-align: center">
  25. <div class="pure-g">
  26. % include('button-style')
  27. <div class="pure-u-1">
  28. <div class="pure-button-group" role="action" style="padding: 1em 0 0;">
  29. <button class="button-resize pure-button" type="submit" form="new"> New </button>
  30. <button class="button-resize pure-button" type="submit" form="paste" {{!disabled}}> Paste </button>
  31. <button class="button-resize pure-button" type="submit" form="download" {{!download_disabled}}> Download </button>
  32. </div>
  33. </div>
  34. <div class="pure-u-1">
  35. <div class="pure-button" style="margin: 1em 0 1em; background: #f5ab9e; color: #8c3a2b;">
  36. <a href="{{!link}}">{{ link }}</a>
  37. </div>
  38. <div class="pure-u-1">
  39. {{!form}}
  40. <form id="download" method="get" action="{{ download }}">
  41. <input name="raw" type="text" hidden="true" value="true" />
  42. </form>
  43. </div>
  44. </div>
  45. </body>
  46. </html>