-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontact.html
More file actions
394 lines (353 loc) · 17.7 KB
/
contact.html
File metadata and controls
394 lines (353 loc) · 17.7 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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Learn is a modern and fully responsive Template by WebThemez.">
<meta name="author" content="webThemez.com">
<title>Contact - Embodied Perception and Interaction Lab (EmPACT) Lab</title>
<link rel="favicon" href="assets/images/favicon.png">
<link rel="stylesheet" media="screen" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<!-- Custom styles for our template -->
<link rel="stylesheet" href="assets/css/bootstrap-theme.css" media="screen">
<link rel="stylesheet" href="assets/css/style.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
<!-- Custom Mobile Navbar Fix -->
<style>
/* Custom hamburger menu with red bars */
@media (max-width: 767px) {
.navbar-toggle {
display: block !important;
position: relative !important;
z-index: 10000 !important;
background-color: transparent !important;
border: none !important;
padding: 12px !important;
margin: 10px 15px !important;
float: right !important;
cursor: pointer !important;
pointer-events: auto !important;
width: 50px;
height: 50px;
}
.navbar-toggle .icon-bar {
display: block !important;
width: 30px !important;
height: 4px !important;
background-color: #dc2626 !important;
border-radius: 2px !important;
margin: 5px 0 !important;
transition: all 0.3s ease !important;
}
.navbar-toggle:hover .icon-bar {
background-color: #991b1b !important;
}
.navbar-collapse {
max-height: none !important;
overflow: visible !important;
background-color: #fff !important;
border-top: 2px solid #dc2626 !important;
transform-origin: top;
transition: transform 0.3s ease-out, opacity 0.3s ease-out !important;
}
.navbar-collapse.collapse {
display: block !important;
transform: scaleY(0) !important;
opacity: 0 !important;
max-height: 0 !important;
overflow: hidden !important;
}
.navbar-collapse.collapse.in {
transform: scaleY(1) !important;
opacity: 1 !important;
max-height: 500px !important;
overflow-y: visible !important;
}
}
</style>
</head>
<body>
<!-- Fixed navbar -->
<div class="navbar navbar-inverse">
<div class="container">
<div class="navbar-header">
<!-- Button for smallest screens -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-main" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">
<img src="assets/images/logo.png" alt="Techro HTML5 template"></a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse-main">
<ul class="nav navbar-nav pull-right mainNav">
<li><a href="index.html">Home</a></li>
<li><a href="research.html">Research</a></li>
<li><a href="people.html">People</a></li>
<li><a href="publication.html">Publication</a></li>
<li><a href="news.html">News</a></li>
<li class="active"><a href="contact.html">Contact</a></li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
<!-- /.navbar -->
<header id="head" class="secondary">
<div class="container">
<div class="row">
<div class="col-sm-8">
<h1>Contact us</h1>
</div>
</div>
</div>
</header>
<!-- container -->
<div class="container" style="margin-top: 40px;">
<div class="row">
<div class="col-md-6">
<div style="background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%); border-radius: 12px; padding: 40px 35px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); border: 1px solid #e8e8e8;">
<h3 style="color: #1a1a1a; font-weight: 600; margin-bottom: 10px;">Get in Touch</h3>
<div style="width: 50px; height: 3px; background: linear-gradient(to right, #dc2626, #ef4444); margin-bottom: 20px; border-radius: 2px;"></div>
<p style="color: #666; line-height: 1.7; margin-bottom: 25px;">
We welcome inquiries from prospective students, researchers, and collaborators interested in joining EmPACT Lab. If you are passionate about embodied perception and interaction research, please reach out to us via email to discuss potential opportunities and collaborations.
</p>
<!-- Google Sheets Integration Instructions:
1. Go to: https://script.google.com/
2. Create a new project
3. Paste the Apps Script code (provided in comments below)
4. Deploy as Web App
5. Replace SCRIPT_URL below with your deployment URL
-->
<form id="contactForm" onsubmit="handleFormSubmit(event)" style="margin-top: 20px;">
<div class="form-group">
<label style="color: #333; font-weight: 600; margin-bottom: 5px; display: block;">Name <span style="color: #dc2626;">*</span></label>
<input type="text" name="name" class="form-control" placeholder="Your full name" required style="border: 1px solid #ddd; border-radius: 6px; padding: 12px 15px; font-size: 14px; transition: all 0.3s;" onfocus="this.style.borderColor='#dc2626'; this.style.boxShadow='0 0 0 3px rgba(220,38,38,0.1)'" onblur="this.style.borderColor='#ddd'; this.style.boxShadow='none'">
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label style="color: #333; font-weight: 600; margin-bottom: 5px; display: block;">Email <span style="color: #dc2626;">*</span></label>
<input type="email" name="email" class="form-control" placeholder="your.email@example.com" required style="border: 1px solid #ddd; border-radius: 6px; padding: 12px 15px; font-size: 14px; transition: all 0.3s;" onfocus="this.style.borderColor='#dc2626'; this.style.boxShadow='0 0 0 3px rgba(220,38,38,0.1)'" onblur="this.style.borderColor='#ddd'; this.style.boxShadow='none'">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label style="color: #333; font-weight: 600; margin-bottom: 5px; display: block;">Phone</label>
<input type="text" name="phone" class="form-control" placeholder="+65 1234 5678" style="border: 1px solid #ddd; border-radius: 6px; padding: 12px 15px; font-size: 14px; transition: all 0.3s;" onfocus="this.style.borderColor='#dc2626'; this.style.boxShadow='0 0 0 3px rgba(220,38,38,0.1)'" onblur="this.style.borderColor='#ddd'; this.style.boxShadow='none'">
</div>
</div>
</div>
<div class="form-group">
<label style="color: #333; font-weight: 600; margin-bottom: 5px; display: block;">Subject <span style="color: #dc2626;">*</span></label>
<input type="text" name="subject" class="form-control" placeholder="What is this regarding?" required style="border: 1px solid #ddd; border-radius: 6px; padding: 12px 15px; font-size: 14px; transition: all 0.3s;" onfocus="this.style.borderColor='#dc2626'; this.style.boxShadow='0 0 0 3px rgba(220,38,38,0.1)'" onblur="this.style.borderColor='#ddd'; this.style.boxShadow='none'">
</div>
<div class="form-group">
<label style="color: #333; font-weight: 600; margin-bottom: 5px; display: block;">Message <span style="color: #dc2626;">*</span></label>
<textarea name="message" class="form-control" placeholder="Write your message here..." required style="height:120px; border: 1px solid #ddd; border-radius: 6px; padding: 12px 15px; font-size: 14px; resize: vertical; transition: all 0.3s;" onfocus="this.style.borderColor='#dc2626'; this.style.boxShadow='0 0 0 3px rgba(220,38,38,0.1)'" onblur="this.style.borderColor='#ddd'; this.style.boxShadow='none'"></textarea>
</div>
<button type="submit" id="submitBtn" style="background: linear-gradient(135deg, #dc2626, #ef4444); color: white; border: none; padding: 14px 35px; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 12px rgba(220,38,38,0.3);" onmouseover="this.style.transform='translateY(-2px)'; this.style.boxShadow='0 6px 16px rgba(220,38,38,0.4)'" onmouseout="this.style.transform='translateY(0)'; this.style.boxShadow='0 4px 12px rgba(220,38,38,0.3)'">
<i class="fa fa-paper-plane" style="margin-right: 8px;"></i>Send Message
</button>
<div id="formMessage" style="margin-top: 15px; display: none;"></div>
</form>
</div>
</div>
<div class="col-md-6">
<div style="background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%); border-radius: 12px; padding: 40px 35px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); border: 1px solid #e8e8e8; margin-bottom: 25px;">
<h3 style="color: #1a1a1a; font-weight: 600; margin-bottom: 10px;">Office Address</h3>
<div style="width: 50px; height: 3px; background: linear-gradient(to right, #dc2626, #ef4444); margin-bottom: 20px; border-radius: 2px;"></div>
<div class="contact-info">
<div style="margin-bottom: 20px;">
<h5 style="color: #dc2626; font-weight: 600; margin-bottom: 8px;"><i class="fa fa-map-marker" style="margin-right: 8px;"></i>Address</h5>
<p style="color: #666; line-height: 1.7; margin-left: 24px;">School of Electrical and Electronic Engineering<br>
Block S2.1, 50 Nanyang Avenue<br>
Nanyang Technological University<br>
Singapore</p>
</div>
<div style="margin-bottom: 20px;">
<h5 style="color: #dc2626; font-weight: 600; margin-bottom: 8px;"><i class="fa fa-envelope" style="margin-right: 8px;"></i>Email</h5>
<p style="color: #666; margin-left: 24px;"><a href="mailto:linwang@ntu.edu.sg" style="color: #666; text-decoration: none; transition: color 0.2s;" onmouseover="this.style.color='#dc2626'" onmouseout="this.style.color='#666'">linwang@ntu.edu.sg</a></p>
<p style="color: #666; margin-left: 24px;"><a href="mailto:zhihao.gu@ntu.edu.sg" style="color: #666; text-decoration: none; transition: color 0.2s;" onmouseover="this.style.color='#dc2626'" onmouseout="this.style.color='#666'">zhihao.gu@ntu.edu.sg</a> (Postdoc Staff)</p>
</div>
<div style="margin-bottom: 0;">
<h5 style="color: #dc2626; font-weight: 600; margin-bottom: 8px;"><i class="fa fa-phone" style="margin-right: 8px;"></i>Phone</h5>
<p style="color: #666; margin-left: 24px;">(65) 6790-5629</p>
</div>
</div>
</div>
<div style="background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%); border-radius: 12px; padding: 40px 35px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); border: 1px solid #e8e8e8;">
<h3 style="color: #1a1a1a; font-weight: 600; margin-bottom: 10px;">Connect with Us</h3>
<div style="width: 50px; height: 3px; background: linear-gradient(to right, #dc2626, #ef4444); margin-bottom: 20px; border-radius: 2px;"></div>
<p style="color: #666; line-height: 1.7; margin-bottom: 20px;">
Stay informed about our latest research developments, publications, and laboratory activities by following our professional networks and repositories.
</p>
<div class="contact-info">
<div style="margin-bottom: 15px;">
<h5 style="color: #dc2626; font-weight: 600; margin-bottom: 8px;"><i class="fa fa-linkedin" style="margin-right: 8px;"></i>LinkedIn</h5>
<p style="margin-left: 24px;"><a href="https://www.linkedin.com/in/addison-lin-wang-62542b222/" target="_blank" style="color: #666; text-decoration: none; font-size: 13px; transition: color 0.2s;" onmouseover="this.style.color='#dc2626'" onmouseout="this.style.color='#666'">Addison Lin Wang</a></p>
</div>
<div style="margin-bottom: 0;">
<h5 style="color: #dc2626; font-weight: 600; margin-bottom: 8px;"><i class="fa fa-github" style="margin-right: 8px;"></i>GitHub</h5>
<p style="margin-left: 24px;"><a href="https://github.com/empactlab" target="_blank" style="color: #666; text-decoration: none; font-size: 13px; transition: color 0.2s;" onmouseover="this.style.color='#dc2626'" onmouseout="this.style.color='#666'">empactlab</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// GOOGLE SHEETS INTEGRATION
// Replace this URL with your Google Apps Script Web App URL
const SCRIPT_URL = 'https://script.google.com/macros/s/AKfycbyGtVzNWB00dSw6w4KogSxv64Sym5DqzKVRWMoMgfZ6wAfeuNJqQ3TX_-l3IYMZOjA9/exec';
async function handleFormSubmit(event) {
event.preventDefault();
const submitBtn = document.getElementById('submitBtn');
const formMessage = document.getElementById('formMessage');
const form = document.getElementById('contactForm');
// Disable button and show loading
submitBtn.disabled = true;
submitBtn.innerHTML = '<i class="fa fa-spinner fa-spin" style="margin-right: 8px;"></i>Sending...';
// Get form data
const formData = new FormData(form);
const data = {
name: formData.get('name'),
email: formData.get('email'),
phone: formData.get('phone') || 'Not provided',
subject: formData.get('subject'),
message: formData.get('message'),
timestamp: new Date().toISOString()
};
try {
// Log data being sent (for debugging)
console.log('Sending data to Google Sheets:', data);
console.log('Script URL:', SCRIPT_URL);
// Send data to Google Sheets via Google Apps Script
const response = await fetch(SCRIPT_URL, {
method: 'POST',
mode: 'no-cors',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(data)
});
console.log('Form submitted successfully');
// Small delay for user feedback
await new Promise(resolve => setTimeout(resolve, 500)); // Show success message
formMessage.style.display = 'block';
formMessage.style.padding = '15px';
formMessage.style.borderRadius = '8px';
formMessage.style.backgroundColor = '#dcfce7';
formMessage.style.border = '1px solid #86efac';
formMessage.style.color = '#166534';
formMessage.innerHTML = '<i class="fa fa-check-circle" style="margin-right: 8px;"></i>Thank you! Your message has been sent successfully. We\'ll get back to you soon.';
// Reset form
form.reset();
// Hide message after 5 seconds
setTimeout(() => {
formMessage.style.display = 'none';
}, 5000);
} catch (error) {
// Show error message
formMessage.style.display = 'block';
formMessage.style.padding = '15px';
formMessage.style.borderRadius = '8px';
formMessage.style.backgroundColor = '#fee2e2';
formMessage.style.border = '1px solid #fca5a5';
formMessage.style.color = '#991b1b';
formMessage.innerHTML = '<i class="fa fa-exclamation-circle" style="margin-right: 8px;"></i>Oops! Something went wrong. Please try again or email us directly.';
} finally {
// Re-enable button
submitBtn.disabled = false;
submitBtn.innerHTML = '<i class="fa fa-paper-plane" style="margin-right: 8px;"></i>Send Message';
}
}
</script>
<!-- /container -->
<footer id="footer">
<div class="container">
<div class="social text-center">
<a href="https://www.linkedin.com/in/addison-lin-wang-62542b222/"><i class="fa fa-linkedin"></i></a>
<a href="https://github.com/vlislab22"><i class="fa fa-github"></i></a>
</div>
<div class="clear"></div>
<!--CLEAR FLOATS-->
</div>
<div class="footer2">
<div class="container">
<div class="row">
<div class="col-md-6 panel">
<div class="panel-body">
<p class="simplenav">
<a href="index.html">Home</a> |
<a href="research.html">Research</a> |
<a href="people.html">People</a> |
<a href="publication.html">Publication</a> |
<a href="news.html">News</a> |
<a href="contact.html">Contact</a>
</p>
</div>
</div>
<div class="col-md-6 panel">
<div class="panel-body">
<p class="text-right">
Copyright © 2024 Embodied Perception and Interaction Lab (EmPACT) Lab, NTU Singapore
</p>
</div>
</div>
</div>
<!-- /row of panels -->
</div>
</div>
</footer>
<!-- JavaScript libs are placed at the end of the document so the pages load faster -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="assets/js/custom.js"></script>
<!-- Custom Mobile Navbar Script -->
<script>
(function() {
var isToggling = false;
function toggleMenu() {
if (isToggling) return;
isToggling = true;
var collapse = document.getElementById('navbar-collapse-main');
if (collapse.classList.contains('in')) {
collapse.classList.remove('in');
} else {
collapse.classList.add('in');
}
setTimeout(function() { isToggling = false; }, 300);
}
window.addEventListener('load', function() {
var toggleBtn = document.querySelector('.navbar-toggle');
if (toggleBtn) {
toggleBtn.addEventListener('click', toggleMenu);
toggleBtn.addEventListener('touchend', function(e) {
e.preventDefault();
toggleMenu();
});
}
// Close menu when clicking on links
var navLinks = document.querySelectorAll('.navbar-collapse a');
for (var i = 0; i < navLinks.length; i++) {
navLinks[i].addEventListener('click', function() {
document.getElementById('navbar-collapse-main').classList.remove('in');
});
}
});
})();
</script>
<!-- Google Maps -->
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script src="assets/js/google-map.js"></script>
</body>
</html>