Skip to content

Commit 4ef53c5

Browse files
authored
Merge pull request #362 from CodeForPhilly/website-form-email
set up the contact form on the website to send an email to contact@bdtoolkit.org via Formspree
2 parents b0218e5 + 8ef0ecb commit 4ef53c5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

website/src/components/Contact.astro

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ import wedge from "../assets/backgrounds/wedge.svg";
1010
<div class="prose prose-headings:text-left">
1111
<Content />
1212
</div>
13-
<form action="message" class="mt-6">
13+
<form
14+
action="https://formspree.io/f/xlgpngrj"
15+
method="post"
16+
class="mt-6"
17+
>
1418
<div><label for="name">Name:</label></div>
1519
<div>
1620
<input
@@ -21,17 +25,17 @@ import wedge from "../assets/backgrounds/wedge.svg";
2125
placeholder="John Doe"
2226
/>
2327
</div>
24-
<div><label for="name">Email:</label></div>
28+
<div><label for="email">Email:</label></div>
2529
<div>
2630
<input
2731
class="my-3 p-3 w-full border-2 border-bdt-blue rounded-2xl"
28-
type="text"
32+
type="email"
2933
name="email"
3034
id="email"
3135
placeholder="johndoe@example.com"
3236
/>
3337
</div>
34-
<div><label for="name">Message:</label></div>
38+
<div><label for="message">Message:</label></div>
3539
<div>
3640
<textarea
3741
class="my-3 p-3 w-full h-40 border-2 border-bdt-blue rounded-2xl"

0 commit comments

Comments
 (0)