@@ -161,36 +161,58 @@ export default function Footer({
161161 { /* NEWSLETTER */ }
162162 < section className = "grid grid-cols-1 gap-2 lg:col-start-1 lg:col-end-3 lg:justify-self-center 2xl:justify-self-end 2xl:col-start-3 2xl:col-end-4" >
163163 < h4 className = "underline" > Newsletter</ h4 >
164- < p className = "text-xl" > Subscribe for all the latest updates.</ p >
165- < form
166- className = "grid grid-cols-1"
167- action = "https://buttondown.email/api/emails/embed-subscribe/codingcatdev"
168- method = "post"
169- target = "popupwindow"
170- onSubmit = { ( ) =>
171- window . open (
172- 'https://buttondown.email/codingcatdev' ,
173- 'popupwindow'
174- )
175- }
176- >
177- < label htmlFor = "subEmail" className = "font-bold" >
178- Email
179- </ label >
180- < div className = "flex flex-wrap gap-4 lg:flex-nowrap" >
181- < input
182- name = "email"
183- id = "bd-email"
184- type = "email"
185- placeholder = "alex@codingcat.dev"
186- />
187- < input type = "hidden" value = "1" name = "embed" />
188164
189- < button className = "btn-secondary" type = "submit" >
190- Subscribe
191- </ button >
192- </ div >
193- </ form >
165+ < div id = "revue-embed" >
166+ < form
167+ className = "grid grid-cols-1"
168+ action = "http://codingtreats.com/add_subscriber"
169+ method = "post"
170+ id = "revue-form"
171+ name = "revue-form"
172+ target = "_blank"
173+ >
174+ < div className = "flex flex-wrap gap-4 revue-form-group lg:flex-nowrap" >
175+ < div className = "flex flex-col" >
176+ < label htmlFor = "member_email" > Email address</ label >
177+ < div className = "flex gap-2" >
178+ < input
179+ className = "revue-form-field"
180+ placeholder = "Your email address..."
181+ type = "email"
182+ name = "member[email]"
183+ id = "member_email"
184+ />
185+ < input
186+ className = "btn-secondary justify-self-end"
187+ type = "submit"
188+ value = "Subscribe"
189+ name = "member[subscribe]"
190+ id = "member_submit"
191+ />
192+ </ div >
193+ </ div >
194+ </ div >
195+ < div className = "max-w-xs mt-2 revue-form-footer" >
196+ By subscribing, you agree with Revue’s{ ' ' }
197+ < a
198+ target = "_blank"
199+ rel = "noreferrer"
200+ href = "https://www.getrevue.co/terms"
201+ >
202+ Terms of Service
203+ </ a > { ' ' }
204+ and{ ' ' }
205+ < a
206+ target = "_blank"
207+ rel = "noreferrer"
208+ href = "https://www.getrevue.co/privacy"
209+ >
210+ Privacy Policy
211+ </ a >
212+ .
213+ </ div >
214+ </ form >
215+ </ div >
194216 </ section >
195217 </ div >
196218 < p className = "mt-10 text-sm font-light leading-5 text-center" >
0 commit comments