Skip to content

Commit 847d396

Browse files
contacts
1 parent fb37514 commit 847d396

File tree

5 files changed

+22
-54
lines changed

5 files changed

+22
-54
lines changed

config.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ theme = "timer-hugo"
1414
name = "Blog"
1515
url = "/blog"
1616
weight = 4
17+
[[menu.nav]]
18+
name = "Contact"
19+
url = "/contact"
20+
weight = 5
1721
[[menu.nav]]
1822
name = "About"
1923
url = "/about"
20-
weight = 5
24+
weight = 6
2125

2226
[params]
2327
# Social accounts. Link to these accounts are displayed in the header and

content/contact/_index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: "Contact"
3+
date: 2018-09-09T18:19:33+06:00
4+
---
5+
6+
If you have specific technical questions please ask in the [gitter room](https://gitter.im/graphql-java/graphql-java) or open an [issue on github](https://github.com/graphql-java/graphql-java/issues).
7+

themes/timer-hugo/layouts/contact/list.html

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,22 @@
22

33
{{ partial "page-title.html" . }}
44

5-
{{ if .Site.Data.contact.enable }}
65
{{ "<!-- Contact Section Start -->" | safeHTML }}
76
<section id="contact-section">
87
<div class="container">
98
<div class="row">
10-
<div class="col-md-6">
9+
<div class="col-md-12">
1110
<div class="block">
12-
{{ with .Site.Data.contact.contactFormTitle }}<h2 class="subtitle wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".3s">{{ . }}</h2>{{ end }}
13-
{{ with .Site.Data.contact.contactFormSubtitle }}<p class="subtitle-des wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".5s">{{ . }}</p>{{ end }}
11+
{{ .Content }}
12+
<!-- <h2 class="subtitle wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".3s">Contact us</h2> -->
13+
<p class="subtitle wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".5s">How we can help?</p>
1414
<div class="contact-form">
15-
<form id="contact-form" method="#" action="#" role="form">
16-
17-
<div class="form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".6s">
18-
<input type="text" placeholder="Your Name" class="form-control" name="name" id="name">
19-
</div>
15+
<form id="contact-form" name="contac" method="POST" role="form" netlify>
2016

2117
<div class="form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".8s">
2218
<input type="email" placeholder="Your Email" class="form-control" name="email" id="email">
2319
</div>
2420

25-
<div class="form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay="1s">
26-
<input type="text" placeholder="Subject" class="form-control" name="subject" id="subject">
27-
</div>
28-
2921
<div class="form-group wow fadeInDown" data-wow-duration="500ms" data-wow-delay="1.2s">
3022
<textarea rows="6" placeholder="Message" class="form-control" name="message" id="message"></textarea>
3123
</div>
@@ -45,18 +37,8 @@
4537
</div>
4638
</div>
4739
</div>
48-
<div class="col-md-6">
49-
<div class="map-area">
50-
{{ with .Site.Data.contact.mapTitle }}<h2 class="subtitle wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".3s">{{ . }}</h2>{{ end }}
51-
{{ with .Site.Data.contact.mapSubtitle }}<p class="subtitle-des wow fadeInDown" data-wow-duration="500ms" data-wow-delay=".5s">{{ . }}</p>{{ end }}
52-
<div class="map">
53-
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3651.277552998015!2d90.3678744!3d23.773128800000002!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3755c0ae4adf3cb9%3A0x7f2cf443b764e4a4!2sShishu+Mela!5e0!3m2!1sen!2s!4v1435516022247"
54-
width="100%" height="400" frameborder="0" style="border:0" allowfullscreen></iframe>
55-
</div>
56-
</div>
57-
</div>
5840
</div>
59-
<div class="row address-details">
41+
<!-- <div class="row address-details">
6042
<div class="col-md-3">
6143
<div class="address wow fadeInLeft" data-wow-duration="500ms" data-wow-delay=".3s">
6244
<i class="ion-ios-location-outline"></i>
@@ -83,11 +65,10 @@
8365
<br>{{ with .Site.Data.contact.phone2 }}{{ . }}{{ end }}</p>
8466
</div>
8567
</div>
86-
</div>
68+
</div> -->
8769
</div>
8870
</section>
8971
{{ "<!-- Contact Section End -->" | safeHTML }}
90-
{{ end }}
9172

9273
{{ partial "cta.html" . }}
9374

themes/timer-hugo/layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<p class="copyright">Copyright:
1212
<span>
1313
<script>document.write(new Date().getFullYear())</script>
14-
</span> Design by
14+
</span> Original design by
1515
<a href="http://www.Themefisher.com" target="_blank">Themefisher</a>.
1616
</p>
1717
</div>

themes/timer-hugo/static/js/main.js

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
var defaults = {
66
animationTime: 1000,
77
easing: '',
8-
callbackBeforeTransition: function () {},
9-
callbackAfterTransition: function () {}
8+
callbackBeforeTransition: function () { },
9+
callbackAfterTransition: function () { }
1010
};
1111

1212
var config = $.extend({}, defaults, opts);
@@ -46,26 +46,15 @@
4646

4747
$('#contact-form').validate({
4848
rules: {
49-
name: {
50-
required: true,
51-
minlength: 4
52-
},
5349
email: {
5450
required: true,
5551
email: true
5652
},
57-
subject: {
58-
required: false,
59-
},
6053
message: {
6154
required: true,
6255
},
6356
},
6457
messages: {
65-
user_name: {
66-
required: "Come on, you have a name don't you?",
67-
minlength: "Your name must consist of at least 2 characters"
68-
},
6958
email: {
7059
required: "Please put your email address",
7160
},
@@ -74,19 +63,6 @@
7463
minlength: "Your name must consist of at least 2 characters"
7564
},
7665
},
77-
submitHandler: function (form) {
78-
$(form).ajaxSubmit({
79-
type: "POST",
80-
data: $(form).serialize(),
81-
url: "sendmail.php",
82-
success: function () {
83-
$('#contact-form #success').fadeIn();
84-
},
85-
error: function () {
86-
$('#contact-form #error').fadeIn();
87-
}
88-
});
89-
}
9066
});
9167

9268

0 commit comments

Comments
 (0)