-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
155 lines (146 loc) · 5.85 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="contact.css" ></link>
<link rel="stylesheet" type="text/css" href="style.css" ></link>
<title>Contact</title>
</head>
<body>
<section class="nav">
<div class="nav-items">
<ul>
<div class="item"><a href="index.php">Home</a></div>
<div class="item"><a href="Category.html">Category</a></div>
<div class="item"><a href="search.html">Search</a></div>
<div class="item"><a href="#">Contact us</a></div>
<div class="item"><a href="about.html">About Us</a></div>
</ul>
</div>
</section>
<section class="contact-form">
<form class="my-form" method="post" action="contactconnect.php">
<div class="container">
<h1>Get in touch!</h1>
<ul>
<li>
<select name="option">
<option value="select" selected disabled>-- Please choose an option --</option>
<option value="Query">Query</option>
<option value="Suggestion">Suggestion</option>
<option value="General">Other</option>
</select>
</li>
<li>
<div class="grid grid-2">
<input name="name" type="text" placeholder="Name" required>
<input name="surname" type="text" placeholder="Surname" required>
</div>
</li>
<li>
<div class="grid grid-2">
<input name="email" type="email" placeholder="Email" required>
<input name="phone" type="tel" placeholder="Phone">
</div>
</li>
<li>
<textarea name="message" placeholder="Message"></textarea>
</li>
<li>
<input type="checkbox" id="terms">
<label for="terms">I have read and agreed with <a href="">the terms and conditions.</a></label>
</li>
<li>
<div class="grid grid-3">
<div class="required-msg">REQUIRED FIELDS</div>
<button class="btn-grid" type="submit" id="submit" name="submit" disabled>
<span class="back">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/162656/email-icon.svg" alt="">
</span>
<span class="front">SUBMIT</span>
</button>
<button class="btn-grid" type="reset" disabled>
<span class="back">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/162656/eraser-icon.svg" alt="">
</span>
<span class="front">RESET</span>
</button>
</div>
</li>
</ul>
</div>
</form>
</section>
<footer>
<!-- Footer main -->
<section class="ft-main">
<div class="ft-main-item">
<h2 class="ft-title">Legal</h2>
<ul>
<li><a href="#">Terms of use</a></li>
<li><a href="#">Privacy policy</a></li>
<li><a href="#">Interest based ads</a></li>
<li><a href="#">Do not sell my info</a></li>
<li><a href="#">Careers</a></li>
</ul>
</div>
<div class="ft-main-item">
<h2 class="ft-title">Resources</h2>
<ul>
<li><a href="#">Docs</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">eBooks</a></li>
<li><a href="#">Webinars</a></li>
</ul>
</div>
<div class="ft-main-item">
<h2 class="ft-title">Contact</h2>
<ul>
<li><a href="#">Help</a></li>
<li><a href="#">Sales</a></li>
<li><a href="#">Advertise</a></li>
</ul>
</div>
<div class="ft-main-item">
<h2 class="ft-title">Stay Updated</h2>
<p>Get free updates before others do!</p>
<form>
<input type="email" name="email" placeholder="Enter email address">
<input type="submit" value="Subscribe">
</form>
</div>
</section>
<!-- Footer social -->
<section class="ft-social">
<ul class="ft-social-list">
<li><a href="#"><i class="fa fa-facebook-official"></i></a></li>
<li><a href="#"><i class="fa fa-git-square"></i></a></li>
<li><a href="#"><i class="fa fa-instagram"></i></a></li>
<li><a href="#"><i class="fa fa-linkedin-square"></i></a></li>
<li><a href="#"><i class="fa fa-telegram"></i></a></li>
<li><a href="#"><i class="fa fa-youtube-square"></i></a></li>
</ul>
</section>
<!-- Footer legal -->
<section class="ft-legal">
<ul class="ft-legal-list">
<li><a href="#">Terms & Conditions</a></li>
<li><a href="#">Privacy Policy</a></li>
<li>© 2021 by Elephant brains, Aurangabad</li>
</ul>
</section>
</footer>
<script>
const checkbox = document.querySelector('.my-form input[type="checkbox"]');
const btns = document.querySelectorAll(".my-form button");
checkbox.addEventListener("change", function() {
const checked = this.checked;
for (const btn of btns) {
checked ? (btn.disabled = false) : (btn.disabled = true);
}
});
</script>
</body>
</html>