-
Notifications
You must be signed in to change notification settings - Fork 0
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 #12 from vignesh-gupta/feat/animation
Feat/animation
- Loading branch information
Showing
17 changed files
with
368 additions
and
158 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
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
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { zodResolver } from "@hookform/resolvers/zod"; | ||
import { useForm } from "react-hook-form"; | ||
import { z } from "zod"; | ||
import { motion } from "framer-motion"; | ||
|
||
import { Button } from "@/components/ui/button"; | ||
import { | ||
|
@@ -34,10 +35,10 @@ const ContactForm = ({ setSuccess }: ContactFormProps) => { | |
const form = useForm<z.infer<typeof formSchema>>({ | ||
resolver: zodResolver(formSchema), | ||
defaultValues: { | ||
name: "Vignesh", | ||
email: "[email protected]", | ||
subject: "Test", | ||
message: "Testing the form", | ||
name: "", | ||
email: "", | ||
subject: "", | ||
message: "", | ||
}, | ||
}); | ||
|
||
|
@@ -69,7 +70,12 @@ const ContactForm = ({ setSuccess }: ContactFormProps) => { | |
} | ||
|
||
return ( | ||
<div className="relative min-h-[565px] overflow-hidden rounded-2xl border-[1px] bg-muted/10 pb-3"> | ||
<motion.div | ||
initial={{ opacity: 0, translateY: 50 }} | ||
animate={{ opacity: 1, translateY: 0 }} | ||
transition={{ duration: 0.5 }} | ||
className="relative min-h-[565px] overflow-hidden rounded-2xl border-[1px] bg-muted/10 pb-3" | ||
> | ||
<div className="relative flex flex-col items-center justify-center py-4"> | ||
<div className="absolute left-4 top-[22px] flex gap-2"> | ||
<div className="h-3 w-3 rounded-full border-[1px] border-[#F63636] bg-[#FF6057]" /> | ||
|
@@ -179,7 +185,7 @@ const ContactForm = ({ setSuccess }: ContactFormProps) => { | |
</Button> | ||
</form> | ||
</Form> | ||
</div> | ||
</motion.div> | ||
); | ||
}; | ||
|
||
|
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
Oops, something went wrong.