-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
214 lines (214 loc) · 10.3 KB
/
contact.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Code Labs AB</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<!-- Place favicon.ico in the root directory -->
<!-- Mandatory Stylesheets -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700|Roboto:400,900" rel="stylesheet">
<!-- Plugin Stylesheets -->
<link rel="stylesheet" href="css/plugins/owl-carousel/owl.carousel.min.css">
<link rel="stylesheet" href="css/plugins/owl-carousel/owl.theme.default.min.css">
<link rel="stylesheet" href="css/plugins/owl-carousel/owl.carousel.custom.css">
<link rel="stylesheet" href="css/plugins/devices/devices.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.2/css/all.css" integrity="sha384-/rXc/GQVaYpyDdyxK+ecHPVYJSN9bmVFBvjA/9eOB+pb3F2w2N6fc5qB9Ew5yIns" crossorigin="anonymous">
<link rel="stylesheet" href="css/simple-line-icons.css">
<link rel="stylesheet" href="css/plugins/magnific-popup/magnific-popup.css">
<link rel="stylesheet" href="css/plugins/aos/aos.css">
<link rel="stylesheet" href="css/plugins/loaders-css/loaders.min.css">
<!-- Template Stylesheets -->
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/themes/theme-purple.css">
<link rel="stylesheet" href="css/custom.css">
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='https://www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-108068039-1');ga('send','pageview');
</script>
<!-- test contact form stuff with jquery instead of php -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
function submitToAPI() {
var URL = "https://3eowzd622g.execute-api.us-east-1.amazonaws.com/contact-form";
var data = {
firstname: $("#form_firstname").val(),
surname: $("#form_surname").val(),
email: $("#form_email").val(),
message: $("#form_message").val()
};
$.ajax({
type: "POST",
url: URL,
dataType: "json",
contentType: "application/json",
data: JSON.stringify(data),
success: function () {
// clear form and show a success message
alert("Your message has been successfully submitted. We will contact you shortly.");
location.reload();
},
error: function () {
// show an error message
alert("There was an error while submitting the form. Please try again.");
}
});
}
</script>
</head>
<body class="tp--inner">
<!--
NAVBAR
==================================================
-->
<!-- Inner Page Header
================================================== -->
<section class="tp--inner-header tp--height-70 text-center" style="background: url('images/Contact_Header.jpg');background: cover">
<nav class="navbar navbar-expand-md navbar-light static-top">
<a class="navbar-brand" href="index.html">
<p class="mt-2 ml-xs-1 ml-md-2 ml-xl-4">
<small>
<img src="images/logos/CodeLabs_Logo2_White.png" class="float-left mr-1" alt="Code Labs AB." height="25">
</small>
</p>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-supported-content">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar-supported-content">
<ul class="navbar-nav ml-auto nav-pills nav-fill">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="services.html">Services</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="contact.html">Contact</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-xl-12">
<h2 class="text-light" style="font-family: Montserrat, sans-serif; font-weight:700;">Contact</h2>
</div>
</div>
</div>
</section>
<!-- Contact Section
================================================== -->
<section id="contact" class="tp--section tp--contact tp--padding-lg">
<div class="container">
<div class="row justify-content-center">
<div class="col-sm-6 col-sm-offset-3">
<form id="contact-form" role="form">
<div class="messages"></div>
<div class="controls">
<div class="row">
<div class="col-md-12">
<label for="form_firstname">Full Name *</label>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="form_firstname" class="sr-only">First Name *</label>
<input id="form_firstname" type="text" name="firstname" class="form-control" placeholder="First name" required="required">
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="form_surname" class="sr-only">Last Name *</label>
<input id="form_surname" type="text" name="surname" class="form-control" placeholder="Last name" required="required">
<div class="help-block with-errors"></div>
</div>
</div>
</div>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-12">
<div class="form-group">
<label for="form_email">Email *</label>
<input id="form_email" type="email" name="email" class="form-control" placeholder="Please enter your email" required="required">
<div class="help-block with-errors"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="form_message">Message *</label>
<textarea id="form_message" name="message" class="form-control" placeholder="Please enter your message" rows="4" required="required"></textarea>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-12 text-center">
<input type="submit" class="btn btn-primary btn-lg btn-send" onClick="submitToAPI()">
</div>
</div>
</div>
</form>
</div>
</div><!-- /.row -->
</div>
</section>
<!-- Footer
================================================== -->
<footer id="footer" class="tp--footer tp--section-dark tp--gradient-20 tp--footer-1 text-xs-center" style="background: #2e60be !important;">
<div class="container">
<div class="row tp--social">
<div class="col-lg-12 text-center">
<img src="images/logos/CodeLabs_Logo2_White.png" height="30px">
<br>
<br>
<p class="text-center font-weight-normal text-uppercase">
Code Labs AB | Kommendörsgatan 11, 114 48 Stockholm<br>
Org: 559064-2442 | Tel: 08-128 164 00 | [email protected]
</p>
</div>
</div></div></div>
<div class="row tp--social">
<div class="col-lg-12 text-center">
<a class="icon" href="https://www.linkedin.com/company/15189915/" target="_blank"><i class="fab fa-linkedin"></i></a>
<a class="icon" href="https://www.facebook.com/codelabsab/" target="_blank"><i class="fab fa-facebook"></i></a>
<a class="icon" href="https://github.com/codelabsab" target="_blank"><i class="fab fa-github"></i></a>
</div>
</div>
</div>
</footer>
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!-- Bootstrap Plugins -->
<script src="js/bootstrap.min.js"></script>
<!-- Template Plugins -->
<script src="js/plugins/classie/classie.js"></script>
<script src="js/plugins/owl-carousel/owl.carousel.min.js"></script>
<script src="js/plugins/isotope/isotope.pkgd.min.js"></script>
<script src="js/plugins/magnific-popup/jquery.magnific-popup.min.js"></script>
<script src="js/plugins/modernizr/modernizr-custom.js"></script>
<script src="js/plugins/aos/aos.js"
integrity="sha384-McD+Tmp+lmBZadiJGm7E+nBPfTrToJ7tG8OpvmPCsyvGbG6VD8nLvRE7O8h9CWk8"
crossorigin="anonymous"></script>
<script src="js/plugins/jquery-validate/jquery.validate.min.js"></script>
<script src="js/plugins/loaders-css/loaders.css.js"></script>
<!-- Template Javascript -->
<script src="js/main.js"></script>
</body>
</html>