-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
160 lines (140 loc) · 5.83 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Me</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<style>
body {
font-family: Arial, sans-serif;
background: linear-gradient(to right, #4facfe, #00f2fe);
margin: 0;
display: flex;
flex-direction: column;
height: 100vh;
}
nav {
margin-bottom: 20px;
}
h2 {
color: #333;
}
footer {
background-color: #f8f9fa;
padding: 20px 0;
margin-top: auto; /* Push footer to the bottom */
}
.list-unstyled li {
margin: 10px 0;
font-size: 1.2rem;
}
/* Form container styles */
.form-container {
background: white;
border-radius: 15px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
padding: 30px;
width: 100%;
max-width: 400px; /* Set a max-width for the form */
margin: 0 auto; /* Center the form */
}
/* Input and textarea styles */
input[type="text"],
input[type="email"],
textarea {
width: calc(100% - 20px);
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
transition: border 0.3s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
border: 1px solid #4facfe;
outline: none;
}
/* Button styles */
button {
background: #4facfe;
color: white;
border: none;
border-radius: 5px;
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
transition: background 0.3s, transform 0.3s;
}
button:hover {
background: #00f2fe;
transform: scale(1.05);
}
/* Honeypot Spam Protection */
.hidden {
display: none;
}
.contact-details {
margin-top: 30px;
text-align: center; /* Center align contact details */
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">ɃꝀ</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link" href="about.html">About Me</a></li>
<li class="nav-item"><a class="nav-link" href="projects.html">Projects</a></li>
<li class="nav-item"><a class="nav-link" href="skills.html">Skills</a></li>
<li class="nav-item active"><a class="nav-link" href="contact.html">Contact</a></li>
</ul>
</div>
</nav>
<div class="container mt-5 d-flex flex-column align-items-center">
<h2>Contact Me</h2>
<div class="form-container">
<form action="https://api.web3forms.com/submit" method="POST">
<input type="hidden" name="access_key" value="46898a6b-9f79-4ede-9ab2-92c18fe26c1c">
<input type="text" name="name" placeholder="Your Name" required>
<input type="email" name="email" placeholder="Your Email" required>
<textarea name="message" placeholder="Your Message" required></textarea>
<input type="checkbox" name="botcheck" class="hidden" style="display: none;">
<button type="submit">Submit Form</button>
</form>
</div>
<div class="contact-details">
<h4>Connect with Me</h4>
<ul class="list-unstyled">
<li><i class="fas fa-envelope"></i> <a href="mailto:[email protected]">[email protected]</a></li>
<li><i class="fas fa-phone"></i> <a href="tel:+123456789">+91 9798114322</a></li>
<li><i class="fab fa-linkedin"></i> <a href="https://theparallelbk.github.io/Portfolio-Website-BK/" target="_blank">LinkedIn</a></li>
<li><i class="fab fa-github"></i> <a href="https://github.com/theparallelbk" target="_blank">GitHub</a></li>
</ul>
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQZy8NncS3I1f9I-Fq4OocYlAL0aQ4JDTCmMg&s" alt="Contact" class="img-fluid mt-3">
</div>
</div>
<footer class="text-center mt-5">
<p>© 2024 Badal Kumar. All rights reserved.</p>
</footer>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
// Form submission handling (for demo purposes)
$('form').on('submit', function (e) {
e.preventDefault();
alert('Message sent! Thank you for reaching out.');
this.reset();
});
</script>
</body>
</html>