You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

form.html 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"/>
  5. <title>Contact me</title>
  6. <style type="text/css">
  7. .page {
  8. width: 640px;
  9. padding: 8% 0 0;
  10. margin: auto;
  11. }
  12. .form {
  13. position: relative;
  14. z-index: 1;
  15. background: #FFFFFF;
  16. max-width: 640px;
  17. margin: 0 auto 100px;
  18. padding: 25px 45px 35px 45px;
  19. text-align: center;
  20. box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
  21. }
  22. .form input, .form textarea {
  23. outline: 0;
  24. background: #f2f2f2;
  25. width: 100%;
  26. border: 0;
  27. margin: 0 0 15px;
  28. padding: 15px;
  29. box-sizing: border-box;
  30. font-size: 14px;
  31. }
  32. .form textarea {
  33. resize: vertical;
  34. min-height: 100px;
  35. }
  36. .form button {
  37. text-transform: uppercase;
  38. outline: 0;
  39. background: #4CAF50;
  40. width: 100%;
  41. border: 0;
  42. padding: 15px;
  43. color: #FFFFFF;
  44. font-size: 14px;
  45. transition: all 0.3 ease;
  46. cursor: pointer;
  47. }
  48. .form button:hover, .form button:active, .form button:focus {
  49. background: #43A047;
  50. }
  51. h1 {
  52. font-family: sans-serif;
  53. font-variant: all-small-caps;
  54. font-size: 1.4em;
  55. margin: 0 0 0.9em 0;
  56. }
  57. </style>
  58. </head>
  59. <body>
  60. <div class="page">
  61. <div class="form">
  62. <form action="submit" method="post">
  63. <h1>Contact me</h1>
  64. {{ .csrfField }}
  65. <input type="text" name="name" placeholder="Your name" required>
  66. <input type="email" name="from" placeholder="Your e-mail address" required>
  67. <textarea name="message" placeholder="Your message" required></textarea>
  68. <button>SEND</button>
  69. </form>
  70. </div>
  71. </div>
  72. </body>
  73. </html>