-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
297 lines (231 loc) · 11.2 KB
/
contact.html
File metadata and controls
297 lines (231 loc) · 11.2 KB
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="./images/hyperloop logo reqw.png">
<title>Hyperloop IIT Bombay | official website</title>
<link rel="stylesheet" href="home.css" />
<link rel="stylesheet" href="contact.css" />
<script src="./index.js"></script>
<!-- linked style sheet -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
/>
<!-- bootstrp -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
crossorigin="anonymous"
/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<!-- aos init -->
<script>
$(window).on('load', function() {
AOS.init({
duration: 1000,
once: true
});
});
</script>
<script src="./js/index.js"></script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Oswald&display=swap" rel="stylesheet">
</head>
<body>
<!-- navigation-bar -->
<nav class="navbar navbar-expand-md fixed-top">
<a class="navbar-brand " href="#">
<img src="images/hyperloop logo webw.png"class="navbar-logo" height="40">
</a>
<span class="navbar-toggler" data-toggle="collapse" data-target="#collapsibleNavbar">
<!-- <i class="fa fa-bars" aria-hidden="true" style="font-size: 25;color:rgb(218, 209, 209)"></i> -->
<div class="nav-icon" title="Menu">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
</span>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav ml-auto">
<li class="nav-item mx-3">
<a class="nav-link button-nav" href="https://hyperloopiitb.github.io/">HOME</a>
</li>
<li class="nav-item mx-3">
<a class="nav-link button-nav" href="./event.html">EVENTS</a>
</li>
<li class="nav-item mx-3">
<a class="nav-link button-nav" href="./team.html">TEAM</a>
</li>
<li class="nav-item mx-3">
<a class="nav-link button-nav" href="#">CONTACT US</a>
</li>
</ul>
</div>
</nav>
<!--
contact-content
-->
<div class="container" style="height: 180px" >
</div>
<!--Section: Contact v.1-->
<div class="container contact">
<section class="contact-section pb-5">
<div class="top container">
<div style="line-height: 12px; ">
<center>
<!--<h4 class="my-4" style="color:#2FC5F2">
Got a Question?
</h4>-->
<h1 class="my-4" id="contact-header" style="font-family: 'Oswald';font-size: 85px;" >
<b>
Got a Question?
</b>
</h1>
</center>
<!--<center>
<h1 class="my-4" id="contact-header" style="font-family: 'Oswald';font-size: 85px;" >
<b>
Contact Hyperloop IITB
</b>
</h1>
</center>
<center>
<h4 class="my-4" style="color:#FFBC58;">
Here are we to help and answer any question you might have<br>
We look forward to hearing from you 🙂
</h4>
</center>
</div>
</div>-->
<br><br><br><br>
<div class="row justify-content-center">
<!--Grid column-->
<div class="col-lg-8 mb-4 pr-3">
<!--Form with header-->
<div class="card shadow ">
<div class="card-body ">
<!--Header-->
<div class="container bg-transperent text-center py-2 mb-4" >
<h4 style="font-weight: bol;"> Write to us:</h4>
</div>
<br>
<!--Body-->
<form class=" needs-validation" id="idForm" >
<div class="d-flex justify-content-between " style="display:inline-block;">
<span class="form-group flex-grow-1 mr-2" style="display:inline-block">
<label for="form-firstname" style="justify-content: start;" ><b>First Name</b><span style="color:red">*</span></label>
<input type="text" id="form-firstname" class=" form-control" name="firstname" required />
</span>
<span class="form-group flex-grow-1" style="display:inline-block">
<label for="form-lastname" style="justify-content: start;"><b>Last Name</b><span style="color:red">*</span></label>
<input type="text" id="form-lastname" class=" form-control" name="lastname" required />
</span>
</div>
<div class="form-group ">
<label for="form-email"><b>Email</b><span style="color:red">*</span></label>
<input type="email" name="email" id="form-email" class=" form-control " required />
</div>
<div class="form-group ">
<label for="form-text"><b>Message</b><span style="color:red">*</span></label>
<textarea id="form-text" name="message" class=" form-control " rows="4" required></textarea>
</div>
<div class=" mt-4">
<button type="submit" style="background-color: #172DC9; color:white" class="btn px-3 shadow">Submit</button>
</div>
</form>
</div>
</div>
<!--Form with header-->
</div>
<!--Grid column-->
<!--Grid column-->
<div class="col-lg-4 address-info pl-4" >
<!--Buttons-->
<div class=" shadow py-5 contact-info" style="background-color:white">
<div class="d-flex justify-content-start">
<i class="fa fa-map-marker"></i>
<p class="d-flex align-self-center"><a href="#">Hyperloop IIT Bombay Maharastra</a></p>
</div>
<div class="d-flex justify-content-start">
<i class="fa fa-phone"></i>
<p class="d-flex align-self-center"><a href="#">+91 7735944281</a></p>
</div>
<div class="d-flex justify-content-start">
<i class="fa fa-envelope"></i>
</div>
</div>
<!--Grid column-->
</div>
</section>
<!--Section: Contact v.1-->
</div>
<a id="scroller" class="shadow-lg" href="#" style="transform: scale(0);">
<i class="fa fa-chevron-up shadow-lg " aria-hidden="true"></i>
</a>
<!--
footer section
-->
<footer class="">
<center>
<div class="row footer_top">
<div class="footer-left col-sm-12 col-md-6">
<p class="footer-company-about d-flex justify-content-center ">
Follow Us On
</p>
<div class="footer-icons d-flex justify-content-center">
<a href="https://www.facebook.com/hyperloopiitb/"><i class="fa fa-facebook"></i></a>
<a href="https://www.instagram.com/hyperloop_iitb/"><i class="fa fa-instagram"></i></a>
<a href="https://www.linkedin.com/company/hyperloop-iitb/"><i class="fa fa-linkedin"></i></a>
</div>
</div>
<div class="footer-right col-sm-12 col-md-6">
<div class="d-flex justify-content-center">
<i class="fa fa-envelope"></i>
</div>
</div>
</div>
</center>
<center>
<div class="footer_bottom">
<p class="text-muted"> Hyperloop IIT Bombay © 2020 </p>
</div>
</center>
</footer>
</body>
<script>
$(window).on("scroll", function () {
if ($(window).scrollTop() >= screen.availHeight/3) {
$("#scroller").css({ "transform": "scale(1)" });
}
else {
$("#scroller").css({ "transform": "scale(0)" });
}
});
</script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
$("#idForm").submit(function(e) {
console.log("hello");
e.preventDefault(); // avoid to execute the actual submit of the form.
const name = document.querySelector("#form-firstname").value + " "+ document.querySelector("#form-lastname").value;
const email = document.querySelector("#form-email").value;
const message = document.querySelector("#form-text").value;
var formData = { name: name, email: email, message: message };
document.querySelector("#idForm").reset();
axios.post("https://hyperloopmessageportal.herokuapp.com/",formData).then((response)=>{
alert("successfully message sent");
}).catch(e=>{
alert(e.toString());
});
});
</script>
</html>