Skip to content

Commit 5cfb84d

Browse files
Started working on contact page.
Created contact.scss with style for contact page. Added import in main.scss. New credits for new photos. Added 2 images for testing layout of contact page.
1 parent 37f8c88 commit 5cfb84d

File tree

6 files changed

+80
-3
lines changed

6 files changed

+80
-3
lines changed

_pages/04_contact.html

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,73 @@
44
permalink: /contact/
55
---
66

7-
<h1>This is the content of the Contact page</h1>
8-
<h2>Fill it in !!!!</h2>
7+
<style>
8+
.contact {
9+
background-size: cover;
10+
background: linear-gradient(90deg,
11+
rgba(0, 0, 0, 0.5),
12+
rgba(0, 0, 0, 0.5)),
13+
url("{{ site.baseurl }}/static/images/contact/contact_top_1920x600px.jpg") top center no-repeat;
14+
}
15+
</style>
16+
17+
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>
23+
</div>
24+
</div>
25+
<!--Contact form-->
26+
<form class="contact__form container" method="post" action="#" role="form">
27+
<div class="row">
28+
<div class="col-md-6">
29+
<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.">
38+
<div class="help-block with-errors"></div>
39+
</div>
40+
</div>
41+
</div>
42+
<div class="row">
43+
<div class="col-md-6">
44+
<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>
54+
</div>
55+
</div>
56+
</div>
57+
<div class="row">
58+
<div class="col-md-12">
59+
<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>
62+
<div class="help-block with-errors"></div>
63+
</div>
64+
</div>
65+
<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">-->
68+
</div>
69+
</div>
70+
<div class="row">
71+
<div class="col-md-12">
72+
<p class="text-muted"><strong>*</strong> Required fields</p>
73+
</div>
74+
</div>
75+
</form>
76+
</section>

_sass/contact.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.contact {
2+
margin-top: -66px;
3+
}
4+

static/credits.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
<a href='https://www.freepik.com/free-vector/abstract-running-design_1113095.htm'>Designed by Freepik</a>
66

7-
<a href='https://www.freepik.com/free-vector/abstract-vector-mesh-background-chaotically-connected-points-and-polygons-flying-in-space-flying-debris-futuristic-technology-style-card-lines-points-circles-and-planes-futuristic-design_1283675.htm'>Designed by Freepik</a>
7+
<a href='https://www.freepik.com/free-vector/abstract-vector-mesh-background-chaotically-connected-points-and-polygons-flying-in-space-flying-debris-futuristic-technology-style-card-lines-points-circles-and-planes-futuristic-design_1283675.htm'>Designed by Freepik</a>
8+
9+
10+
contact photo: Photo by Alejandro Escamilla on Unsplash / Photo by NordWood Themes on Unsplash
11+
contact: <a href='https://www.freepik.com/free-photo/blank-business-cards-and-cup-of-coffee-on-wooden-table-corporate-stationary-branding-mock-up_1187395.htm'>Designed by Freepik</a>

static/css/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ $postimage: "{{ page.image }}";
88
@import
99
"typography",
1010
"post",
11+
"contact",
1112
"style";
147 KB
Loading
68.3 KB
Loading

0 commit comments

Comments
 (0)