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

[FE] Baby Book Photo and Intro Pages #143

Open
parkerra opened this issue Sep 21, 2024 · 0 comments · May be fixed by #146
Open

[FE] Baby Book Photo and Intro Pages #143

parkerra opened this issue Sep 21, 2024 · 0 comments · May be fixed by #146
Assignees
Labels
Milestone

Comments

@parkerra
Copy link
Contributor

parkerra commented Sep 21, 2024

Overview

The Baby Book is where Caregivers can upload photos of babies so that MBB can print these photos to give them to the mothers in prison. These page has both mobile and desktop views for Caregivers, and desktop views for Admins to see the album. This ticket includes the modal to view one photo and its description, and introduction pages for the Caregiver views.

Link to Figma: https://www.figma.com/design/1eq6iy7h2Cd7rYTxPB4s5P/Motherhood-Beyond-Bars-%2F-Spr2022-(Copy)?node-id=6212-1439&node-type=CANVAS&t=IzQT02xW96dasVs1-0

Requirements

  • Intro pages for Caregivers with both mobile and desktop views including: Start Baby Book page, No Photos page, No Access page, and Current Baby Books page
    • For Current Baby Books page, each card should be clickable with a link, but the actual link it goes to will be added later
  • Create modal to view baby photo with description, it should take in an image and a description. This is already implemented in the Admin view so see components/BabyBook/PictureModal for reference. You can reuse this modal if it has been made well, but it might be easier to start over to ensure everything is mobile friendly
    • After creating the modal for viewing the baby photo, update the modal to have an Edit mode where a textbox and the Replace Image button appear so that the photo can be edited
    • Update the photo using a backend endpoint (endpoint in progress)
    • For replace image button, use backend endpoint (endpoint in progress)
    • Create toast component for when the photo is successfully edited

Important Information

  • Make pages for mobile first, then extend them to Desktop
  • Use DevTools to resize the screen for different screen sizes including tablets both vertically and horizontally
  • Test this on your phone, it's important for making sure the keyboard doesn't cover anything and native components look alright!

Testing on Phone

Run the program on your computer using npm run dev, then on your phone on different common browsers (Google Chrome, Firefox, and Safari if iPhone), go to https://[your IP address]:[port (probably 3000)]/page. Example: https://123.45.67.89:3000/login. Make sure both your phone and laptop are connected to the same WiFi.

How to find your computer's IP Address:

  • Windows: ipconfig then scroll to Wireless LAN adapter Wi-Fi -> IPv4 Address
  • Mac: ipconfig getifaddr en0

Don't hesitate to Slack me if you need any help or have any questions :D We can message or jump into a Huddle meeting as needed!

@parkerra parkerra added this to the Sprint 2 milestone Sep 21, 2024
@parkerra parkerra changed the title [FE] Baby Book Photo and Intro Pages [In Progress] [FE] Baby Book Photo and Intro Pages Sep 21, 2024
@parkerra parkerra linked a pull request Sep 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants