blockchain-developer-hub
blockchain-developer-hub copied to clipboard
Newsletter UI
As a client I would like to be able to signup to a newsletter form the footer of the site.
Note: The newsletter functionality need to be merged before this can be worked on
AC:
- [x] If the newsletter Environment is not available, do not show the newsletter in the footer
- [x] Show newsletter in the footer as shown in figma
- [x] Show a success message on successfully registration
- [x] Show an error message if registration fails
NEW AC:
- [x] Add a new banner for the newsletter on the homepage as shown in the following figma
- [x] Change the words shows in the banner to: Sign up for our newsletter Stay updated on the latest blockchain and smart contract content - delivered straight to your inbox!
- [x] Footer on the homepage will stay as it currently is on production
- [x] Footer on any other page, will have the newly created Newsletter box
https://www.figma.com/file/9eqpfWUrL3gAQ6Royvl75u/Blockchain-Education?node-id=11051%3A72307
Update V3:
- [ ] Change the API endpoint to use hub spot forms (ask the link to simone)
- [ ] Remove any unused Variables ( i think the variable with the hubspot id is not needed anymore)
- [ ] change the object sent over to have the structure shown below
- [ ] test it (create a form and test it)
Expected object:
{
"fields": [
{
"name": "email",
"value": "[email protected]"
}
]
}