Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create reusable newsletter signup component #3

Merged
merged 5 commits into from
Apr 29, 2024

Conversation

JoshAntBrown
Copy link
Contributor

/claim #1
Resolves #1

This PR adds a SignupsController, a set of views, and a helper to render a signup form anywhere within the website.

It uses a turboframe to constrain the form and it's interaction within the component.

The controller can be updated later to handle the logic of actually adding the email to the email list.

Screenshot 2024-04-29 at 16 13 29
Screenshot 2024-04-29 at 16 13 36

@Shpigford
Copy link
Member

@JoshAntBrown Looks good! Mind fixing the linter error? Then I'll merge.

@JoshAntBrown
Copy link
Contributor Author

Ah missed that, will pick that up now!

@Shpigford
Copy link
Member

Ah missed that, will pick that up now!

Looks like a couple more. 🙂

@JoshAntBrown
Copy link
Contributor Author

😅 So there was, looks like I've not got my editor configured properly for this project yet. Should be all sorted now!

@JoshAntBrown
Copy link
Contributor Author

Just pushed a small refactor to how the component gets centered, felt like it makes more sense to have the parent dictate things like max width and margins rather than trying to handle it all within the component itself.

This should be all good now.

@Shpigford Shpigford merged commit e8b6d86 into maybe-finance:main Apr 29, 2024
4 checks passed
@JoshAntBrown JoshAntBrown deleted the feature/newsletter-signup branch April 29, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a reusable newsletter signup component
2 participants