Skip to content

Commit

Permalink
Merge pull request #37 from ShravaniAK/master
Browse files Browse the repository at this point in the history
added contact form, issue #35 resolved
  • Loading branch information
DhruvDave12 authored Oct 27, 2022
2 parents 51976b2 + 82f41f5 commit 6141b69
Show file tree
Hide file tree
Showing 6 changed files with 2,507 additions and 6,313 deletions.
175 changes: 175 additions & 0 deletions components/Contact_us.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
import React from "react";
import styled from "styled-components";

const Contact_us = () => {
const Wrapper = styled.section`
padding: 9rem 0 5rem 0;
min-height:1000px;
.common-heading{
display:flex;
align-item:center;
justify-content:center;
font-size:3rem;
margin:1rem;
color:#f638dc;
}
.contact-form input{
min-height:3rem;
border-radius:2rem;
color:#f638dc;
padding:1rem;
}
@media (max-width:1018px){
.contact-form input{
width:34rem;
max-width:34rem;
}
.container .contact-form textarea{
min-width:34rem;
// width:50px;
}
}
@media (max-width:718px){
.contact-form input{
width:28rem;
max-width:28rem;
}
.container .contact-form textarea{
min-width:28rem;
width:20px;
}
}
@media (max-width:500px){
.contact-form input{
width:18rem;
max-width:18rem;
}
.container .contact-form textarea{
min-width:18rem;
width:18px;
}
}
.contact-form textarea{
min-height:14rem;
min-width:34rem;
border-radius:1rem;
padding:1rem;
color:#f638dc;
}
.contact-form {
min-height:35rem;
max-width: 30rem;
width:50rem;
margin: auto;
display:flex;
color:#f638dc;
}
.container {
margin-top: 6rem;
text-align: center;
.contact-inputs {
display: flex;
flex-direction: column;
gap: 3rem;
justify-content:center;
align-item:center;
min-height:8rem;
color:#f638dc;
}
input[type="submit"] {
cursor: pointer;
transition: all 0.2s;
min-height:3rem;
max-width:8rem;
display:flex;
align-item:center;
justify-content:center;
&:hover {
background-color: white;
border: 1px solid purple;
color: purple;
transform: scale(0.9);
}
}
}
}
}
`;

return (
<Wrapper>
<h2 className="common-heading">Feel Free to Contact us</h2>



<div className="container">
<div className="contact-form">
<form

method="POST"
className="contact-inputs">
<input
type="text"
name="username"
placeholder="username"
autoComplete="off"
required
/>

<input
type="email"
name="Email"
placeholder="Email"
autoComplete="off"
required
/>

<textarea
placeholder="Message"
className="textarea"
name="message"
cols="40"
rows="4"
autoComplete="off"
required></textarea>

<input type="submit" value="send" />
</form>
</div>
</div>
</Wrapper>
);
};

export default Contact_us;
3 changes: 2 additions & 1 deletion components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function Header({ pageTitle, description }) {
<Link href="/members">Members</Link>
</li>
<li>
<Link href="/#contact_us">Contact Us</Link>
<Link href="/Contact_page">Contact Us</Link>
</li>
</ul>
</nav>
Expand All @@ -59,6 +59,7 @@ export default function Header({ pageTitle, description }) {
<Link href="/blog">Blogs</Link>
<Link href="/projects">Projects</Link>
<Link href="/members">Members</Link>
<Link href="/Contact_page">contact us</Link>
</div>
</div>
</React.Fragment>
Expand Down
Loading

0 comments on commit 6141b69

Please sign in to comment.