Create config + api file where I centralize functions to read/write/subscribe to the db
Adds Button component with two variants: primary and secondary (open to changing this, or feel free to update as needed, there's some TODOS's for stying but I think that once we figure out the theme it will all come together).
Adds Modals with different variations. This takes the place of 'reset' component. Here is a list of the modals created:
Invalid Board -- shows when Bingo pattern is not met
Login modal -- shows when when user gets bing for the first time
Update Username -- shows ofter the user's first login (note: there's also a users component that allows the user to update the username -- this one needs to be updated, there's also a TODO in there).
This has a randomNameGenerator method that calls a cloud function to generate a random name given some terms we provided.
Modal also has a checkbox to be able to 'opt in' to marketing emails
Submit score -- Shows when the user submits a score and is already logged in.
Adds leaderboard component -- this subscribes to changes in the db so it updates in real time
Notes
I know this is a lot, happy to walk through this, let me know a time that works best!
Sorry for the long PR.. it ended up piling up..
Changes:
randomNameGenerator
method that calls a cloud function to generate a random name given some terms we provided.Notes
I know this is a lot, happy to walk through this, let me know a time that works best!