-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
117 lines (113 loc) · 5.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Contact | Euler</title>
<!-- Bootstrap CSS (v4.5) -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/style.css">
<style>
body { font-family: 'Roboto', sans-serif; scroll-behavior: smooth; }
.navbar { transition: background-color 0.4s ease; }
.navbar.scrolled { background-color: rgba(0,0,0,0.8) !important; }
.page-header { background: url('assets/images/contact-bg.jpg') no-repeat center center/cover; position: relative; height: 30vh; display: flex; align-items: center; justify-content: center; color: #fff; }
.page-header::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.page-header h1 { position: relative; z-index: 2; font-size: 3rem; font-weight: 700; }
.contact-form { background: #f8f9fa; padding: 40px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.form-control:focus { box-shadow: none; border-color: #007bff; }
.social-icons a { color: #007bff; font-size: 1.5rem; margin-right: 15px; transition: color 0.3s; }
.social-icons a:hover { color: #0056b3; text-decoration: none; }
footer { background-color: #222; color: #ccc; padding: 30px 0; }
</style>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="index.html">Euler</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="about.html">About</a></li>
<li class="nav-item"><a class="nav-link" href="projects.html">Projects</a></li>
<li class="nav-item active"><a class="nav-link" href="contact.html">Contact</a></li>
</ul>
</div>
</div>
</nav>
<!-- Header Section -->
<header class="page-header">
<h1>Get in Touch</h1>
</header>
<!-- Contact Form Section -->
<section class="container my-5">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="contact-form">
<h3 class="mb-4 text-center">Let's Connect</h3>
<!-- Replace "yourFormID" with your actual Formspree form ID -->
<form action="https://formspree.io/f/{{ site.formspree_form_id }}" method="POST">
<input type="hidden" name="_subject" value="New message from portfolio contact form">
<div class="form-row">
<div class="form-group col-md-6">
<label for="name">Name</label>
<input type="text" class="form-control" id="name" name="name" placeholder="Your Name" required>
</div>
<div class="form-group col-md-6">
<label for="email">Email</label>
<input type="email" class="form-control" id="email" name="_replyto" placeholder="[email protected]" required>
</div>
</div>
<div class="form-group">
<label for="subject">Subject</label>
<input type="text" class="form-control" id="subject" name="subject" placeholder="Subject" required>
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea class="form-control" id="message" name="message" rows="6" placeholder="Your message..." required></textarea>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary btn-lg">Send Message</button>
</div>
</form>
<p class="text-center mt-3">Or email me directly at <a href="mailto:[email protected]">[email protected]</a></p>
</div>
<div class="text-center mt-4 social-icons">
<a href="https://github.com/euler314" target="_blank" aria-label="GitHub"><i class="fab fa-github"></i></a>
<a href="https://linkedin.com/in/euler314" target="_blank" aria-label="LinkedIn"><i class="fab fa-linkedin"></i></a>
<a href="mailto:[email protected]" aria-label="Email"><i class="fas fa-envelope"></i></a>
</div>
<p class="mt-3"><em>Note:</em> Sign up at <a href="https://formspree.io/" target="_blank">Formspree</a> and replace <code>yourFormID</code> with your generated ID for the form to work.</p>
</div>
</div>
</section>
<!-- Footer -->
<footer class="text-center">
<div class="container">
<p class="mb-0">© 2025 Euler. All rights reserved.</p>
</div>
</footer>
<!-- JS and Dependencies -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<!-- FontAwesome for Icons -->
<script src="https://kit.fontawesome.com/yourKitID.js" crossorigin="anonymous"></script>
<!-- Navbar scroll script -->
<script>
$(window).scroll(function() {
if ($(window).scrollTop() > 50) {
$('.navbar').addClass('scrolled');
} else {
$('.navbar').removeClass('scrolled');
}
});
</script>
</body>
</html>