Skip to content

Commit

Permalink
Hide email form
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerhoward15 committed Aug 28, 2024
1 parent 7386e27 commit bd34204
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions components/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,36 +39,38 @@ export default function Contact() {
or through this form.
</p>

<form
className="mt-10 flex flex-col dark:text-black"
action={async (formData) => {
const { data, error } = await sendEmail(formData);
{/*
<form
className="mt-10 flex flex-col dark:text-black"
action={async (formData) => {
const { data, error } = await sendEmail(formData);
if (error) {
toast.error(error);
return;
}
if (error) {
toast.error(error);
return;
}
toast.success("Email sent successfully!");
}}
>
<input
className="h-14 px-4 rounded-lg borderBlack dark:bg-white dark:bg-opacity-80 dark:focus:bg-opacity-100 transition-all dark:outline-none"
name="senderEmail"
type="email"
required
maxLength={500}
placeholder="Your email"
/>
<textarea
className="h-52 my-3 rounded-lg borderBlack p-4 dark:bg-white dark:bg-opacity-80 dark:focus:bg-opacity-100 transition-all dark:outline-none"
name="message"
placeholder="Your message"
required
maxLength={5000}
/>
<SubmitBtn />
</form>
toast.success("Email sent successfully!");
}}
>
<input
className="h-14 px-4 rounded-lg borderBlack dark:bg-white dark:bg-opacity-80 dark:focus:bg-opacity-100 transition-all dark:outline-none"
name="senderEmail"
type="email"
required
maxLength={500}
placeholder="Your email"
/>
<textarea
className="h-52 my-3 rounded-lg borderBlack p-4 dark:bg-white dark:bg-opacity-80 dark:focus:bg-opacity-100 transition-all dark:outline-none"
name="message"
placeholder="Your message"
required
maxLength={5000}
/>
<SubmitBtn />
</form>
*/}
</motion.section>
);
}

0 comments on commit bd34204

Please sign in to comment.