Skip to content

Commit 6983fb2

Browse files
authored
Merge pull request #1412 from neeru24/patch-4
Update Contact Page Styles
2 parents f5dd9d2 + a0f63c6 commit 6983fb2

File tree

1 file changed

+41
-8
lines changed

1 file changed

+41
-8
lines changed

Website/css/contact.css

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* General Styles */
22
body {
33
font-family: Arial, sans-serif;
4-
background-color: #160457;
4+
background-color: #160457; /* Blue background */
55
color: #99d6dd;
66
margin: 0;
77
padding: 0;
@@ -13,23 +13,30 @@ body {
1313

1414
/* Contact Form Container */
1515
.contact-container {
16-
background-color: rgb(4, 9, 85);
16+
background-color: #0b065f; /* Darker blue for form background */
1717
padding: 40px;
1818
border-radius: 10px;
19-
box-shadow: 0 0 10px rgba(243, 246, 246, 0.1);
19+
box-shadow: 0 0 10px rgba(243, 246, 246, 0.2);
2020
max-width: 500px;
2121
width: 100%;
2222
text-align: center;
23+
transition: transform 0.3s ease, box-shadow 0.3s ease;
24+
}
25+
26+
.contact-container:hover {
27+
transform: scale(1.02);
28+
box-shadow: 0 0 25px rgba(255, 255, 255, 0.6); /* White hover shadow */
2329
}
2430

2531
.contact-container h2 {
2632
margin-bottom: 20px;
2733
font-size: 24px;
34+
color: #ffffff; /* White title for contrast */
2835
}
2936

3037
.contact-container p {
3138
margin-bottom: 30px;
32-
color: #0bc1f9;
39+
color: #0bc1f9; /* Light blue for the paragraph text */
3340
}
3441

3542
/* Form Styles */
@@ -41,19 +48,39 @@ form {
4148
label {
4249
text-align: left;
4350
margin-bottom: 5px;
44-
color: #8fe8f4;
51+
color: #8fe8f4; /* Lighter text color for labels */
4552
}
4653

4754
input[type="text"],
4855
input[type="email"],
4956
textarea {
50-
padding: 10px;
57+
padding: 12px;
5158
margin-bottom: 15px;
5259
border-radius: 5px;
5360
border: 1px solid #ccc;
5461
font-size: 16px;
5562
width: 100%;
5663
box-sizing: border-box;
64+
background-color: #110769; /* Darker blue text field background */
65+
color: #ffffff; /* White text in the fields */
66+
transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
67+
}
68+
69+
input[type="text"]:hover,
70+
input[type="email"]:hover,
71+
textarea:hover {
72+
background-color: #0d0891; /* Slightly lighter blue on hover */
73+
border-color: #0bc1f9; /* Lighter blue border on hover */
74+
box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* White shadow on hover */
75+
}
76+
77+
input[type="text"]:focus,
78+
input[type="email"]:focus,
79+
textarea:focus {
80+
background-color: #0d0891; /* Lighter blue background when focused */
81+
border-color: #05d1fa; /* Light blue border on focus */
82+
outline: none;
83+
box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); /* Stronger white shadow when focused */
5784
}
5885

5986
textarea {
@@ -68,11 +95,14 @@ button {
6895
border-radius: 5px;
6996
cursor: pointer;
7097
font-size: 16px;
71-
transition: background-color 0.3s ease;
98+
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
7299
}
73100

74101
button:hover {
75102
background-color: #05d1fa;
103+
color: #08044c; /* Darker blue text on hover */
104+
transform: scale(1.05);
105+
box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* White hover shadow on button */
76106
}
77107

78108
/* Back to Home Button Styles */
@@ -85,9 +115,12 @@ button:hover {
85115
border-radius: 5px;
86116
cursor: pointer;
87117
font-size: 16px;
88-
transition: background-color 0.3s ease;
118+
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
89119
}
90120

91121
.back-button:hover {
92122
background-color: #06fdfd;
123+
color: #08044c;
124+
transform: scale(1.05);
125+
box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* White hover shadow */
93126
}

0 commit comments

Comments
 (0)