Page MenuHomePhabricator

[landing] implemented investor profile modal UI design
ClosedPublic

Authored by ginsu on Oct 19 2022, 10:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 6, 6:10 PM
Unknown Object (File)
Mon, Jan 6, 5:17 PM
Unknown Object (File)
Sun, Jan 5, 7:30 AM
Unknown Object (File)
Thu, Jan 2, 9:20 PM
Unknown Object (File)
Mon, Dec 30, 2:35 AM
Unknown Object (File)
Fri, Dec 27, 5:04 PM
Unknown Object (File)
Tue, Dec 24, 12:31 PM
Unknown Object (File)
Nov 26 2024, 5:17 AM

Details

Summary

Will not land until all diffs in stack have been accepted

implemented investor profile modal UI design. This diff just handles the jsx and styling of the modal, a seperate diff will be put up shortly to handle the actual population of data.


Linear Task: ENG-1953
Figma: Investor Page

Depends on D5334 and D5333

Test Plan

Please watch the demo videos to see what the modals would look like, and how they respond to different screen sizes:

Small description case:

Large description case:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Oct 19 2022, 10:55 AM
Harbormaster failed remote builds in B12869: Diff 17660!
ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, rohan.

fixed classnames dependency

ginsu edited the test plan for this revision. (Show Details)
ginsu edited the summary of this revision. (Show Details)

Accepting with couple of questions inline

landing/investor-profile.css
50 ↗(On Diff #17661)

What happens if we don't explicitly set cursor: default?

53 ↗(On Diff #17661)

Since this is a constant can we avoid using calc() and just have something like:

max-width: min(691.2px, 90vw);

or probably

max-width: min(692px, 90vw);

to avoid fractional pixel?

59 ↗(On Diff #17661)

Do we need to explicitly set height to auto here?

5e0b28.png (118×400 px, 10 KB)

(even if not explicitly needed, feel free to leave in if you prefer)

70 ↗(On Diff #17661)

Same as question about height in descriptionModal:

516851.png (486×990 px, 51 KB)

landing/investor-profile.react.js
24 ↗(On Diff #17661)

If I'm understanding correctly, could this be named something like isModalActive?

This revision is now accepted and ready to land.Oct 19 2022, 11:31 AM
landing/investor-profile.css
59 ↗(On Diff #17661)

we need height: auto; because otherwise, the height will stay at 56px because of the p.description class