File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,16 +139,31 @@ export default function Footer({
139139 < section className = "grid grid-cols-1 lg:col-start-1 lg:col-end-3 lg:justify-self-center 2xl:justify-self-end 2xl:col-start-3 2xl:col-end-4" >
140140 < h4 className = "underline" > Newsletter</ h4 >
141141 < p className = "text-xl" > Subscribe for all the latest updates.</ p >
142- < form className = "grid grid-cols-1" >
142+ < form
143+ className = "grid grid-cols-1"
144+ action = "https://buttondown.email/api/emails/embed-subscribe/codingcatdev"
145+ method = "post"
146+ target = "popupwindow"
147+ onSubmit = { ( ) =>
148+ window . open (
149+ 'https://buttondown.email/codingcatdev' ,
150+ 'popupwindow'
151+ )
152+ }
153+ >
143154 < label htmlFor = "subEmail" > Email</ label >
144155 < div className = "flex flex-wrap gap-4 lg:flex-nowrap" >
145156 < input
146- id = "subEmail"
157+ name = "email"
158+ id = "bd-email"
147159 type = "email"
148160 placeholder = "alex@codingcat.dev"
149161 />
162+ < input type = "hidden" value = "1" name = "embed" />
150163
151- < button className = "btn-secondary" > Subscribe</ button >
164+ < button className = "btn-secondary" type = "submit" >
165+ Subscribe
166+ </ button >
152167 </ div >
153168 </ form >
154169 </ section >
You can’t perform that action at this time.
0 commit comments