Skip to content

Commit

Permalink
fix contact page (#186)
Browse files Browse the repository at this point in the history
Co-authored-by: Aditya Singh <[email protected]>
  • Loading branch information
aditya-singh2005 and Aditya Singh authored Oct 29, 2024
1 parent 69514a3 commit 7178390
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 179 deletions.
105 changes: 74 additions & 31 deletions assets/css/contact.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,40 @@

body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f4f4;
background: linear-gradient(to bottom, #e9f5e9, #cce8cc); /* Soft gradient */
color: #333;
}

.getback {
top: 20px;
left: 20px;
position: absolute;
background-color: #28a745;
background: linear-gradient(90deg, #28a745, #218838);
color: white;
padding: 10px 20px;
padding: 12px 22px;
border-radius: 8px;
text-align: center;
text-decoration: none;
font-family: "Arial", sans-serif;
font-weight: bold;
font-size: 16px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
font-size: 18px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.getback:hover {
background-color: #218838;
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
transform: translateY(-2px);
animation: pulse 0.5s infinite alternate; /* Add pulse animation */
}

@keyframes pulse {
0% {
transform: scale(1);
}
100% {
transform: scale(1.05);
}
}

.container2 {
Expand All @@ -40,12 +51,14 @@ body {
.header {
text-align: center;
padding: 30px 20px;
position: relative;
}

.header h1 {
font-size: 36px;
color: green;
color: #28a745;
margin-bottom: 10px;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.header p {
Expand All @@ -64,15 +77,17 @@ body {
flex: 1 1 500px;
background-color: #fff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
margin-bottom: 20px;
position: relative;
}

.contact-form h2 {
font-size: 28px;
color: #333;
margin-bottom: 20px;
border-bottom: 2px solid #28a745; /* Underline */
}

.contact-form label {
Expand All @@ -87,9 +102,16 @@ body {
width: 100%;
padding: 12px;
margin-bottom: 20px;
border: 1px solid #ddd;
border-radius: 4px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 16px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
border-color: #28a745; /* Green focus border */
}

.contact-form textarea {
Expand All @@ -98,37 +120,40 @@ body {
}

.contact-form .submit-btn {
background-color: green;
background: linear-gradient(90deg, #28a745, #218838);
color: white;
padding: 12px 24px;
border: none;
border-radius: 4px;
border-radius: 6px;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s ease;
transition: background 0.3s ease, transform 0.2s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form .submit-btn:hover {
background-color: rgb(35, 144, 35);
background: linear-gradient(90deg, #218838, #1e7e34); /* Darker green */
transform: translateY(-1px);
}

/* Contact Information Styling */
.contact-info {
flex: 1 1 400px;
background-color: #282c34;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
color: white;
margin-bottom: 20px;
position: relative;
}

.contact-info h2 {
font-size: 28px;
color: green;
color: #28a745;
margin-bottom: 20px;
text-align: center;
border-bottom: 2px solid green;
border-bottom: 2px solid #28a745;
padding-bottom: 10px;
}

Expand All @@ -138,12 +163,6 @@ body {
align-items: center;
}

.contact-info .info-icon {
font-size: 30px;
margin-right: 15px;
color: green;
}

.contact-info .info h3 {
font-size: 20px;
color: #fff;
Expand All @@ -156,9 +175,10 @@ body {
margin-top: 0;
}

.info-icon svg {
width: 30px;
height: 30px;
.contact-info .info-icon {
width: 24px; /* Adjust icon width */
height: 24px; /* Adjust icon height */
margin-right: 15px; /* Space between icon and text */
}

/* Map Section */
Expand All @@ -167,8 +187,31 @@ body {
width: 100%;
height: 400px;
background-color: #ddd;
border-radius: 8px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Add tree texture as a background */
.contact-form::before,
.contact-info::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('tree-texture.png') no-repeat center center;
opacity: 0.05; /* Subtle texture effect */
z-index: 0;
border-radius: 12px;
}

.contact-form h2,
.contact-info h2,
.getback {
position: relative; /* To bring text above the background */
z-index: 1;
}

/* Media queries for responsive design */
Expand Down
Loading

0 comments on commit 7178390

Please sign in to comment.