Page MenuHomePhabricator

[landing] implemented investor profile card component boilerplate
ClosedPublic

Authored by ginsu on Oct 10 2022, 7:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 28, 8:01 AM
Unknown Object (File)
Apr 7 2024, 8:56 AM
Unknown Object (File)
Apr 6 2024, 9:09 AM
Unknown Object (File)
Apr 2 2024, 9:00 AM
Unknown Object (File)
Mar 28 2024, 10:05 AM
Unknown Object (File)
Mar 28 2024, 10:05 AM
Unknown Object (File)
Mar 28 2024, 10:05 AM
Unknown Object (File)
Mar 28 2024, 10:05 AM

Details

Summary

Will not land until all diffs in the stack are accepted

Implemented boilerplate for investor profile card component. All investor profile cards will have a maximum of 2 lines for the description. If a card has more than two lines, then ellipses will be used.

Currently, the investor profile cards are not mobile-friendly, but will make separate diffs to address this.

Next diffs:

  1. Make investor profile cards mobile friendly
  2. Create Modal component for investor profile cards
  3. Populate investor cards with data

Linear Task: ENG-1953
Figma: Investor Page

Depends on D5302

Test Plan

Please see attached screenshots to view how investor cards look visually:

Laptop View:

Screen Shot 2022-10-07 at 10.35.36 PM.png (1×3 px, 2 MB)

iPad View:

Screen Shot 2022-10-10 at 9.39.58 AM.png (1×3 px, 1 MB)

Screenshot to show that the ellipses are being generated whenever the description is too long (CoinFund Investor card component):

Screen Shot 2022-10-07 at 10.38.16 PM.png (2×3 px, 1 MB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu requested review of this revision.Oct 10 2022, 7:19 AM
ginsu retitled this revision from [landing] implemented investor profile card component to [landing] implemented investor profile card component boilerplate.Oct 10 2022, 7:22 AM
ginsu edited the summary of this revision. (Show Details)
ginsu edited the test plan for this revision. (Show Details)
ginsu edited the summary of this revision. (Show Details)

changed color from rgba to hex

ashoat added 1 blocking reviewer(s): atul.

Generally looks good to me!! Defer to @atul for the final accept

atul requested changes to this revision.EditedOct 10 2022, 10:57 AM

Visually looks great! However, can we see if we can avoid using webkit-specific CSS properties?

Let's also make sure that things look consistent across Chrome/Firefox/Safari

landing/investor-profile.css
34–36 ↗(On Diff #17452)

Can you explain why we need these webkit-specific properties? Have you tested this in Chrome/Firefox as well to make sure that things look consistent across the board?

I have a hunch we can achieve the same design without webkit-specific CSS properties, would appreciate some additional context on possible challenges

landing/investor-profile.react.js
19 ↗(On Diff #17452)

Good call including this alt text

This revision now requires changes to proceed.Oct 10 2022, 10:57 AM

Spoke to @atul irl about this, but -webkit-line-clamp is fully supported by all browsers and is now considered the "standardized" method to truncate multiple-line text. Additionally, the normal line-clamp property is deprecated now and has been replaced by webkit. I will list some sources I found that support this.

Screen Shot 2022-10-10 at 3.21.10 PM.png (930×1 px, 153 KB)

MDN Web Docs
Line Clamping Guide

atul added inline comments.
landing/investors.react.js
20 ↗(On Diff #17452)

Nit

This revision is now accepted and ready to land.Oct 10 2022, 12:28 PM

planning changes to switch investmentDate to involvement

changed investmentDate to involvement

This revision is now accepted and ready to land.Oct 19 2022, 7:23 AM

changed css classname from investmentDate to invovlement as well