Page MenuHomePhabricator

[landing] change text content on HeroContent component
ClosedPublic

Authored by ginsu on May 22 2023, 6:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 8, 10:31 AM
Unknown Object (File)
Wed, Mar 27, 11:54 PM
Unknown Object (File)
Mar 6 2024, 9:49 AM
Unknown Object (File)
Mar 6 2024, 9:49 AM
Unknown Object (File)
Mar 4 2024, 11:24 PM
Unknown Object (File)
Feb 10 2024, 1:43 PM
Unknown Object (File)
Feb 10 2024, 1:43 PM
Unknown Object (File)
Feb 10 2024, 1:43 PM
Subscribers

Details

Summary

As part of the landing redesign we are completely redesigning our Hero section. This diff updates the header and subheader of the hero section. Subsequent diffs will handle the Hero image, the email form, and the layout of the hero

Here is the Figma design for reference:

Screenshot 2023-05-22 at 4.45.54 PM.png (2×3 px, 2 MB)

Depends on D7898

Test Plan

Please see the screenshots below:

Desktop:

Screenshot 2023-05-22 at 4.31.35 PM.png (2×3 px, 1 MB)

Tablet:

Screenshot 2023-05-22 at 4.32.05 PM.png (2×3 px, 923 KB)

Phone:

Screenshot 2023-05-22 at 4.31.58 PM.png (2×3 px, 907 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, kamil.
ginsu edited the summary of this revision. (Show Details)
ginsu added inline comments.
landing/hero-content.css
8–9 ↗(On Diff #26778)

This style is supported by all modern browsers (browsers from the last 10 years)

https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip

10 ↗(On Diff #26778)
landing/hero-content.react.js
4 ↗(On Diff #26778)

The next diff will remove this dependency from our package.json

ginsu edited the summary of this revision. (Show Details)
ginsu requested review of this revision.May 22 2023, 6:57 AM
atul added inline comments.
landing/hero-content.css
9 ↗(On Diff #26778)

Annoying that so many browsers still have this "Implemented with the vendor prefix: -webkit-" so we can't just go w/ background-clip

Oh well

landing/hero-content.react.js
16–17 ↗(On Diff #26778)

We aren't "separating" subheading2 into subHeading2 w/ camelCase, should we just do css.subheader for consistency

This revision is now accepted and ready to land.May 22 2023, 9:10 AM
landing/hero-content.css
9 ↗(On Diff #26778)

We should probably try to avoid having explicit vendor prefixes. Is there a tool in our environment that can do it for us? Maybe something around our css-loader? Or we can introduce something from e.g. postcss.
Still, probably not worth exploring at this point.

landing/hero-content.css
9 ↗(On Diff #26778)

I agree having explicit vendor prefixes is not the most ideal; however, since every modern browser (from the last 10 years) supports these styles I think there is no risk to include this right now. If I have time at the end I will do some digging into an implementation w/o these vendor prefixes.

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

rebase before landing