From bde51d1ca0513a5bb5e1ea720c5742bdf2b1029d Mon Sep 17 00:00:00 2001 From: Quantstruct Bot Date: Sun, 2 Feb 2025 20:13:06 -0800 Subject: [PATCH] Add subscription form --- fern/changelog/overview.mdx | 82 +++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/fern/changelog/overview.mdx b/fern/changelog/overview.mdx index 712e15e23..626a7637b 100644 --- a/fern/changelog/overview.mdx +++ b/fern/changelog/overview.mdx @@ -1,3 +1,85 @@ --- slug: changelog --- + document.querySelector('input[type="email"]').focus()}>Get the (almost) daily changelog} + icon="envelope" + iconType="solid" +> +
{ + const emailInput = document.getElementById('email_input'); + const emailValue = emailInput.value; + const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; + if (!emailPattern.test(emailValue)) { + e.preventDefault(); + alert('Please enter a valid email address.'); + } + }} + > +
+ + + +
+
+
\ No newline at end of file