-
Notifications
You must be signed in to change notification settings - Fork 2
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 #45 from shuvadeepmondal/shuvadeep
Closes #44
- Loading branch information
Showing
3 changed files
with
90 additions
and
1 deletion.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,87 @@ | ||
import { useState } from "react"; | ||
import req_img from "../assets/contact-us-animate (1).svg"; | ||
|
||
|
||
export default function Contact(): JSX.Element { | ||
const [email, setEmail] = useState<string>(""); | ||
const [name, setName] = useState<string>(""); | ||
const [phonenumber, setPhonenumber] = useState<string>(""); | ||
|
||
const handleNameChange = (event: React.ChangeEvent<HTMLInputElement>) => { | ||
setName(event.target.value); | ||
}; | ||
const handleEmailChange = (event: React.ChangeEvent<HTMLInputElement>) => { | ||
setEmail(event.target.value); | ||
}; | ||
|
||
const handlePhonenumberChange = (event: React.ChangeEvent<HTMLInputElement>) => { | ||
setPhonenumber(event.target.value); | ||
}; | ||
|
||
const handleClick = async (event: React.FormEvent<HTMLFormElement>) => { | ||
event.preventDefault(); | ||
}; | ||
|
||
return ( | ||
<main className="pt-8 mt-[100px] lg:mt-0 lg:pt-22 bg-[url('https://pagedone.io/asset/uploads/1691055810.png')] dark:bg-slate-900 bg-center bg-cover"> | ||
<div className="w-full min-h-[110vh] flex"> | ||
<div className="grid grid-cols-1 md:grid-cols-2 m-auto h-[620px] sm:max-w-[900px]"> | ||
<div className="w-full h-[450px] hidden md:block"> | ||
<img | ||
className="w-full mt-[130px] ml-2 h-[380px]" | ||
src={req_img} | ||
alt="Contact Ilustration" | ||
/> | ||
</div> | ||
<div className="p-4 flex flex-col justify-around"> | ||
<form onSubmit={handleClick}> | ||
<div className="mt-3"> | ||
<label className="poppins-medium ml-1 text-slate-600 dark:text-slate-300">Full Name</label> | ||
<input | ||
className="border px-4 py-2 w-[480px] rounded-xl bg-slate-100 dark:bg-slate-600 mt-3 dark:border-slate-600" | ||
type="username" | ||
placeholder="eg. John Doe" | ||
value={name} | ||
onChange={handleNameChange} | ||
/> | ||
</div> | ||
<div className="mt-3"> | ||
<label className="poppins-medium ml-1 text-slate-600 dark:text-slate-300">Email Address</label> | ||
<input | ||
className="border px-4 py-2 w-[480px] rounded-xl bg-slate-100 dark:bg-slate-600 mt-3 dark:border-slate-600" | ||
type="email" | ||
placeholder="[email protected]" | ||
value={email} | ||
onChange={handleEmailChange} | ||
/> | ||
</div> | ||
<div className="mt-3"> | ||
<label className="poppins-medium ml-1 text-slate-600 dark:text-slate-300">Subject</label> | ||
<input | ||
className="border px-3 py-2 w-[480px] rounded-xl bg-slate-100 dark:bg-slate-600 mt-3 dark:border-slate-600" | ||
type="phone" | ||
placeholder="Your Subject" | ||
value={phonenumber} | ||
onChange={handlePhonenumberChange} | ||
/> | ||
</div> | ||
<div className="mt-3"> | ||
<label className="poppins-medium ml-1 text-slate-600 dark:text-slate-300">Message</label> | ||
<textarea | ||
className="border py-2 px-4 resize-none text-base w-[480px] h-[100px] rounded-xl bg-slate-100 dark:bg-slate-600 mt-3 dark:border-slate-600" | ||
placeholder="Your Message" | ||
/> | ||
</div> | ||
<button | ||
className="ml-[40vh] mt-[5vh] w-[180px] active:scale-[.98] active:duration-75 hover:scale-[1.01] ease-in-out transition-all p-2.5 rounded-3xl bg-gradient-to-r from-blue-700 to-blue-500 text-white text-lg font-semibold poppins-extrabold" | ||
key="1" | ||
> | ||
Send | ||
</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
); | ||
} |