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

Redesigned the contact component #158

Open
wants to merge 4 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
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
10 changes: 8 additions & 2 deletions src/pages/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { FaGitter } from 'react-icons/fa';

function Contact(){
let formIsValid = false

const [email, setEmailAttr] = useState({
value: '',
focused: false
Expand Down Expand Up @@ -56,10 +56,12 @@ function Contact(){

return (
<Container>
<center>
<h1 className="mt-4">Contact Us</h1>
<p className='mt-p'>
Ideas? Comments? Critiques? Want to help out? Here’s how to get in contact:
</p>
</center>
<Row className='contact-card-one'>
<Col md={6}>
<div className='contact-card' style={{ color: '#E74D3C' }}>
Expand Down Expand Up @@ -130,6 +132,10 @@ function Contact(){
</Row>
<hr />
<Row>
<center>
<h2>Send us a message</h2>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could look better if you center this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I will do that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greetings @padmajabhol, I have done it as per your requirements. Kindly review it. Thank you

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deleted a comment by mistake, sorry about that 😅

Copy link
Contributor Author

@dikshashukla455 dikshashukla455 May 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this PR good? @padmajabhol or any other changes should be done.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this should be good to go, thanks!

<p>Sends us a message and we will get back to you asap!</p>
</center>
<Col md={6} className='contact-form'>
<Form onSubmit={formSubmitHandler}>
<Form.Group as={Row} controlId='formHorizontalEmail'>
Expand Down Expand Up @@ -192,4 +198,4 @@ function Contact(){
)
};

export default Contact
export default Contact
14 changes: 11 additions & 3 deletions src/styles/Contact.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@
border-radius: 10px;
text-align: center;
line-height: 4;
background-color: #f3f3f3;
background-color: #fefefe;
box-shadow: 0.5px 0.5px 6px rgb(208, 204, 204);
transition: all 0.2s
}
.contact-card:hover{
transform: scale(1.03);
}

h2{
color: #3d9dd9;
}

.contact-form {
margin-bottom: 4em;
margin: 0.5em auto 4em auto;
}
.contact-padding{
padding-top: 8.7em;
}

.invalidInput{
color: red;
font-size: small;
Expand Down