"use client" import { BuildingOffice2Icon, EnvelopeIcon, PhoneIcon } from "@heroicons/react/24/outline" import { FormEvent, useState } from "react" export default function Contact() { const [isSent, setIsSent] = useState(false) const [isLoading, setIsLoading] = useState(false) async function handleSubmit(event: FormEvent) { event.preventDefault() const form = event.target as HTMLFormElement const isValid = form.checkValidity() if (!isValid) { return } setIsLoading(true) await fetch("/api/send", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ firstName: form.firstName.value, lastName: form.lastName.value, email: form.email.value, message: form.message.value, phoneNumber: form.phoneNumber.value, }), }) form.reset() setIsSent(true) setIsLoading(false) } return (
{isSent && (
setIsSent(false)} className="cursor-pointer bg-primary-700 py-4 text-center text-primary-800 lg:px-4" >
Sent Your message has been sent.
)}

Get in touch

Feel free to contact me for any questions or inquiries. we will get back to you as soon as possible.

Address
Kammenstraat 57
2000, Antwerpen
Telephone
+32496799751