generated from github/codespaces-blank
-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,84 @@ | ||
import { motion } from "framer-motion"; | ||
import { BsArrowRight } from "react-icons/bs"; | ||
|
||
import Circles from "../../components/Circles"; | ||
import { fadeIn } from "../../variants"; | ||
|
||
const Contact = () => { | ||
return <div>Contact</div>; | ||
const handleSubmit = (e) => { | ||
e.preventDefault(); | ||
|
||
alert("Thanks for contacting me. I will get back to you ASAP."); | ||
}; | ||
return ( | ||
<div className="h-full bg-primary/30"> | ||
<div className="container mx-auto py-32 text-center xl:text-left flex items-center justify-center h-full"> | ||
{/* text & form */} | ||
<div className="flex flex-col w-full max-w-[700px]"> | ||
{/* text */} | ||
<motion.h2 | ||
variants={fadeIn("up", 0.2)} | ||
initial="hidden" | ||
animate="show" | ||
exit="hidden" | ||
className="h2 text-center mb-12" | ||
> | ||
Let's <span className="text-accent">connect.</span> | ||
</motion.h2> | ||
|
||
{/* form */} | ||
<motion.form | ||
variants={fadeIn("up", 0.4)} | ||
initial="hidden" | ||
animate="show" | ||
exit="hidden" | ||
className="flex-1 flex flex-col gap-6 w-full mx-auto" | ||
onSubmit={handleSubmit} | ||
autoComplete="off" | ||
autoCapitalize="off" | ||
> | ||
{/* input group */} | ||
<div className="flex gap-x-6 w-full"> | ||
<input | ||
type="text" | ||
placeholder="Name" | ||
className="input" | ||
required | ||
aria-required | ||
/> | ||
<input | ||
type="email" | ||
placeholder="E-mail" | ||
className="input" | ||
required | ||
aria-required | ||
/> | ||
</div> | ||
<input | ||
type="text" | ||
placeholder="Subject" | ||
className="input" | ||
required | ||
aria-required | ||
/> | ||
<textarea | ||
placeholder="Message..." | ||
className="textarea" | ||
required | ||
aria-required | ||
></textarea> | ||
<button className="btn rounded-full border border-white/50 max-w-[170px] px-8 transition-all duration-300 flex items-center justify-center overflow-hidden hover:border-accent group"> | ||
<span className="group-hover:-translate-y-[120%] group-hover:opacity-0 transition-all duration-500"> | ||
Let's talk | ||
</span> | ||
|
||
<BsArrowRight className="-translate-y-[120%] opacity-0 group-hover:flex group-hover:-translate-y-0 group-hover:opacity-100 transition-all duration-300 absolute text-[22px]" /> | ||
</button> | ||
</motion.form> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Contact; |