Skip to content

Commit

Permalink
Enhanced the contact form (Rakesh9100#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenr-CodeCrafter authored Jan 25, 2025
1 parent 75a11f8 commit f222432
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
22 changes: 15 additions & 7 deletions assets/contact/contact.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ body {
line-height: 1.6;
min-height: 100vh;
color: var(--text-color);
font-family: 'Poppins', sans-serif;
background-color: var(--background-color);
}

Expand Down Expand Up @@ -52,7 +51,7 @@ main {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
align-items: flex-start;
padding: 50px 20px 20px 20px;
min-height: calc(100vh - 120px);
gap: 100px;
Expand All @@ -66,8 +65,11 @@ main {

.form-section {
flex: 1;
display: flex;
flex-direction: column;
max-width: 500px;
padding: 20px;
margin-top: 50px;
text-align: center;
background-color: #ffffff;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
Expand All @@ -76,12 +78,12 @@ main {

.form-section h1 {
font-size: 2em;
color: #4a90e2;
margin-bottom: 10px;
}

.form-section p {
font-size: 1.1em;
font-weight: 500;
margin-bottom: 20px;
}

Expand All @@ -94,8 +96,9 @@ main {
background-color: #e9eef5;
border-radius: 8px;
font-size: 1em;
font-family: "Poppins", sans-serif;
transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
font-weight: 700;
font-weight: 600;
}

input[type="text"]:hover,
Expand All @@ -115,25 +118,30 @@ textarea:focus {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

textarea {
.form-section textarea {
resize: vertical;
height: 100px;
min-height: 100px;
max-height: 200px;
overflow-y: auto;
flex-grow: 1;
}

.form-section button {
width: 100%;
padding: 10px;
background: #4a90e2;
color: #ffffff;
border: none;
border-radius: 8px;
font-size: 1em;
cursor: pointer;
transition: 0.3s ease;
background: var(--primary-color);
}

.form-section button:hover {
background: #3a78c2;
transform: scale(1.02);
background-color: #686969;
}

.social-links {
Expand Down
20 changes: 19 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -899,10 +899,21 @@ footer {
border-radius: 4px;
box-sizing: border-box;
font-size: 16px;
font-family: sans-serif;
transition: transform 0.3s ease;
}

.send-message input:hover,
.send-message textarea:hover {
transform: scale(1.02);
}

.send-message textarea {
height: 50px;
resize: vertical;
height: 50px;
min-height: 50px;
max-height: 100px;
overflow-y: auto;
color: black;
}

Expand All @@ -917,6 +928,13 @@ footer {
cursor: pointer;
font-size: 16px;
font-weight: bold;
transition: transform 0.3s ease;
}

.send-message button:hover {
background: -webkit-linear-gradient(to right, #5568e0, #89b9e8);
background: linear-gradient(to right, #5568e0, #89b9e8);
transform: scale(1.02);
}

.social {
Expand Down

0 comments on commit f222432

Please sign in to comment.