azavea / fb-gender-survey-dashboard

Interactive exploration of global results from the Facebook "Survey on Gender Equality At Home
https://gender-survey-dashboard.netlify.app/
Apache License 2.0
2 stars 2 forks source link

Add modal content #71

Closed TaiWilkin closed 3 years ago

TaiWilkin commented 3 years ago

Overview

Adds content for the FAQ and About modals.

Connects #31

Demo

Screen Shot 2021-01-13 at 9 27 57 AM Screen Shot 2021-01-13 at 9 28 18 AM

Notes

Ordinarily with a component with this much repetition in structure, if pulling from an API, one would use a mapped list to minimize code. However, in this particular case, the presence of links in the text content adds some complication to this logistically. In addition, since the text is stored locally, we would wouldn't actually be saving many lines of code. In the end, it seemed simplest and clearest to hard-code the sections/content, but use styled components for the repetitious portions of the structure. This allows us to still edit styling of the sections all at once if needed.

Testing Instructions

TaiWilkin commented 3 years ago

Thanks for the review!