diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..0967ef4
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1 @@
+{}
diff --git a/app/(website)/contact/contact.js b/app/(website)/contact/contact.js
index 463e332..842f213 100644
--- a/app/(website)/contact/contact.js
+++ b/app/(website)/contact/contact.js
@@ -7,7 +7,7 @@ import useWeb3Forms from "@web3forms/react";
import {
EnvelopeIcon,
PhoneIcon,
- ChatBubbleLeftRightIcon
+ ChatBubbleLeftRightIcon,
} from "@heroicons/react/24/outline";
export default function Contact({ settings }) {
const {
@@ -17,9 +17,9 @@ export default function Contact({ settings }) {
watch,
control,
setValue,
- formState: { errors, isSubmitSuccessful, isSubmitting }
+ formState: { errors, isSubmitSuccessful, isSubmitting },
} = useForm({
- mode: "onTouched"
+ mode: "onTouched",
});
const [isSuccess, setIsSuccess] = useState(false);
const [message, setMessage] = useState(false);
@@ -40,7 +40,7 @@ export default function Contact({ settings }) {
onError: (msg, data) => {
setIsSuccess(false);
setMessage(msg);
- }
+ },
});
return (
@@ -52,22 +52,20 @@ export default function Contact({ settings }) {
Sign-up here to become a speaker.
-
+
Contact React Denver
-
+
Have something to say? We are here to help.
{settings?.email && (
-
-
-
- {settings.email}
-
+
)}
@@ -83,21 +81,22 @@ export default function Contact({ settings }) {
id=""
className="hidden"
style={{ display: "none" }}
- {...register("botcheck")}>
+ {...register("botcheck")}
+ >
{errors.name && (
@@ -117,17 +116,17 @@ export default function Contact({ settings }) {
placeholder="Email Address"
name="email"
autoComplete="false"
- className={`w-full px-4 py-3 border-2 placeholder:text-gray-800 dark:text-white rounded-md outline-none dark:placeholder:text-gray-200 dark:bg-gray-900 focus:ring-4 ${
+ className={`w-full rounded-md border-2 px-4 py-3 outline-none placeholder:text-gray-800 focus:ring-4 dark:bg-gray-900 dark:text-white dark:placeholder:text-gray-200 ${
errors.email
- ? "border-red-600 focus:border-red-600 ring-red-100 dark:ring-0"
- : "border-gray-300 focus:border-gray-600 ring-gray-100 dark:border-gray-600 dark:focus:border-white dark:ring-0"
+ ? "border-red-600 ring-red-100 focus:border-red-600 dark:ring-0"
+ : "border-gray-300 ring-gray-100 focus:border-gray-600 dark:border-gray-600 dark:ring-0 dark:focus:border-white"
}`}
{...register("email", {
required: "Enter your email",
pattern: {
value: /^\S+@\S+$/i,
- message: "Please enter a valid email"
- }
+ message: "Please enter a valid email",
+ },
})}
/>
{errors.email && (
@@ -165,9 +164,10 @@ export default function Contact({ settings }) {
name="message"
placeholder="Your Talk Description"
className={`w-full px-4 py-3 border-2 placeholder:text-gray-800 dark:text-white dark:placeholder:text-gray-200 dark:bg-gray-900 rounded-md outline-none h-36 focus:ring-4 ${
+
errors.message
- ? "border-red-600 focus:border-red-600 ring-red-100 dark:ring-0"
- : "border-gray-300 focus:border-gray-600 ring-gray-100 dark:border-gray-600 dark:focus:border-white dark:ring-0"
+ ? "border-red-600 ring-red-100 focus:border-red-600 dark:ring-0"
+ : "border-gray-300 ring-gray-100 focus:border-gray-600 dark:border-gray-600 dark:ring-0 dark:focus:border-white"
}`}
{...register("message", {
required: "Enter your talk description"
@@ -242,23 +242,27 @@ export default function Contact({ settings }) {