-
Notifications
You must be signed in to change notification settings - Fork 1
/
contact.html
213 lines (200 loc) · 8.75 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
<html>
<head>
<title>Exokit - Contact</title>
<link rel="icon" href="media/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="style/global.css">
<link rel="stylesheet" type="text/css" href="style/contact.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
</head>
<body class="contact">
<header>
<script>
function expandLittleNavbar(){
document.getElementById('expandedLittleNavbar').style.height = "100vh"
document.getElementById('expandedLittleNavbar').style.visibility = "visible"
}
function hideLittleNavbar(){
document.getElementById('expandedLittleNavbar').style.height = "0vh"
document.getElementById('expandedLittleNavbar').style.visibility = "hidden"
}
</script>
<script>
function sendEmail(){
const fName = document.getElementById('fName').value;
const lName = document.getElementById('lName').value;
const email = document.getElementById('email').value;
const company = document.getElementById('company').value;
const message = document.getElementById('message').value;
if(fName != '' && lName != '' && /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email) === true && message != ''){
let data = JSON.stringify({fName: fName, lName: lName, email: email, company: company, message: message});
fetch("/sendEmail", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: data,
}).then(response => {
return response.json();
}).then(data =>{
console.log(data);
});
}
else{
console.log("invalid form inputs for sending an email")
}
}
</script>
<nav class="navbar navbar-expand-lg navbar-light pr-5 pl-5">
<a class="navbar-brand" href="index.html"><img src="media/logo.svg"><span id="brandName">Exokit</span></a>
<div class="collapse navbar-collapse" id="bigNavbar">
<div class="navbar-nav">
<a class="nav-item nav-link pr-4 pl-4" href="docs/"><h5 class="font-weight-normal">Docs</h2></a>
<a class="nav-item nav-link pr-4 pl-4" href="blog.html"><h5 class="font-weight-normal">Blog</h2></a>
<a class="nav-item nav-link pr-4 pl-4" href="about.html"><h5 class="font-weight-normal">About</h2></a>
<a class="nav-item nav-link pr-4 pl-4 active" href="contact.html"><h5 class="font-weight-normal">Contact</h2></a>
</div>
</div>
<div id="littleNavbar">
<h5 onclick="expandLittleNavbar()"class="mt-1" style="cursor: pointer">Contact<i class="fas fa-angle-down ml-2"></i></h5>
</div>
</nav>
</header>
<div id="expandedLittleNavbar">
<div class="row text-center mt-5">
<div class="col-12 mt-5 mb-5">
<img src="media/logo.svg" style="height: 7vh; width: auto;"></a>
<h2 style="font-family: Bison;">Exokit</h2>
</div>
<div class="col-12 mb-4">
<a href="index.html"><h5 class="font-weight-light">Home</h5></a>
</div>
<div class="col-12 mb-4">
<a href="docs/"><h5 class="font-weight-light">Docs</h5></a>
</div>
<div class="col-12 mb-4">
<a href="blog.html"><h5 class="font-weight-light">Blog</h5></a>
</div>
<div class="col-12 mb-4">
<a href="about.html"><h5 class="font-weight-light">About</h5></a>
</div>
<div class="col-12 mb-4">
<a href="contact.html"><h5>Contact</h5></a>
</div>
<div class="col-12 mb-4">
<i onclick="hideLittleNavbar()" class="fas fa-times fa-2x" style="margin-bottom: 5vh; cursor: pointer;"></i>
</div>
</div>
</div>
<div class="row contactSection pt-4">
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 pt-5 forms">
<h1>Send Us a Message</h1>
<br>
<form>
<div class="row mt-4">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<input required id="fName" type="text" class="form-control firstNameInput p-4 mb-3" aria-describedby="First Name" placeholder="First Name">
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<input required id="lName" type="text" class="form-control lastNameInput p-4" aria-describedby="Last Name" placeholder="Last Name">
</div>
</div>
<div class="row pt-3 pb-3">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<input required id="email" type="email" class="form-control emailInputContact p-4 mb-3" aria-describedby="Email" placeholder="Email">
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<input id="company" type="text" class="form-control companyInput p-4" aria-describedby="Company" placeholder="Company">
</div>
</div>
<div class="row pt-3 pb-3">
<div class="col-12">
<div class="form-group">
<textarea required id="message" class="form-control" id="messageInput" placeholder="Message" rows="3"></textarea>
</div>
</div>
</div>
<button onClick="sendEmail()" type="submit" class="contactButton btn btn-primary inline ml-2 mt-2 mb-2 p-3 pl-5 pr-5">Submit</button>
</form>
</div>
<div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 p-5">
<h1 class="pb-5">Contact Information</h1>
<h3 class="font-weight-light">hello@webmr.io</h3>
</div>
</div>
<footer>
<div class="row footer">
<div class="col-lg-4 col-md-12 col-sm-12 col-xs-12 pb-4">
<div class="row pl-4">
<div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
<p>Find Us</p>
<br/>
<p class="font-weight-light">101 Kensington Steet, Monteral, Canada.</p>
</div>
<div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
<a href="">
<p class="font-weight-light">Support</p>
</a>
<a href="">
<p class="font-weight-light">Careers</p>
</a>
<a href="about.html">
<p class="font-weight-light">About</p>
</a>
</div>
<div class="col-lg-4 col-md-12 col-sm-12 col-xs-12">
<a href="">
<p class="font-weight-light">Press</p>
</a>
<a href="">
<p class="font-weight-light">Investor</p>
</a>
</div>
</div>
</div>
<div class="col-lg-4 col-md-12 col-sm-12 col-xs-12 pb-5">
<div class="row text-center justify-content-center">
<form>
<div class="form-group form-inline d-inline">
<p class="font-weight-light">Sign up for updates.</p>
<input type="email" class="form-control emailInput p-3" aria-describedby="email" placeholder="Email">
<button type="submit" class="emailButton btn btn-primary inline ml-2 mt-2 mb-2 p-2 pl-4 pr-4">Sign up</button>
</div>
</form>
</div>
</div>
<div class="col-lg-4 col-md-12 col-sm-12 col-xs-12 pb-4">
<div class="row pl-5">
<div class="col-12 pl-0">
<p>Find us online</p>
<a class="footerLink" href="https://www.twitch.tv/avaer"><i class="fab fa-twitch pt-2 pb-2 pr-2"></i></a>
<a class="footerLink" href="https://discordapp.com/invite/Apk6cZN"><i class="fab fa-discord p-2"></i></a>
<a class="footerLink" href="https://exokit.slack.com/join/shared_invite/enQtNDI3NjcxNzYwMDIxLWU2NmFmOTEzMzk4NWNiYjRhMjVkYzcyNjg5YjUyMzZkYWM1ZGI4M2IwYWZiMjNlMTJjMDlkM2U3Y2JiNTc2M2Q"><i class="fab fa-slack p-2"></i></a>
<a class="footerLink" href="https://twitter.com/webmixedreality"><i class="fab fa-twitter p-2"></i></a>
</div>
<div class="col-12 pl-0">
<div class="row pt-5">
<div class="col-6 pl-0">
<a href="">
<p>Social</p>
</a>
</div>
<div class="col-6">
<a href="">
<p>Community</p>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-12 pt-4">
<div class="row">
<div class="col-12">
<p class="text-center font-weight-light">Copyright © 2019 Exokit Inc.</p>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>