Update subscription

pull/3444/merge
Kamran Ahmed 2 years ago
parent 5c1d803892
commit 8200993af4
  1. 22
      src/components/DownloadPopup.astro
  2. 8
      src/components/SubscribePopup.astro
  3. 8
      src/pages/signup.astro

@ -3,11 +3,7 @@ import Popup from './Popup/Popup.astro';
import CaptchaFields from './Captcha/CaptchaFields.astro';
---
<Popup
id='download-popup'
title='Download'
subtitle='Enter your email below to receive the download link.'
>
<Popup id='download-popup' title='Download' subtitle='Enter your email below to receive the download link.'>
<form
action='https://newsletter.roadmap.sh/subscribe'
method='POST'
@ -15,6 +11,8 @@ import CaptchaFields from './Captcha/CaptchaFields.astro';
target='_blank'
captcha-form
>
<input type='hidden' name='gdpr' value='true' />
<input
type='email'
name='email'
@ -42,13 +40,11 @@ import CaptchaFields from './Captcha/CaptchaFields.astro';
</Popup>
<script>
document
.querySelector('[submit-download-form]')
?.addEventListener('click', () => {
window.fireEvent({
category: 'Subscription',
action: 'Submitted Popup Form',
label: 'Download Roadmap Popup',
});
document.querySelector('[submit-download-form]')?.addEventListener('click', () => {
window.fireEvent({
category: 'Subscription',
action: 'Submitted Popup Form',
label: 'Download Roadmap Popup',
});
});
</script>

@ -3,11 +3,7 @@ import Popup from './Popup/Popup.astro';
import CaptchaFields from './Captcha/CaptchaFields.astro';
---
<Popup
id='subscribe-popup'
title='Subscribe'
subtitle='Enter your email below to receive updates.'
>
<Popup id='subscribe-popup' title='Subscribe' subtitle='Enter your email below to receive updates.'>
<form
action='https://newsletter.roadmap.sh/subscribe'
method='POST'
@ -15,6 +11,8 @@ import CaptchaFields from './Captcha/CaptchaFields.astro';
target='_blank'
captcha-form
>
<input type='hidden' name='gdpr' value='true' />
<input
type='email'
name='email'

@ -17,12 +17,10 @@ import BaseLayout from '../layouts/BaseLayout.astro';
<div class='mb-2 sm:mb-5 text-left sm:text-center'>
<h1 class='text-3xl sm:text-5xl font-semibold mb-2 sm:mb-4'>Signup</h1>
<p class='hidden sm:block text-md text-gray-600'>
Register yourself to receive occasional emails about new roadmaps,
updates, guides and videos
Register yourself to receive occasional emails about new roadmaps, updates, guides and videos
</p>
<p class='text-sm block sm:hidden text-gray-600'>
Register yourself for occasional updates about roadmaps, guides and
videos.
Register yourself for occasional updates about roadmaps, guides and videos.
</p>
</div>
@ -33,6 +31,8 @@ import BaseLayout from '../layouts/BaseLayout.astro';
class='w-full'
captcha-form
>
<input type='hidden' name='gdpr' value='true' />
<input
type='email'
required

Loading…
Cancel
Save