-
Notifications
You must be signed in to change notification settings - Fork 0
/
Contact.html
236 lines (184 loc) · 7.64 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"/>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,400;0,500;0,600;0,800;1,900&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/contact.css">
<link rel="shortcut icon" href="img/fav.png" type="image/x-icon">
<link rel="stylesheet" href="css/slicing.css">
<title>Richfield chairs | Contect Us</title>
</head>
<body>
<!-- navbar -->
<div class="navbar">
</div>
<!-- navbar end -->
<div class="container">
<main class="row">
<!-- ******* Left Section (Column) Starts ******* -->
<section class="col left">
<!-- ******* Title Starts ******* -->
<div class="contactTitle">
<h2>Contact <span>Us</span></h2>
<p>"Let's Connect: Your Questions, Our Answers!"</p>
</div>
<!-- ******* Title Ends ******* -->
<!-- ******* Contact Info Starts ******* -->
<div class="contactInfo">
<div class="iconGroup">
<div class="icon">
<i class="fa-solid fa-phone"></i>
</div>
<div class="details">
<span>Phone</span>
<span>0334-6742222</span>
</div>
</div>
<div class="iconGroup">
<div class="icon">
<i class="fa-solid fa-envelope"></i>
</div>
<div class="details">
<span>Email</span>
<span>random@richfildchair.com</span>
</div>
</div>
<div class="iconGroup">
<div class="icon">
<i class="fa-solid fa-location-dot"></i>
</div>
<div class="details">
<span>Location</span>
<span>karachi Shah faisal Colony Golden Town</span>
</div>
</div>
</div>
<!-- ******* Contact Info Ends ******* -->
</section>
<!-- ******* Left Section (Column) Ends ******* -->
<!-- ******* Right Section (Column) Starts ******* -->
<section class="col right">
<!-- ******* Form Starts ******* -->
<form class="messageForm">
<div class="inputGroup halfWidth">
<input type="text" placeholder="enter your name" id="name" name="" required="required" onkeyup="vallidation()">
<span id="nameerror"></span>
</div>
<div class="inputGroup halfWidth">
<input type="email" placeholder="enter your email" id="email" name="" required="required" onkeyup="vallidation()">
<span id="emailerror"></span>
</div>
<div class="inputGroup fullWidth">
<input type="tel" placeholder="enter your phone" id="phone" name="" required="required" onkeyup="vallidation()">
<span id="phoneerror"></span>
</div>
<div class="inputGroup fullWidth">
<textarea placeholder="Message" required="required"></textarea>
</div>
<div class="inputGroup fullWidth">
<button>Send Message</button>
</div>
</form>
</section>
</main>
</div>
<!-- location -->
<div class="container-fluid">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d14478.033414310954!2d67.13149738409913!3d24.88063596291598!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3eb3399d61dedd63%3A0x5d6c21b6441a306!2sShah%20Faisal%20Colony%201%20Shah%20Faisal%20Colony%2C%20Karachi%2C%20Karachi%20City%2C%20Sindh%2C%20Pakistan!5e0!3m2!1sen!2s!4v1706956295635!5m2!1sen!2s" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
<!-- location -->
<!-- footer -->
<footer class="footer">
<div class="foot-container">
<div class="f-row1">
<div class="footer-col">
<h4>Address:</h4>
<span><p>karachi Shah faisal Colony Golden Town</p></span>
</div><hr>
<div class="footer-col">
<h4>Number:</h4>
<span><p>0334-6742222</p></span>
</div><hr>
<div class="footer-col">
<h4>Email:</h4>
<span><p>random@richfildchair.com</p></span>
</div>
</div>
<div class="f-row2">
<div class="footer-col">
<img src="img/logo.png" alt="" id="main-footer">
<br>
<p>We sell different types of chairs...</p>
</div>
<div class="footer-col">
<h4>Menu</h4>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">about</a></li>
<li><a href="#">Brands</a></li>
<li><a href="Contact.html">Contect Us</a></li>
</ul>
</div>
<div class="footer-col">
<h4>Brands</h4>
<ul>
<li><a href="leo.html">Leo</a></li>
<li><a href="Vaseat.html">Vaseat</a></li>
<li><a href="Steelcase.html">Steelcase</a></li>
<li><a href="lamex.html">lamex</a></li>
<li><a href="Knoll.html">Knoll</a></li>
<li><a href="Lazboy.html">Laz boy</a></li>
<li><a href="hni.html">hni</a></li>
</ul>
</div>
<div class="footer-col">
<h4>follow us</h4>
<div class="social-links">
<a href="#"><i class="fab fa-facebook-f"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
</div><br><br><hr>
<div class="f-row3">
<div>@2024 Richfield chair | All right reserved!</div>
</div>
</div>
</footer>
<!-- footer end -->
<script src="js/slicing.js"></script>
<script>
function vallidation(){
var name = document.getElementById("name").value ;
var email = document.getElementById("email").value ;
var phone = document.getElementById("phone").value ;
var namecheck = /^[a-zA-Z ]{3,}$/;
var emailcheck = /^[a-zA-Z0-9]{6,}@[a-zA-Z]{2,}.[a-zA-Z]{2,}$/;
var phonecheck = /^[0-9]{11}$/;
if(name.match(namecheck)){
document.getElementById("nameerror").innerText = "**yes your right!";
document.getElementById("nameerror").style.color = "green";
}else{
document.getElementById("nameerror").innerText = "**no! someting else";
document.getElementById("nameerror").style.color = "red";
}
if(email.match(emailcheck)){
document.getElementById("emailerror").innerText = "**yes your right!";
document.getElementById("emailerror").style.color = "green";
}else{
document.getElementById("emailerror").innerText = "**no! someting else";
document.getElementById("emailerror").style.color = "red";
}
if(phone.match(phonecheck)){
document.getElementById("phoneerror").innerText = "**yes your right!";
document.getElementById("phoneerror").style.color = "green";
}else{
document.getElementById("phoneerror").innerText = "**no! someting else";
document.getElementById("phoneerror").style.color = "red";
}
}
</script>
</body>
</html>