BekahHW / postpartum-wellness-app

An app to help moms monitor their well-being during the post-partum stage.
MIT License
43 stars 38 forks source link

Organize Resources by Categories #48

Closed BekahHW closed 2 years ago

BekahHW commented 4 years ago

Is your feature request related to a problem? Please describe. User feedback says that resources are super important here. Because there will likely be more resources than I anticipated, we'll need to handle those in a different way.

Describe the solution you'd like I'm thinking--but open to feedback-- that initially there are some clear click links for immediate help:

And below that there are resource cards that when clicked, open to a set of links. Ideas for the cards:

I thought about a carousel, but I don't like that they'd have to swipe to find what they need.

We're already using React Native Paper, so this might be one option: https://callstack.github.io/react-native-paper/card.html An onPress function could change the state to open or something, and then the resources will pop up. I'm not sure how that will work with layout, but I'll look into that.

Might be useful: https://blog.bitsrc.io/demystifying-flexbox-in-react-native-4b62979fa9ea

Steps

It will look something like this `<Card style={styles.surface} onPress={() => console.log("cc")}

Resources on how to help moms and identify postpartum mood disorders `

image

In this first pass, we'll worry most about getting the cards in place. Right now I don't know if when you click them it will take you to a new Screen or if we set state [open, setIsOpen] and when you press the card, it add the resources to the cards. If the latter is the case, we'll also need to import useState from react.

BekahHW commented 4 years ago

Style idea:

image

aishwarya-mali commented 2 years ago

@BekahHW I'd like to work on this feature. But where would resources go?

BekahHW commented 2 years ago

We'll need to add new screens for those. For right now you can console.log the name. I'll add some issues for the new pages later today.