Skip to content

Commit b29ab68

Browse files
Added contact section in navigation and index.html.
Modified necessary styles in contact.scss.
1 parent 8905f77 commit b29ab68

File tree

3 files changed

+69
-1
lines changed

3 files changed

+69
-1
lines changed

_includes/navigation.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
<li class="nav-item">
6868
<a class="navigation__link nav-link" href="#about">About</a>
6969
</li>
70+
<li class="nav-item">
71+
<a class="navigation__link nav-link" href="#contact">Contact</a>
72+
</li>
7073
{% else %}
7174
<li class="nav-item">
7275
<a class="navigation__link nav-link" href="{{ '/' | prepend: site.baseurl }}">Home<span class="sr-only">(current)</span></a>

_sass/contact.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.contact {
2+
margin-top: 10%;
23
}
34

45
.contact__background-img-container {
@@ -26,7 +27,7 @@
2627

2728
@media (max-width: 576px) {
2829
.contact__form {
29-
max-width: 96%;
30+
max-width: 96%;
3031
}
3132
}
3233

index.html

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,68 @@ <h2 class="services__title text-left">Engaging Core Developers</h2>
158158
alt="Core developers in action">
159159
</div>
160160
</div>
161+
</section>
162+
163+
<section id="contact" class="contact">
164+
<div class="contact__background-img-container">
165+
<picture>
166+
<source srcset="../static/images/contact/contact_top_450x150px.jpg 450w,
167+
../static/images/contact/contact_top_960x300px.jpg 960w,
168+
../static/images/contact/contact_top_1920x600px.jpg 1920w"
169+
media="(orientation: landscape)"
170+
sizes="100vw">
171+
<source srcset="../static/images/contact/contact_top_750x650px.jpg 750w,
172+
../static/images/contact/contact_top_1650x1100px.jpg 1650w"
173+
media="(orientation: portrait)"
174+
sizes="100vw">
175+
<img class="contact__background-img"
176+
src="../static/images/contact/contact_top_960x300px.jpg"
177+
alt="Contact Us">
178+
</picture>
179+
<div class="contact__page-title-container row container-fluid">
180+
<div class="col-sm-12">
181+
<h1 class="contact__page-title">Contact Us</h1>
182+
<h2 class="contact__page-subtitle">We Are Happy To Help</h2>
183+
</div>
184+
</div>
185+
</div>
186+
187+
<!--Contact form-->
188+
<form class="contact__form container" method="POST" action="//formspree.io/py.sprints@gmail.com" role="form">
189+
<div class="row">
190+
<div class="col-md-6">
191+
<div class="form-group">
192+
<label class="contact__label" for="contact__form-name">Full Name *</label>
193+
<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.">
194+
<div class="help-block with-errors"></div>
195+
</div>
196+
</div>
197+
<div class="col-md-6">
198+
<div class="form-group">
199+
<label class="contact__label" for="contact__form-email">Email *</label>
200+
<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.">
201+
</div>
202+
</div>
203+
</div>
204+
205+
<div class="row">
206+
<div class="col-md-12">
207+
<div class="form-group">
208+
<label class="contact__label" for="contact__form-message">Message *</label>
209+
<textarea id="contact__form-message" name="message" class="form-control" placeholder="Message *" rows="4" required="required" data-error="Please,leave us a message."></textarea>
210+
<div class="help-block with-errors"></div>
211+
</div>
212+
</div>
213+
<div class="col-md-12 text-center">
214+
<input type="text" name="_gotcha" style="display: none">
215+
<input type="hidden" name="_subject" value="Message from Python Sprints">
216+
<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>
217+
</div>
218+
</div>
219+
<div class="row">
220+
<div class="col-md-12">
221+
<p class="text-muted"><strong>*</strong> Required fields</p>
222+
</div>
223+
</div>
224+
</form>
161225
</section>

0 commit comments

Comments
 (0)