diff --git a/app/contact/page.tsx b/app/contact/page.tsx
index 30cad14..fbd2795 100644
--- a/app/contact/page.tsx
+++ b/app/contact/page.tsx
@@ -1,6 +1,6 @@
"use client"
import { BuildingOffice2Icon, EnvelopeIcon, PhoneIcon } from "@heroicons/react/24/outline"
-import { FormEvent, use, useState } from "react"
+import { FormEvent, use, useEffect, useState } from "react"
export default function Contact() {
const [isSent, setIsSent] = useState(false)
@@ -44,18 +44,26 @@ export default function Contact() {
setIsLoading(false)
})
}
+ useEffect(() => {
+ if(isSent) {
+ const timeout = setTimeout(() => {
+ setIsSent(false)
+ }, 3000000)
+ return () => clearTimeout(timeout)
+ }
+ })
return (
{isSent && (
-
setIsSent(false)}
- className="cursor-pointer bg-primary-700 py-4 text-center text-primary-800 lg:px-4"
+
setIsSent(false)}
+ className="cursor-pointer absolute inset-0 flex items-center justify-center"
>
-
- Sent
- Your message has been sent.
-
+
+ Your message has been sent.
+
+
)}
diff --git a/app/services/page.tsx b/app/services/page.tsx
index 2996b07..41c7341 100644
--- a/app/services/page.tsx
+++ b/app/services/page.tsx
@@ -37,7 +37,7 @@ export default async function Projects() {
Everything to build your online presence
-
+
{features.map((feature) => (
diff --git a/styles/tailwind.css b/styles/tailwind.css
index b5c61c9..bd6213e 100644
--- a/styles/tailwind.css
+++ b/styles/tailwind.css
@@ -1,3 +1,3 @@
@tailwind base;
@tailwind components;
-@tailwind utilities;
+@tailwind utilities;
\ No newline at end of file