-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessage.html
More file actions
323 lines (284 loc) · 14.6 KB
/
message.html
File metadata and controls
323 lines (284 loc) · 14.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Eric Xiao | Contact Me</title>
<link rel="icon" href="images/logo.svg" type="image/svg+xml">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<!-- Modern CSS -->
<link rel="stylesheet" href="assets/css/modern.css">
<!-- FontAwesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* Form-specific styles */
.form-container {
max-width: 800px;
margin: 0 auto;
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-lg);
margin-bottom: var(--space-lg);
}
.form-group {
display: flex;
flex-direction: column;
}
.form-group.full-width {
grid-column: 1 / -1;
}
.form-label {
font-weight: var(--font-weight-medium);
margin-bottom: var(--space-xs);
color: var(--text-primary);
}
.form-input,
.form-select,
.form-textarea {
padding: var(--space-sm) var(--space-md);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
background: var(--bg-secondary);
color: var(--text-primary);
font-family: inherit;
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
outline: none;
border-color: var(--accent-primary);
box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form-textarea {
resize: vertical;
min-height: 120px;
}
.form-input::placeholder,
.form-textarea::placeholder {
color: var(--text-muted);
}
.form-buttons {
display: flex;
gap: var(--space-md);
justify-content: flex-start;
margin-top: var(--space-lg);
}
@media (max-width: 768px) {
.form-grid {
grid-template-columns: 1fr;
gap: var(--space-md);
}
.form-buttons {
flex-direction: column;
}
}
</style>
</head>
<body>
<!-- Navigation -->
<nav class="nav" id="navbar">
<div class="nav-container">
<div class="nav-left">
<a href="index.html" class="nav-logo">Eric Xiao</a>
<a href="resume.html" class="nav-resume">
<span class="resume-text">Resume</span>
</a>
</div>
<ul class="nav-menu" id="nav-menu">
<li><a href="resume.html" class="nav-link nav-link-mobile-only">Resume</a></li>
<li><a href="index.html" class="nav-link">Home</a></li>
<li><a href="mechanical.html" class="nav-link">Mechanical</a></li>
<li><a href="software.html" class="nav-link">Software</a></li>
<li><a href="message.html" class="nav-link active">Contact</a></li>
</ul>
<div class="nav-toggle" id="nav-toggle">
<span></span>
<span></span>
<span></span>
</div>
</div>
</nav>
<!-- Contact Form Section -->
<section class="section" style="min-height: auto; padding-top: 120px;">
<div class="container">
<div class="section-header">
<h1 class="section-title">Get In Touch</h1>
<p class="section-subtitle">
I'm always open to new opportunities and collaborations. Feel free to reach out with any questions,
project ideas, or just to say hello!
</p>
</div>
<div class="form-container">
<!-- Contact Info Cards -->
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-lg); margin-bottom: var(--space-3xl);">
<div style="background: var(--card-bg); padding: var(--space-lg); border-radius: var(--radius-lg); border: 1px solid var(--border-color); text-align: center;">
<i class="fas fa-envelope" style="font-size: 2rem; color: var(--accent-primary); margin-bottom: var(--space-md);"></i>
<h3 style="margin-bottom: var(--space-sm);">Email</h3>
<p style="color: var(--text-secondary); margin-bottom: 0;">
<a href="mailto:xiao.yuan0217@gmail.com">xiao.yuan0217@gmail.com</a>
</p>
</div>
<div style="background: var(--card-bg); padding: var(--space-lg); border-radius: var(--radius-lg); border: 1px solid var(--border-color); text-align: center;">
<i class="fas fa-map-marker-alt" style="font-size: 2rem; color: var(--accent-primary); margin-bottom: var(--space-md);"></i>
<h3 style="margin-bottom: var(--space-sm);">Location</h3>
<p style="color: var(--text-secondary); margin-bottom: 0;">Long Island, NY</p>
</div>
<div style="background: var(--card-bg); padding: var(--space-lg); border-radius: var(--radius-lg); border: 1px solid var(--border-color); text-align: center;">
<i class="fas fa-briefcase" style="font-size: 2rem; color: var(--accent-primary); margin-bottom: var(--space-md);"></i>
<h3 style="margin-bottom: var(--space-sm);">Status</h3>
<p style="color: var(--text-secondary); margin-bottom: 0;">Open to full-time opportunities</p>
</div>
</div>
<!-- Contact Form -->
<div style="background: var(--card-bg); padding: var(--space-2xl); border-radius: var(--radius-lg); border: 1px solid var(--border-color);">
<h2 style="margin-bottom: var(--space-lg); text-align: center;">Send me a message</h2>
<form method="post" action="https://formspree.io/f/xvgzrpww">
<div class="form-grid">
<div class="form-group">
<label for="name" class="form-label">
<i class="fas fa-user" style="margin-right: var(--space-xs);"></i>
Name *
</label>
<input type="text" name="name" id="name" class="form-input" placeholder="Your full name" required>
</div>
<div class="form-group">
<label for="email" class="form-label">
<i class="fas fa-envelope" style="margin-right: var(--space-xs);"></i>
Email *
</label>
<input type="email" name="email" id="email" class="form-input" placeholder="your.email@example.com" required>
</div>
<div class="form-group full-width">
<label for="category" class="form-label">
<i class="fas fa-tag" style="margin-right: var(--space-xs);"></i>
Category *
</label>
<select name="category" id="category" class="form-select" required>
<option value="">- Select a category -</option>
<option value="job">🎯 Job Opportunity</option>
<option value="project">🤝 Project Collaboration</option>
<option value="question">❓ General Question</option>
<option value="other">💬 Other</option>
</select>
</div>
<div class="form-group full-width">
<label for="message" class="form-label">
<i class="fas fa-comment" style="margin-right: var(--space-xs);"></i>
Message *
</label>
<textarea name="message" id="message" class="form-textarea" placeholder="Tell me about your project, opportunity, or question..." rows="6" required></textarea>
</div>
</div>
<div class="form-buttons">
<button type="submit" class="btn btn-primary">
<i class="fas fa-paper-plane"></i>
Send Message
</button>
<button type="reset" class="btn btn-secondary">
<i class="fas fa-undo"></i>
Reset Form
</button>
</div>
</form>
</div>
<!-- Response Time Info -->
<div style="background: var(--bg-secondary); padding: var(--space-lg); border-radius: var(--radius-lg); margin-top: var(--space-xl); text-align: center;">
<h3 style="color: var(--accent-primary); margin-bottom: var(--space-md);">
<i class="fas fa-clock"></i>
Response Time
</h3>
<p style="color: var(--text-secondary); margin-bottom: 0;">
I typically respond to messages within 24-48 hours. For urgent matters,
feel free to connect with me on <a href="https://www.linkedin.com/in/eric-xiaoy/">LinkedIn</a>.
</p>
</div>
</div>
<div class="btn-group" style="justify-content: center; margin-top: var(--space-2xl);">
<a href="index.html" class="btn btn-secondary">
<i class="fas fa-home"></i>
Return Home
</a>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="footer-content">
<p>© 2025 Eric Xiao. All rights reserved.</p>
<p>I like to game, walk my dog Mochi, and cook in my spare time.</p>
<p style="margin-top: var(--space-md);"><a href="directory.html" style="color: var(--accent-primary);">Project Directory</a></p>
</div>
<!-- Social Links -->
<div class="social-links">
<a href="https://www.linkedin.com/in/eric-xiaoy/" class="social-link" title="LinkedIn">
<i class="fab fa-linkedin"></i>
</a>
<a href="https://github.com/sixym3" class="social-link" title="GitHub">
<i class="fab fa-github"></i>
</a>
<a href="https://www.instagram.com/sixym3/" class="social-link" title="Instagram">
<i class="fab fa-instagram"></i>
</a>
<a href="https://x.com/cyberbroker4729" class="social-link" title="Twitter">
<i class="fab fa-twitter"></i>
</a>
<a href="https://www.instagram.com/mochi_is_a_shiba_inu" class="social-link" title="Mochi's Instagram">
<i class="fas fa-paw"></i>
</a>
</div>
</div>
</footer>
<!-- JavaScript -->
<script>
// Mobile Navigation Toggle
const navToggle = document.getElementById('nav-toggle');
const navMenu = document.getElementById('nav-menu');
navToggle.addEventListener('click', () => {
navMenu.classList.toggle('active');
});
// Close mobile menu when clicking on a link
document.querySelectorAll('.nav-link').forEach(link => {
link.addEventListener('click', () => {
navMenu.classList.remove('active');
});
});
// Navbar background on scroll
window.addEventListener('scroll', () => {
const navbar = document.getElementById('navbar');
if (window.scrollY > 50) {
navbar.style.background = 'rgba(10, 10, 10, 0.98)';
} else {
navbar.style.background = 'rgba(10, 10, 10, 0.95)';
}
});
// Form validation and enhancement
const form = document.querySelector('form');
const submitBtn = form.querySelector('button[type="submit"]');
form.addEventListener('submit', function(e) {
// Add loading state to submit button
submitBtn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Sending...';
submitBtn.disabled = true;
});
// Reset button functionality
form.addEventListener('reset', function() {
setTimeout(() => {
// Focus on first input after reset
document.getElementById('name').focus();
}, 100);
});
// Auto-resize textarea
const textarea = document.getElementById('message');
textarea.addEventListener('input', function() {
this.style.height = 'auto';
this.style.height = Math.max(120, this.scrollHeight) + 'px';
});
</script>
</body>
</html>