mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-30 20:49:49 +02:00
Update subscription
This commit is contained in:
@@ -3,11 +3,7 @@ import Popup from './Popup/Popup.astro';
|
|||||||
import CaptchaFields from './Captcha/CaptchaFields.astro';
|
import CaptchaFields from './Captcha/CaptchaFields.astro';
|
||||||
---
|
---
|
||||||
|
|
||||||
<Popup
|
<Popup id='download-popup' title='Download' subtitle='Enter your email below to receive the download link.'>
|
||||||
id='download-popup'
|
|
||||||
title='Download'
|
|
||||||
subtitle='Enter your email below to receive the download link.'
|
|
||||||
>
|
|
||||||
<form
|
<form
|
||||||
action='https://newsletter.roadmap.sh/subscribe'
|
action='https://newsletter.roadmap.sh/subscribe'
|
||||||
method='POST'
|
method='POST'
|
||||||
@@ -15,6 +11,8 @@ import CaptchaFields from './Captcha/CaptchaFields.astro';
|
|||||||
target='_blank'
|
target='_blank'
|
||||||
captcha-form
|
captcha-form
|
||||||
>
|
>
|
||||||
|
<input type='hidden' name='gdpr' value='true' />
|
||||||
|
|
||||||
<input
|
<input
|
||||||
type='email'
|
type='email'
|
||||||
name='email'
|
name='email'
|
||||||
@@ -42,9 +40,7 @@ import CaptchaFields from './Captcha/CaptchaFields.astro';
|
|||||||
</Popup>
|
</Popup>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document
|
document.querySelector('[submit-download-form]')?.addEventListener('click', () => {
|
||||||
.querySelector('[submit-download-form]')
|
|
||||||
?.addEventListener('click', () => {
|
|
||||||
window.fireEvent({
|
window.fireEvent({
|
||||||
category: 'Subscription',
|
category: 'Subscription',
|
||||||
action: 'Submitted Popup Form',
|
action: 'Submitted Popup Form',
|
||||||
|
@@ -3,11 +3,7 @@ import Popup from './Popup/Popup.astro';
|
|||||||
import CaptchaFields from './Captcha/CaptchaFields.astro';
|
import CaptchaFields from './Captcha/CaptchaFields.astro';
|
||||||
---
|
---
|
||||||
|
|
||||||
<Popup
|
<Popup id='subscribe-popup' title='Subscribe' subtitle='Enter your email below to receive updates.'>
|
||||||
id='subscribe-popup'
|
|
||||||
title='Subscribe'
|
|
||||||
subtitle='Enter your email below to receive updates.'
|
|
||||||
>
|
|
||||||
<form
|
<form
|
||||||
action='https://newsletter.roadmap.sh/subscribe'
|
action='https://newsletter.roadmap.sh/subscribe'
|
||||||
method='POST'
|
method='POST'
|
||||||
@@ -15,6 +11,8 @@ import CaptchaFields from './Captcha/CaptchaFields.astro';
|
|||||||
target='_blank'
|
target='_blank'
|
||||||
captcha-form
|
captcha-form
|
||||||
>
|
>
|
||||||
|
<input type='hidden' name='gdpr' value='true' />
|
||||||
|
|
||||||
<input
|
<input
|
||||||
type='email'
|
type='email'
|
||||||
name='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'>
|
<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>
|
<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'>
|
<p class='hidden sm:block text-md text-gray-600'>
|
||||||
Register yourself to receive occasional emails about new roadmaps,
|
Register yourself to receive occasional emails about new roadmaps, updates, guides and videos
|
||||||
updates, guides and videos
|
|
||||||
</p>
|
</p>
|
||||||
<p class='text-sm block sm:hidden text-gray-600'>
|
<p class='text-sm block sm:hidden text-gray-600'>
|
||||||
Register yourself for occasional updates about roadmaps, guides and
|
Register yourself for occasional updates about roadmaps, guides and videos.
|
||||||
videos.
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -33,6 +31,8 @@ import BaseLayout from '../layouts/BaseLayout.astro';
|
|||||||
class='w-full'
|
class='w-full'
|
||||||
captcha-form
|
captcha-form
|
||||||
>
|
>
|
||||||
|
<input type='hidden' name='gdpr' value='true' />
|
||||||
|
|
||||||
<input
|
<input
|
||||||
type='email'
|
type='email'
|
||||||
required
|
required
|
||||||
|
Reference in New Issue
Block a user