|
5 | 5 | --- |
6 | 6 |
|
7 | 7 | <style> |
8 | | - .contact { |
| 8 | + .contact__background-img { |
9 | 9 | background-size: cover; |
10 | 10 | background: linear-gradient(90deg, |
11 | | - rgba(0, 0, 0, 0.5), |
12 | | - rgba(0, 0, 0, 0.5)), |
| 11 | + rgba(0, 0, 0, 0.7), |
| 12 | + rgba(0, 0, 0, 0.7)), |
13 | 13 | url("{{ site.baseurl }}/static/images/contact/contact_top_1920x600px.jpg") top center no-repeat; |
14 | 14 | } |
15 | 15 | </style> |
16 | 16 |
|
17 | 17 |
|
18 | 18 | <section class="contact"> |
19 | | - <div class="row container-fluid"> |
20 | | - <!--<img class="img-fluid" src="{{ site.baseurl }}/static/images/contact/contact_top_1920x600px.jpg">--> |
21 | | - <div class="col-sm-12"> |
22 | | - <h2 class="section-title">Contact</h2> |
| 19 | + <div class="contact__background-img"> |
| 20 | + <div class="row container-fluid"> |
| 21 | + <div class="col-sm-12"> |
| 22 | + <h2 class="section-title contact__title">Contact</h2> |
| 23 | + <h3 class="contact__subtitle">Let us know about your ideas and concerns</h3> |
23 | 24 | </div> |
24 | 25 | </div> |
| 26 | + </div> |
25 | 27 | <!--Contact form--> |
26 | | - <form class="contact__form container" method="post" action="#" role="form"> |
| 28 | + <form class="contact__form container" method="POST" action="//formspree.io/tomaszk1@hotmail.co.uk" role="form"> |
27 | 29 | <div class="row"> |
28 | 30 | <div class="col-md-6"> |
29 | 31 | <div class="form-group"> |
30 | | - <label class="contact__label" for="form_name">Firstname *</label> |
31 | | - <input id="form_name" type="text" name="name" class="form-control" placeholder="Please enter your firstname *" required="required" data-error="Firstname is required."> |
32 | | - </div> |
33 | | - </div> |
34 | | - <div class="col-md-6"> |
35 | | - <div class="form-group"> |
36 | | - <label class="contact__label" for="form_lastname">Lastname *</label> |
37 | | - <input id="form_lastname" type="text" name="surname" class="form-control" placeholder="Please enter your lastname *" required="required" data-error="Lastname is required."> |
| 32 | + <label class="contact__label" for="contact__form-name">Full Name *</label> |
| 33 | + <input id="contact__form-name" type="text" name="name" class="form-control" placeholder="Please enter your full name *" required="required" data-error="Full name is required."> |
38 | 34 | <div class="help-block with-errors"></div> |
39 | 35 | </div> |
40 | 36 | </div> |
41 | | - </div> |
42 | | - <div class="row"> |
43 | | - <div class="col-md-6"> |
| 37 | + <div class="col-md-6"> |
44 | 38 | <div class="form-group"> |
45 | | - <label class="contact__label" for="form_email">Email *</label> |
46 | | - <input id="form_email" type="email" name="email" class="form-control" placeholder="Please enter your email *" required="required" data-error="Valid email is required."> |
47 | | - </div> |
48 | | - </div> |
49 | | - <div class="col-md-6"> |
50 | | - <div class="form-group"> |
51 | | - <label class="contact__label" for="form_phone">Phone</label> |
52 | | - <input id="form_phone" type="tel" name="phone" class="form-control" placeholder="Please enter your phone"> |
53 | | - <div class="help-block with-errors"></div> |
| 39 | + <label class="contact__label" for="contact__form-email">Email *</label> |
| 40 | + <input id="contact__form-email" type="email" name="email" class="form-control" placeholder="Please enter your email *" required="required" data-error="Valid email is required."> |
54 | 41 | </div> |
55 | 42 | </div> |
56 | 43 | </div> |
| 44 | + |
57 | 45 | <div class="row"> |
58 | 46 | <div class="col-md-12"> |
59 | 47 | <div class="form-group"> |
60 | | - <label class="contact__label" for="form_message">Message *</label> |
61 | | - <textarea id="form_message" name="message" class="form-control" placeholder="Message *" rows="4" required="required" data-error="Please,leave us a message."></textarea> |
| 48 | + <label class="contact__label" for="contact__form-message">Message *</label> |
| 49 | + <textarea id="contact__form-message" name="message" class="form-control" placeholder="Message *" rows="4" required="required" data-error="Please,leave us a message."></textarea> |
62 | 50 | <div class="help-block with-errors"></div> |
63 | 51 | </div> |
64 | 52 | </div> |
65 | 53 | <div class="col-md-12"> |
66 | | - <button type="button" class="contact__submit-button btn btn-success btn-send btn-lg">Send Message<span class="contact__icon"><i class="fas fa-envelope"></i></span></button> |
67 | | - <!--<input type="submit" class="contact__submit-button btn btn-success btn-send btn-lg" value="Send message">--> |
| 54 | + <input type="text" name="_gotcha" style="display: none"> |
| 55 | + <input type="hidden" name="_subject" value="Message from Python Sprints"> |
| 56 | + <button type="submit" class="contact__submit-button btn btn-success btn-send btn-lg">Send Message<span class="contact__icon"><i class="fas fa-envelope"></i></span></button> |
68 | 57 | </div> |
69 | 58 | </div> |
70 | 59 | <div class="row"> |
|
0 commit comments