Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Align Contact Form with theme colors #547

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frontend/public/images/contactUS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
122 changes: 54 additions & 68 deletions frontend/src/pages/Contact/Contact.css
Original file line number Diff line number Diff line change
@@ -1,119 +1,105 @@
.inner-container {
border: 2px solid #ccc; /* Added solid border style */
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
.inner-container{
border:2px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
display: flex;
flex-direction: row-reverse;
align-items: center;
margin-block: 20px;;
}
.img-container img{
width:30vw;
}
.contact-container{
display: flex;
flex-direction: row-reverse;
justify-content: center;
align-items: center;
margin-block: 20px;
}


.img-container img {
width: 30vw;
}

.contact-container {
display: flex;
justify-content: center;
align-items: center;
form input{
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

form input,
form textarea {
form textarea{
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease; /* Smooth transition for size change */
}

form input:hover,
form textarea:hover {
transform: scale(1.05); /* Grow in size on hover */
}

form input {
padding: 10px; /* Added padding for better appearance */
}
.form{


.form {
width: 30vw;
width:30vw;
padding-block: 10px;
padding-inline: 20px;
background-color: #FFE7D1;
height: 80vh;
background-color: #9eccea7b;
height:80vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.btn {
.btn{
background-color: #1665C0;
width: 10vw;
width:10vw;
text-align: center;
color: #fff;
padding: 10px; /* Added padding for better appearance */
border: none; /* Remove default border */
transition: transform 0.3s ease; /* Smooth transition for size change */
}

.btn:hover {
}
.btn:hover{
background-color: #1665C0;
opacity: 0.8;
color: #fff;
transform: scale(1.1); /* Grow in size on hover */
}

.form h1 {
.form h1{
font-size: 32px;
font-weight: bold;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
font-weight:bold;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

.button-container {
display: flex;
justify-content: center;
margin-block: 10px;
height: 10vh;
align-items: end;
}
.button-container{
display: flex;
justify-content: center;
margin-block: 10px;
height: 10vh;

.form label {
font-weight: bold;
align-items: end;
}
.form label{
font-weight:bold;
margin-bottom: 2px;
}

.msg-label {
margin-left: 2px;
.msg-label{
margin-left: 2px;;
}

.h1-div {
height: 10vh;
.h1-div{
height:10vh;
display: flex;
align-items: end;
}

.black-line {
display: inline-block;
width: 100px;
height: 2px;
background-color: black;
}

@media screen and (max-width: 768px) {
.inner-container {
@media screen and (max-width: 768px){
.inner-container{
flex-direction: column;
}
.form {
width: 90vw;
.form{
width:90vw;
height: fit-content;
padding-block: 20px;
}
.img-container {
display: none;
}
.button-container {
height: fit-content;
.img-container{
display:none
}
.button-container{
height:fit-content;
margin-block: 20px;
}
.btn{
width:20vw;
}
}

}
2 changes: 1 addition & 1 deletion frontend/src/pages/Contact/Contact.js
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ function Contact() {
return (
<div className="contact-container" style={{marginTop: "100px", marginBottom: "80px", padding:"10px"}}>
<div class="inner-container">
<div class="img-container "><img src="/images/contact.jpg" alt="Contact" /></div>
<div class="img-container "><img src="/images/contactUs.png" alt="Contact" /></div>
<div className="form " style={{ maxWidth: "600px" }}>
<div class="h1-div">
<h1>We'd love to help</h1>