Newsletter sign up pages #4133
Replies: 2 comments
-
Following more thinking within the Newsletters team and chats with Dotcom, we are currently favouring the approach of using Composer to write the newsletter sign up pages and render them as articles using DCR, with a new NewsletterSignup layout. This approach offers a few advantages:
Things to note:
Here are the designs for reference: https://www.figma.com/file/Nwcf5adXfG6hgHbwuD1OoQ/FINAL%3A-Single-signup-page-designs |
Beta Was this translation helpful? Give feedback.
0 replies
-
This has generally been covered in this PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Abstract
The newsletter team wants to add sign-up pages for each editorial newsletter, using data from the newsletters api. These pages can be rendered entirely through frontend, but we'd prefer to use DCR.
As they will neither be articles nor interctives, there isn't a DCR endpoint to support them. Rather than build an endpont specifically for these pages, it seems better to build a more abstract endpoint that would accept a JSON post identifying the 'view component' (IE the React component describing a page template) and providing the data to use as props for that component.
drawbacks/challenges
Would need a maintainable way to ensure the page model (defined as scala classes) from frontend are in sync with the view component props (defined as Typescript interfaces?) in DCR.
worked example for planned newsletter detail page
e.g.
Beta Was this translation helpful? Give feedback.
All reactions