Skip to content

Commit 2f7d234

Browse files
feat: Redesign contact form with modern layout and social icons (#1402)
* add: footer social icon Co-Authored-By: Sanjay Viswanathan <[email protected]> * feat: Redesign contact form with modern layout and social icons - Updated form layout with Name, Email, and Message fields - Added send icon to the "Send Message" button - Included centered social media icons (GitHub, LinkedIn, X, Facebook) - Applied gradient background and rounded corners for modern UI - Improved responsiveness for mobile devices - Updated placeholder texts and heading to "Contact Us" Co-Authored-By: Sanjay Viswanathan <[email protected]> --------- Co-authored-by: Sanjay Viswanathan <[email protected]>
1 parent 13eaed0 commit 2f7d234

File tree

1 file changed

+89
-33
lines changed

1 file changed

+89
-33
lines changed

pages/help.html

Lines changed: 89 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -222,41 +222,97 @@ <h3 class="main-heading">Scroll into see how to get most out of this website</h3
222222
</div>
223223
</div>
224224
</div>
225-
226-
<div class="container">
227-
<form id="contact-form">
228-
229-
<div>
230-
<h3>Contact Form</h3>
231-
<p>Please take a moment to get in touch, we will get back to you shortly</p>
232-
</div>
233-
<div class="form0">
234-
235-
236-
<div class="form1">
237-
<label for="name">Name</label>
238-
<input type="text" id="name" name="from_name">
239-
240-
<label for="email">Email</label>
241-
<input type="email" id="email" name="user_email">
242-
<label for="phone">Phone Number</label>
243-
<input type="number" id="phone" name="number">
244-
245-
246-
<label for="subject">Subject</label>
247-
<input type="text" id="subject" name="subject" >
248-
249-
</div>
250-
<div class="form2">
251-
<label for="msg">Message</label>
252-
<textarea id="subject" name="message" placeholder="Write something.." style="height:210px;"></textarea>
225+
226+
<div class="container">
227+
<form class="contact-box">
228+
<h2>Contact Us</h2>
229+
<p>Please take a moment to get in touch, we will get back to you shortly</p>
230+
<input type="text" placeholder="Your Name" required />
231+
<input type="email" placeholder="Your Email" required />
232+
<textarea rows="4" placeholder="Your Message" required></textarea>
253233

254-
<input type="submit" value="Send Message" class="btn">
255-
</div>
256-
</div>
257-
</form>
234+
<button type="submit">
235+
<i class="fas fa-paper-plane"></i> Send Massage
236+
</button>
237+
238+
<div class="social-icons">
239+
<a href="https://github.com/sanjay-kv"><i class="fab fa-github"></i></a>
240+
<a href="https://www.linkedin.com/in/sanjay-k-v/"><i class="fab fa-linkedin"></i></a>
241+
<a href="https://twitter.com/sanjay_kv"><i class="fab fa-x"></i></a>
242+
<a href="https://www.facebook.com/sanjay.k.viswanathan/"><i class="fab fa-facebook"></i></a>
258243
</div>
244+
</form>
245+
</div>
246+
247+
<style>
248+
249+
250+
251+
.contact-box {
252+
background: linear-gradient(135deg, #164563, #303233);
253+
padding: 50px;
254+
border-radius: 10px;
255+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
256+
}
259257

258+
.contact-box h2 {
259+
margin-bottom: 20px;
260+
}
261+
262+
.contact-box p {
263+
margin-bottom: 5px;
264+
margin-top: 2px;
265+
color: #ccc;
266+
font-size: 18px;
267+
padding-bottom: 10px;
268+
}
269+
270+
.contact-box input,
271+
.contact-box textarea {
272+
width: 100%;
273+
padding: 12px;
274+
margin: 10px 0;
275+
border: none;
276+
border-radius: 6px;
277+
font-size: 1rem;
278+
}
279+
280+
.contact-box button {
281+
background-color: #007bff;
282+
color: white;
283+
padding: 12px;
284+
width: 100%;
285+
border: none;
286+
border-radius: 6px;
287+
font-size: 1rem;
288+
cursor: pointer;
289+
display: flex;
290+
align-items: center;
291+
justify-content: center;
292+
gap: 8px;
293+
transition: background 0.3s ease;
294+
}
295+
296+
.contact-box button:hover {
297+
background-color: #0056b3;
298+
}
299+
300+
.social-icons {
301+
margin-top: 20px;
302+
}
303+
304+
.social-icons a {
305+
margin: 0 10px;
306+
color: #333;
307+
font-size: 1.5rem;
308+
transition: color 0.3s ease;
309+
}
310+
311+
.social-icons a:hover {
312+
color: #8f141e;
313+
314+
}
315+
</style>
260316
<footer id="Contact" class="footer-2">
261317
<div class="footer-container">
262318
<div class="footer-content">
@@ -278,7 +334,7 @@ <h3>Contact Form</h3>
278334
<i class="fab fa-linkedin-in footer-linkedin-icon"></i>
279335
<div class="filled"></div>
280336
</a>
281-
<a href="https://twitter.com/sanjay_kv_" target="_blank" aria-label="Twitter" data-social="twitter">
337+
<a href="https://twitter.com/sanjay_kv" target="_blank" aria-label="Twitter" data-social="twitter">
282338
<i class="fab fa-twitter footer-twitter-icon"></i>
283339
<div class="filled"></div>
284340
</a>

0 commit comments

Comments
 (0)