Skip to content

Commit

Permalink
minimally fix newsletter
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed Aug 15, 2024
1 parent eee6374 commit 14dd3ff
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/Newsletter.astro
Original file line number Diff line number Diff line change
@@ -23,7 +23,12 @@ const { class: className, ...rest } = Astro.props;
Enter your email for deadlines, announcements, and other great
SquiggleConf news.
</label>
<input id="email" type="email" placeholder="you.are@awesome.com" />
<input
id="email"
name="email"
type="email"
placeholder="you.are@awesome.com"
/>
<button class="button" type="submit">Subscribe</button>
</form>

@@ -57,7 +62,7 @@ const { class: className, ...rest } = Astro.props;
const email = emailInput.value;

const formBody = "userGroup=&email=" + encodeURIComponent(email);

console.log({ formBody });
fetch(form.action, {
method: "POST",
body: formBody,

0 comments on commit 14dd3ff

Please sign in to comment.