feat: add email subsciption

This commit is contained in:
thomas
2024-01-31 13:58:00 +01:00
parent e1a57a8cab
commit bb07207972
60 changed files with 198 additions and 190 deletions

View File

@@ -32,7 +32,7 @@ You should only override the jest configuration is the `unitTestRunner` option i
export default {
displayName: '< libName >', // 👈 lib name
preset: '../../../jest.preset.js', // 👈 be careful with the path
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
setupFilesAfterEnv: ['<rootDir>/src/subscription-setup.ts'],
transform: {
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',

View File

@@ -24,12 +24,20 @@ hero:
import { Card, CardGrid } from '@astrojs/starlight/components';
import MyIcon from '../../components/MyIcon.astro';
import SubscriptionForm from '../../components/SubscriptionForm.astro'
<CardGrid>
<Card title="43 Challenges">
This repository gathers 43 challenges related to <b>Angular</b>, <b>Nx</b>, <b>RxJS</b>, <b>Ngrx</b> and <b>Typescript</b>.
These challenges resolve around real-life issues or specific features to elevate your skills.
</Card>
<Card title="Subscribe to get notify of latest challenges">
<SubscriptionForm isNote={false}/>
</Card>
<Card title="Become an OSS Maintainer">
One of the goals of this repository is to <b>lower the barrier</b> to entry
for Open Source Software (OSS). By engaging with these challenges, you will

View File

@@ -0,0 +1,10 @@
---
title: Subscription
description: Subscribe to email.
noCommentSection: true
---
import SubscriptionForm from '../../../components/SubscriptionForm.astro'
<div>If you want to be informed of new challenges, you can subscribe to the email form.</div>
<SubscriptionForm isNote={true} />

View File

@@ -1,9 +0,0 @@
---
title: Test
description: Guide to checking out someone else's answer.
sidebar:
order: 3
---
import SubscriptionForm from '../../../components/SubscriptionForm.astro'
<SubscriptionForm />