Skip to content

Commit 2c79c8d

Browse files
committed
add "Contact" page
1 parent f190391 commit 2c79c8d

File tree

7 files changed

+16
-205
lines changed

7 files changed

+16
-205
lines changed

_data/footer.yml

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,5 @@
11
- links:
2-
- name: Pricing
3-
link: /pricing/
4-
- name: Blog
5-
link: /blog/
6-
- name: About
7-
link: /about/
8-
- name: Contact
9-
link: /contact/
10-
- links:
11-
- name: Login
12-
link: /
13-
new_window: true
14-
- name: Sign Up
15-
link: /
16-
new_window: true
17-
- name: Docs
18-
link: /
19-
new_window: true
20-
- name: Status
21-
link: /
22-
new_window: true
23-
- links:
24-
- name: Facebook
25-
link: https://facebook.com/cloudcannon/
26-
new_window: true
27-
social_icon: Facebook
28-
- name: Twitter
29-
link: https://twitter.com/cloudcannon/
30-
social_icon: Twitter
31-
new_window: true
32-
- name: YouTube
33-
link: https://youtube.com/cloudcannon/
34-
social_icon: YouTube
2+
- name: GitHub
3+
link: https://github.com/CESNET/ipfixprobe
354
new_window: true
36-
- name: RSS
37-
link: /feed.xml
38-
social_icon: RSS
39-
new_window: false
5+
social_icon: GitHub

_includes/social-icon.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
1515
<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M10,16.5V7.5L16,12M20,4.4C19.4,4.2 15.7,4 12,4C8.3,4 4.6,4.19 4,4.38C2.44,4.9 2,8.4 2,12C2,15.59 2.44,19.1 4,19.61C4.6,19.81 8.3,20 12,20C15.7,20 19.4,19.81 20,19.61C21.56,19.1 22,15.59 22,12C22,8.4 21.56,4.91 20,4.4Z" /></svg>
1616
{% when "RSS" %}
1717
<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9.9-9.9z"/></svg>
18+
{% when "GitHub" %}
19+
<img height="20" width="20" src="/images/github.png">
1820
{% endcase %}

_sass/contact.scss

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
}
66

77
.contact-box {
8-
@extend %flexbox;
9-
@include flex-flow(wrap);
108
max-width: 750px;
119
margin: 0 auto;
10+
text-align: center;
1211

1312
form {
1413
width: 100%
@@ -17,16 +16,4 @@
1716
p {
1817
margin: 0;
1918
}
20-
21-
.contact-form, .contact-details {
22-
@media #{$desktop} {
23-
-webkit-flex: 1;
24-
flex: 1;
25-
}
26-
margin: 0 30px;
27-
}
28-
29-
.contact-details {
30-
font-size: .9em;
31-
}
3219
}

_sass/elements.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ a:hover {
2020
text-decoration: underline;
2121
}
2222

23-
img {
24-
width: 100%;
25-
}
26-
2723
h1 strong, h2 strong {
2824
font-weight: 700;
2925
}

contact.html

Lines changed: 8 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
---
22
title: Contact
3-
heading: Get in touch today
4-
description: We'd love to help you improve your sales.
3+
heading: Feel free to contact us!
4+
5+
56

6-
map:
7-
latitude: -45.8787605
8-
longitude: 170.5027976
9-
address: "1 George Street, Dunedin, New Zealand"
10-
zoom: 13
117
---
12-
<div class="map" id="map"></div>
8+
139

1410

1511
<div class="contact-box">
16-
<form action="{{ site.baseurl }}/contact-success/" method="post" class="contact-form">
12+
<!--<form action="{{ site.baseurl }}/contact-success/" method="post" class="contact-form">
1713
<input type="hidden" name="_to" value="[email protected]" />
1814
<input type="text" name="_gotcha" style="display: none;">
1915
@@ -35,144 +31,7 @@ <h3 class="editable">Address</h3>
3531
3632
<h3 class="editable">Email</h3>
3733
<p><a href="mailto:[email protected]">[email protected]</a></p>
38-
</div>
34+
</div>-->
35+
Pavel Šiška <a href="mailto:[email protected]">[email protected]</a> <br>
36+
Karel Hynek <a href="mailto:[email protected]">[email protected]</a> <br>
3937
</div>
40-
41-
<script type="text/javascript">
42-
window.mapData = {{ page.map | jsonify }};
43-
44-
function initMap() {
45-
var myOptions = {
46-
scrollwheel: false,
47-
draggable: false,
48-
panControl: false,
49-
disableDefaultUI: true,
50-
styles: [{
51-
"featureType": "all",
52-
"elementType": "labels.text.fill",
53-
"stylers": [{
54-
"saturation": 36
55-
}, {
56-
"color": "#000000"
57-
}, {
58-
"lightness": 40
59-
}]
60-
}, {
61-
"featureType": "all",
62-
"elementType": "labels.text.stroke",
63-
"stylers": [{
64-
"visibility": "on"
65-
}, {
66-
"color": "#000000"
67-
}, {
68-
"lightness": 16
69-
}]
70-
}, {
71-
"featureType": "all",
72-
"elementType": "labels.icon",
73-
"stylers": [{
74-
"visibility": "off"
75-
}]
76-
}, {
77-
"featureType": "administrative",
78-
"elementType": "geometry.fill",
79-
"stylers": [{
80-
"color": "#000000"
81-
}, {
82-
"lightness": 20
83-
}]
84-
}, {
85-
"featureType": "administrative",
86-
"elementType": "geometry.stroke",
87-
"stylers": [{
88-
"color": "#000000"
89-
}, {
90-
"lightness": 17
91-
}, {
92-
"weight": 1.2
93-
}]
94-
}, {
95-
"featureType": "landscape",
96-
"elementType": "geometry",
97-
"stylers": [{
98-
"color": "#000000"
99-
}, {
100-
"lightness": 20
101-
}]
102-
}, {
103-
"featureType": "poi",
104-
"elementType": "geometry",
105-
"stylers": [{
106-
"color": "#000000"
107-
}, {
108-
"lightness": 21
109-
}]
110-
}, {
111-
"featureType": "road.highway",
112-
"elementType": "geometry.fill",
113-
"stylers": [{
114-
"color": "#000000"
115-
}, {
116-
"lightness": 17
117-
}]
118-
}, {
119-
"featureType": "road.highway",
120-
"elementType": "geometry.stroke",
121-
"stylers": [{
122-
"color": "#000000"
123-
}, {
124-
"lightness": 29
125-
}, {
126-
"weight": 0.2
127-
}]
128-
}, {
129-
"featureType": "road.arterial",
130-
"elementType": "geometry",
131-
"stylers": [{
132-
"color": "#000000"
133-
}, {
134-
"lightness": 18
135-
}]
136-
}, {
137-
"featureType": "road.local",
138-
"elementType": "geometry",
139-
"stylers": [{
140-
"color": "#000000"
141-
}, {
142-
"lightness": 16
143-
}]
144-
}, {
145-
"featureType": "transit",
146-
"elementType": "geometry",
147-
"stylers": [{
148-
"color": "#000000"
149-
}, {
150-
"lightness": 19
151-
}]
152-
}, {
153-
"featureType": "water",
154-
"elementType": "geometry",
155-
"stylers": [{
156-
"color": "#000000"
157-
}, {
158-
"lightness": 17
159-
}]
160-
}],
161-
zoom: window.mapData.zoom,
162-
maxZoom: window.mapData.zoom,
163-
minZoom: window.mapData.zoom,
164-
center: new google.maps.LatLng(window.mapData.latitude, window.mapData.longitude),
165-
mapTypeId: google.maps.MapTypeId.ROADMAP
166-
};
167-
map = new google.maps.Map(document.getElementById("map"), myOptions);
168-
marker = new google.maps.Marker({
169-
map: map,
170-
position: new google.maps.LatLng(window.mapData.latitude, window.mapData.longitude)
171-
});
172-
173-
google.maps.event.addDomListener(window, "resize", function () {
174-
map.setCenter(myOptions.center);
175-
});
176-
}
177-
</script>
178-
<script async defer src="https://maps.googleapis.com/maps/api/js?key={{ site.google_maps_javascript_api_key }}&amp;callback=initMap"></script>

css/screen.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
@import "footer";
1616
@import "cloudcannon";
1717
@import "get_options";
18-
@import "how"
18+
@import "developer";
19+
@import "how";

images/github.png

1.01 KB
Loading

0 commit comments

Comments
 (0)