-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
94 lines (84 loc) · 3.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us</title>
<link rel="stylesheet" href="landing.css">
<link rel="stylesheet" href="contact.css">
<link rel="icon" type="jpg" href="logo.png">
</head>
<body>
<header>
<div class="logo">
<img src="webcraft-logo.png" alt="Your Company Logo">
</div>
<nav class="sidebar">
<ul class="sidebar-menu">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About us</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="contact.html">Contact us</a></li>
</ul>
</nav>
</header>
<div class="container">
<h1 class="contact-heading">Contact Us</h1>
<div class="contact-info">
<span class="contact-icon">☎</span>
<p>Mobile: +91 9876543210</p>
</div>
<div class="contact-info">
<span class="contact-icon">✉</span>
<p>Email: [email protected]</p>
</div>
<a href="mailto:[email protected]" class="support-btn">✉</a>
<p class="par">If you need any support, click the mail button to send us an email.</p>
</div>
<div class="query-section">
<h2>Book your slot Today!:</h2>
<form id="queryForm">
<label for="date">Select date:</label>
<input type="date" name="date" id="date">
<label for="time">Select time:</label>
<input type="time" name="time" id="time">
<label for="number" name="number" id="number">Phone number:</label>
<input type="number">
<label for="message">Message:</label>
<textarea id="message" name="message" rows="4" required></textarea>
<button type="submit" class="nav-button" onclick="sendCommentByEmail()">Submit</button>
<p class="par">We will contact you after you book the slot.</p>
</form>
</div>
<script>
function sendCommentByEmail() {
const comment = document.getElementById("message").value;
const date = document.getElementById("date").value;
const time = document.getElementById("time").value;
const number = document.getElementById("number").value;
const subject = "Query to webcraft";
const recipient = "[email protected]";
// Combine the comment, date, and time values in the body of the email
const body = `${comment}\n\nSelected Date: ${date}\nSelected Time: ${time} \nSelected Time: ${number}`;
const mailtoLink = `mailto:${recipient}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
window.location.href = mailtoLink;
}
const feedbackForm = document.getElementById('queryForm');
queryForm.addEventListener('submit', (e) => {
e.preventDefault();
alert('Thank you, your slot has been booked!');
});
</script>
<footer class="footer">
<div class="footer-content">
<p>© 2023 webcraft. All rights reserved.</p>
</div>
<div class="social-icons">
<a href="#" class="linkedin-logo" onclick="window.open('https://www.linkedin.com/in/mohammed-mudabbir-pasha-9a135321b/')"></a>
<a href="#" class="instagram-logo" onclick="window.open('https://www.instagram.com/mysteriosohail/?hl=en')"></a>
<a href="#" class="threads-logo" onclick="window.open('https://www.threads.net/@mysteriosohail')"></a>
<a href="landing.html" class="webcraft-logo"></a>
</div>
</footer>
</body>
</html>