Skip to content

Commit 7092b76

Browse files
authored
Merge pull request #1693 from VanshGarg06/contact-us-page
Redesign of Contact Us Page
2 parents 383f687 + 8307687 commit 7092b76

1 file changed

Lines changed: 109 additions & 46 deletions

File tree

contact.html

Lines changed: 109 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -44,38 +44,53 @@
4444
display: block;
4545
}
4646
/* Contact Header - Better Spacing */
47+
48+
body{
49+
background:rgb(247, 245, 245);
50+
}
51+
52+
53+
.contact-main{
54+
background:transparent;
55+
}
56+
57+
4758
.contact-header {
59+
background: transparent;
60+
padding: 80px 0 50px;
61+
text-align: center;
4862
position: relative;
4963
overflow: hidden;
50-
padding: 60px 20px 40px;
51-
text-align: center;
5264
}
5365

5466
.contact-header::before {
55-
content: '';
67+
content: "";
5668
position: absolute;
5769
top: 0;
5870
left: 0;
59-
right: 0;
60-
bottom: 0;
61-
background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
62-
pointer-events: none;
71+
width: 100%;
72+
height: 100%;
73+
background: radial-gradient(circle at 20% 30%, rgba(99, 132, 255, 0.08), transparent 60%),
74+
radial-gradient(circle at 80% 70%, rgba(164, 207, 255, 0.08), transparent 60%);
75+
z-index: 0;
6376
}
6477

6578
.contact-header .container {
66-
max-width: 1200px;
67-
margin: 0 auto;
79+
/* max-width: 1200px;
80+
margin: 0 auto; */
6881
position: relative;
69-
z-index: 1;
82+
z-index: 1000;
7083
}
7184

7285
.contact-heading {
86+
position:absolute;
7387
display: flex;
7488
align-items: center;
7589
justify-content: center;
7690
gap: 15px;
7791
margin-bottom: 20px;
7892
animation: fadeInDown 0.8s ease;
93+
border:1ps solid black;
7994
}
8095

8196
@keyframes fadeInDown {
@@ -90,12 +105,21 @@
90105
}
91106

92107
.contact-heading i {
93-
font-size: 48px;
94-
color: #667eea;
95-
animation: float 3s ease-in-out infinite;
96-
filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
108+
/* border:1px solid black; */
109+
width:300px;
110+
z-index:1000;
111+
height:300px;
112+
position:relative;
113+
font-size: 200px;
114+
color:rgb(189, 188, 188);
115+
background:rgb(240, 239, 239);
116+
padding: 20px;
117+
border-radius: 50%;
118+
margin-bottom: 20px;
119+
left:20px;
120+
/* animation: float 3s ease-in-out infinite; */
97121
}
98-
122+
99123
@keyframes float {
100124
0%, 100% { transform: translateY(0px); }
101125
50% { transform: translateY(-15px); }
@@ -156,6 +180,7 @@
156180
padding: 60px 20px;
157181
max-width: 1200px;
158182
margin: 0 auto;
183+
z-index:-1;
159184
}
160185

161186
.contact-container {
@@ -215,8 +240,25 @@
215240
.form-group:hover label i {
216241
transform: scale(1.2) rotate(5deg);
217242
}
243+
244+
.form-input{
245+
border:1px solid black;
246+
display:flex;
247+
justify-content: center;
248+
align-items:center;
249+
border: 2px solid rgba(0, 0, 0, 0.1);
250+
border-radius:12px;
251+
}
252+
253+
.form-input i{
254+
font-size: 1.1rem;
255+
color: #667eea;
256+
transition: transform 0.3s ease;
257+
/* border:1px solid black; */
258+
padding:10px;
259+
margin-right:10px;
260+
}
218261

219-
.form-group input,
220262
.form-group textarea {
221263
width: 100%;
222264
padding: 15px 18px;
@@ -228,6 +270,16 @@
228270
transition: all 0.3s ease;
229271
font-family: inherit;
230272
}
273+
274+
.form-group input{
275+
width: 90%;
276+
padding: 15px 18px;
277+
font-size: 1rem;
278+
color: #2d3748;
279+
border:none;
280+
/* transition: all 0.3s ease; */
281+
font-family: inherit;
282+
}
231283

232284
.form-group input::placeholder,
233285
.form-group textarea::placeholder {
@@ -258,7 +310,9 @@
258310
}
259311

260312
.btn-primary {
261-
width: 100%;
313+
width:300px;
314+
cursor: pointer;
315+
margin-left:18rem;
262316
padding: 16px 32px;
263317
font-size: 1.1rem;
264318
font-weight: 600;
@@ -278,7 +332,7 @@
278332
position: absolute;
279333
top: 0;
280334
left: -100%;
281-
width: 100%;
335+
width: 12rem;
282336
height: 100%;
283337
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
284338
transition: left 0.6s ease;
@@ -317,8 +371,8 @@
317371
padding: 30px;
318372
background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
319373
border-radius: 16px;
320-
border: 1px solid rgba(102, 126, 234, 0.2);
321-
backdrop-filter: blur(10px);
374+
/* border: 1px solid rgba(102, 126, 234, 0.2); */
375+
/* backdrop-filter: blur(10px); */
322376
position: relative;
323377
overflow: hidden;
324378
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
@@ -327,7 +381,7 @@
327381
font-size: 1.05rem;
328382
line-height: 1.8;
329383
text-align: center;
330-
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
384+
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1), -4px -4px 10px rgba(0, 0, 0, 0.1);
331385
color: #2d3748;
332386
width: 100%;
333387
max-width: 350px;
@@ -638,8 +692,8 @@
638692
<div class="container">
639693
<div class="contact-heading">
640694
<i class="fa-solid fa-envelope"></i>
641-
<h1 class="fade-in mob-res">Get in Touch</h1>
642695
</div>
696+
<h1 class="fade-in mob-res">Contact Us</h1>
643697
<p class="contact-subtitle">
644698
Have questions or feedback? We'd love to hear from you.
645699
</p>
@@ -654,36 +708,45 @@ <h1 class="fade-in mob-res">Get in Touch</h1>
654708
<!-- 📧 Contact Form -->
655709
<form class="contact-form" id="contactForm">
656710
<div class="form-group scroll-fade">
657-
<label for="name"><i class="fa-solid fa-user"></i> Name</label>
658-
<input
659-
type="text"
660-
id="name"
661-
name="name"
662-
placeholder="Enter your name"
663-
required
664-
/>
711+
<label for="name"> Name</label>
712+
<div class="form-input">
713+
<i class="fa-solid fa-user"></i>
714+
<input
715+
type="text"
716+
id="name"
717+
name="name"
718+
placeholder="Enter your name"
719+
required
720+
/>
721+
</div>
665722
</div>
666723

667724
<div class="form-group scroll-fade">
668-
<label for="email"><i class="fa-solid fa-square-envelope"></i> Email</label>
669-
<input
670-
type="email"
671-
id="email"
672-
name="email"
673-
placeholder="Enter your email id (e.g. john@gmail.com)"
674-
required
675-
/>
725+
<label for="email"> Email</label>
726+
<div class="form-input">
727+
<i class="fa-solid fa-square-envelope"></i>
728+
<input
729+
type="email"
730+
id="email"
731+
name="email"
732+
placeholder="Enter your email id (e.g. john@gmail.com)"
733+
required
734+
/>
735+
</div>
676736
</div>
677737

678738
<div class="form-group scroll-fade">
679-
<label for="subject"><i class="fa-solid fa-pen-to-square"></i> Subject</label>
680-
<input
681-
type="text"
682-
id="subject"
683-
name="subject"
684-
placeholder="Enter the subject"
685-
required
686-
/>
739+
<label for="subject"> Subject</label>
740+
<div class="form-input">
741+
<i class="fa-solid fa-pen-to-square"></i>
742+
<input
743+
type="text"
744+
id="subject"
745+
name="subject"
746+
placeholder="Enter the subject"
747+
required
748+
/>
749+
</div>
687750
</div>
688751

689752
<div class="form-group scroll-fade">

0 commit comments

Comments
 (0)