This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
2021 Design Notes
Frederic Pun edited this page Apr 2, 2021
·
4 revisions
https://www.figma.com/file/JuglPkGI7p5QKcdBCj4hPR/Design-Handoff?node-id=0%3A1
- Has 3 elevations
-
2 positions (top, bottom)
-
"shadow" color can be prop, set the default to be based on the design (pink or secondary)
- Two sizes
- Takes background color,
- Can have a heading which is absolutely centered (css grid is the best approach from my experience)
- It is what it is
- Only background and text in certain areas
- Add css flags to enable the toggle
- Create a mixin for generic?
- It is what it is
- Perhaps look into horizontal scroll with snapping (https://css-tricks.com/practical-css-scroll-snapping/)
- This should give us a good native experience on phone and desktop
- Set the height based on the content, image is absolute and hidden behind the content.
- Use css grid to ensure height of the largest - overflow hidden + translation for the magic (with js to have a dynamic translation distance, watch for resize)
- Having blue area wrapped in a parent, have it change depending on scroll percentage?
- Have two refs as anchors, then generate line from there? (seems like the most "responsive friendly")