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.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. }
  35. .form button {
  36. text-transform: uppercase;
  37. outline: 0;
  38. background: #4CAF50;
  39. width: 100%;
  40. border: 0;
  41. padding: 15px;
  42. color: #FFFFFF;
  43. font-size: 14px;
  44. transition: all 0.3 ease;
  45. cursor: pointer;
  46. }
  47. .form button:hover, .form button:active, .form button:focus {
  48. background: #43A047;
  49. }
  50. h1 {
  51. font-family: sans-serif;
  52. font-variant: all-small-caps;
  53. font-size: 1.4em;
  54. margin: 0 0 0.9em 0;
  55. }
  56. </style>
  57. </head>
  58. <body>
  59. <div class="page">
  60. <div class="form">
  61. <form action="submit" method="post">
  62. <h1>Contact me</h1>
  63. {{ .csrfField }}
  64. <input type="text" name="name" placeholder="Your name">
  65. <input type="email" name="from" placeholder="Your e-mail address">
  66. <textarea name="message" placeholder="Your message"></textarea>
  67. <button>SEND</button>
  68. </form>
  69. </div>
  70. </div>
  71. </body>
  72. </html>