message.html 815 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/sh
  2. template() {
  3. message=$1
  4. cat <<EOF
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta charset="UTF-8">
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <title>toymaker::error</title>
  11. <style>
  12. * {
  13. box-sizing: border-box;
  14. }
  15. a {
  16. color: #00afff;
  17. }
  18. a:hover {
  19. background-color: #db9d3b;
  20. color: #000000;
  21. }
  22. </style>
  23. </head>
  24. <body style="background-color: #292929; color: #fafafa;">
  25. <header style="font-size: 1.25rem; padding-top: .3125rem; padding-bottom: .3125rem;">
  26. <a href="/toys/" style="font-family: monospace; text-decoration: none;">toymaker</a>
  27. </header>
  28. <main style="margin-left: 1rem; margin-top: 2rem;">
  29. EOF
  30. printf '\t\t\t<span style="font-size: 2rem; color: #ff5c57;">%s</span>\n' "$message"
  31. cat <<EOF
  32. </main>
  33. </body>
  34. </html>
  35. EOF
  36. }