-
Notifications
You must be signed in to change notification settings - Fork 0
/
kontakt.html
executable file
·82 lines (72 loc) · 3.79 KB
/
kontakt.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
title: Kontakt
heading: Schreibe uns noch heute!
subtitle: Wir freuen uns über jegliche Anfragen.
map:
latitude: 52.392848
longitude: 13.127774
address: "Universität Potsdam, Campus Griebnitzsee, Haus 6"
zoom: 15
---
<section class="diagonal">
<div class="container">
<form action="https://formspree.io/{{site.data.company.contact_email_address}}" method="POST" class="contact-form">
<div class="halves">
<div>
<label for="name">Vorname</label>
<input type="text" name="first-name" id="first-name" placeholder="Max" />
</div>
<div>
<label for="name">Nachname</label>
<input type="text" name="last-name" id="last-name" placeholder="Mustermann" />
</div>
</div>
<label for="email">Email Adresse</label>
<input type="email" name="_replyto" id="email" placeholder="max@example.com" required />
<label for="message">Nachricht</label>
<textarea name="message" id="message" placeholder="Hallo, ..."></textarea>
<input type="submit" value="Nachricht senden" />
</form>
</div>
</section>
<section class="diagonal map">
<div id="gmap_canvas"></div>
</section>
<section class="diagonal">
<div class="container halves aligned-top">
<div>
<h3>Address</h3>
<address><a target="_blank" href="https://www.google.com/maps/place/{{ page.map.address | url_encode }}">{{ page.map.address | replace: ", ", ", <br>" }}</a></address>
</div>
<div>
<h3>Email</h3>
<p><a href="mailto:{{ site.data.company.contact_email_address }}">{{ site.data.company.contact_email_address }}</a></p>
</div>
</div>
</section>
<script type="text/javascript">
window.mapData = {{ page.map | jsonify }};
function initMap() {
var myOptions = {
scrollwheel: false,
draggable: false,
panControl: false,
disableDefaultUI: true,
styles: [{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"color":"#f7f1df"}]},{"featureType":"landscape.natural","elementType":"geometry","stylers":[{"color":"#d0e3b4"}]},{"featureType":"landscape.natural.terrain","elementType":"geometry","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"poi.business","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi.medical","elementType":"geometry","stylers":[{"color":"#fbd3da"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#bde6ab"}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffe15f"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#efd151"}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"road.local","elementType":"geometry.fill","stylers":[{"color":"black"}]},{"featureType":"transit.station.airport","elementType":"geometry.fill","stylers":[{"color":"#cfb2db"}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#a2daf2"}]}],
zoom: window.mapData.zoom,
maxZoom: window.mapData.zoom,
minZoom: window.mapData.zoom,
center: new google.maps.LatLng(window.mapData.latitude, window.mapData.longitude),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("gmap_canvas"), myOptions);
marker = new google.maps.Marker({
map: map,
position: new google.maps.LatLng(window.mapData.latitude, window.mapData.longitude)
});
google.maps.event.addDomListener(window, "resize", function () {
map.setCenter(myOptions.center);
});
}
</script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key={{ site.google_maps_javascript_api_key }}&callback=initMap"></script>