patx/afterdarklabs

connect formspree

Commit b6ac9ee · patx · 2026-05-16T15:41:14-04:00

Changeset
b6ac9ee0c8b3dd51ef2cb49daa7c3ea12983464a
Parents
bbe90bbaa2986bda2670fdb9a1a109a6a50c5dd2

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/index.html b/index.html
index 9422eba..571ff78 100644
--- a/index.html
+++ b/index.html
@@ -231,12 +231,13 @@
         <div class="max-w-3xl mx-auto text-center px-6">
             <h2 class="heading text-6xl font-bold tracking-tighter mb-6">Ready to build something exceptional?</h2>
             <p class="text-xl text-gray-400 mb-10">Tell us about your project. We reply the same day!</p>
-            <form class="space-y-6" onsubmit="handleSubmit(event)">
+            <form class="space-y-6" action="https://formspree.io/f/xeedjery" method="POST">
+                <input type="hidden" name="_subject" value="New project inquiry from After Dark Labs">
                 <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
-                    <input type="text" placeholder="Your Name" class="bg-zinc-900 border border-white/10 focus:border-[#ccff00] rounded-2xl px-6 py-5 outline-none transition-colors">
-                    <input type="email" placeholder="Business Email" class="bg-zinc-900 border border-white/10 focus:border-[#ccff00] rounded-2xl px-6 py-5 outline-none transition-colors">
+                    <input type="text" name="name" placeholder="Your Name" autocomplete="name" required class="bg-zinc-900 border border-white/10 focus:border-[#ccff00] rounded-2xl px-6 py-5 outline-none transition-colors">
+                    <input type="email" name="email" placeholder="Business Email" autocomplete="email" required class="bg-zinc-900 border border-white/10 focus:border-[#ccff00] rounded-2xl px-6 py-5 outline-none transition-colors">
                 </div>
-                <textarea placeholder="Tell us about your project..." rows="6" class="w-full bg-zinc-900 border border-white/10 focus:border-[#ccff00] rounded-3xl px-6 py-5 outline-none resize-none"></textarea>
+                <textarea name="message" placeholder="Tell us about your project..." rows="6" required class="w-full bg-zinc-900 border border-white/10 focus:border-[#ccff00] rounded-3xl px-6 py-5 outline-none resize-none"></textarea>
                 <button type="submit" class="w-full py-6 bg-[#ccff00] text-black font-bold text-xl rounded-3xl hover:scale-[1.02] transition-all">
                     Send Message
                 </button>
@@ -261,11 +262,6 @@
     </div>
 
     <script>
-        function handleSubmit(e) {
-            e.preventDefault();
-            alert("Thank you! We'll get back to you within 24 hours. 🌑");
-        }
-
         (function () {
             const modal = document.getElementById('work-modal');
             const modalImage = document.getElementById('work-modal-image');