forked from DanyalAhmad2003/HCI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
73 lines (68 loc) · 1.91 KB
/
contact.html
File metadata and controls
73 lines (68 loc) · 1.91 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>EcoBin – Contact</title>
<link rel="stylesheet" href="css/styles.css" />
<style>
form#contact-form {
display: flex;
flex-direction: column;
gap: 1rem;
}
form#contact-form label {
display: flex;
flex-direction: column;
color: #fff;
font-weight: bold;
}
form#contact-form input,
form#contact-form textarea {
margin-top: 0.25rem;
}
#thank-you {
color: #fff;
text-align: center;
margin-top: 1rem;
}
</style>
</head>
<body>
<!-- glowing header -->
<div class="glow-box" style="margin-top:2rem;">
<header><h1>EcoBin Business</h1></header>
</div>
<main style="max-width:600px; margin:0 auto; padding:1rem;">
<div class="highlight">
<h2>Contact Us</h2>
<form id="contact-form">
<label>
Your Name
<input type="text" name="name" placeholder="Jane Doe" required />
</label>
<label>
Your Email
<input type="email" name="email" placeholder="you@example.com" required />
</label>
<label>
Message
<textarea name="message" rows="5" placeholder="How can we help you?" required></textarea>
</label>
<button type="submit" class="btn">Submit</button>
</form>
<p id="thank-you" style="display:none;">
🎉 Thank you! We’ve received your message and will be in touch soon.
</p>
</div>
<a href="business.html" class="back-btn">← Back to Business</a>
</main>
<script>
document.getElementById('contact-form').addEventListener('submit', function(e) {
e.preventDefault();
this.style.display = 'none';
document.getElementById('thank-you').style.display = 'block';
});
</script>
</body>
</html>