-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from pani2004/issue#159
Added the contact us page
- Loading branch information
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import { useEffect } from 'react'; | ||
function Contact() { | ||
useEffect(()=>{ | ||
window.scrollTo(0,0) | ||
}) | ||
return ( | ||
|
||
<div className="w-96 max-w-5xl p-5 bg-slate-900 shadow-md rounded-lg mx-auto my-10"> | ||
<h1 className="text-center text-white text-4xl mb-10">Contact Us</h1> | ||
<div className="flex flex-col items-center gap-5"> | ||
<div className="w-full max-w-2xl p-5 bg-gray-800 text-white rounded-lg"> | ||
<form className="flex flex-col gap-4"> | ||
<div className="flex flex-col"> | ||
<label htmlFor="name" className="font-bold mb-1 text-white">Name:</label> | ||
<input type="text" id="name" name="name" className="w-full p-2 border border-gray-400 rounded-md text-gray-900" required /> | ||
</div> | ||
<div className="flex flex-col"> | ||
<label htmlFor="email" className="font-bold mb-1 text-white">Email:</label> | ||
<input type="email" id="email" name="email" className="w-full p-2 border border-gray-400 rounded-md text-gray-900" required /> | ||
</div> | ||
<div className="flex flex-col"> | ||
<label htmlFor="message" className="font-bold mb-1 text-white">Message:</label> | ||
<textarea id="message" name="message" rows="5" className="w-full p-2 border border-gray-400 rounded-md text-gray-900" required></textarea> | ||
</div> | ||
<div className="flex justify-center"> | ||
<button type="submit" className="p-2 bg-blue-600 text-white rounded-md self-start hover:bg-blue-700">Submit</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Contact; | ||
|