Page MenuHomePhabricator

[landing] introduce glow effect for hero image
ClosedPublic

Authored by ginsu on Jun 2 2023, 11:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 17, 2:18 AM
Unknown Object (File)
Sun, Nov 17, 1:38 AM
Unknown Object (File)
Sun, Nov 17, 1:38 AM
Unknown Object (File)
Sun, Nov 17, 1:38 AM
Unknown Object (File)
Sun, Nov 17, 1:38 AM
Unknown Object (File)
Sat, Nov 16, 11:28 PM
Unknown Object (File)
Oct 18 2024, 11:41 PM
Unknown Object (File)
Oct 17 2024, 3:05 AM
Subscribers

Details

Summary

When I was rebuilding the new hero section, I decided to remove the glow effect from the hero image. I did this for a lot of reasons, but mainly removing this effect from the image asset made the image a lot more clear. I think the glow effect is still great, so I added it back in as a div element. Please see the designs for context

Screenshot 2023-06-02 at 11.51.55 AM.png (1×3 px, 2 MB)

Screenshot 2023-06-02 at 11.51.24 AM.png (1×3 px, 2 MB)

Depends on D8075

Test Plan

Please look at the demo videos/screenshots below

Desktop/Responsive:

Tablet:

Screenshot 2023-06-02 at 2.45.37 PM.png (2×3 px, 1 MB)

Mobile:

Screenshot 2023-06-02 at 2.45.21 PM.png (2×3 px, 1 MB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

landing/landing.css
48–49 ↗(On Diff #27411)

These values were derived from a lot of trial and error and seeing what looked best. Essentially these values along with top and left center this ellipsis shaped div within the macbook, and from that center we spread out to create this glow/blur effect

82–83 ↗(On Diff #27411)

Went with percentage units here since the image will shrink a little as the width of the screen decreases, so I wanted to make sure the glow effect had a similar behavior

ginsu requested review of this revision.Jun 2 2023, 12:00 PM

Maybe glow instead of blur? Kind of associate blur with being some sort of "filter" "above" some other content

landing/landing.css
54 ↗(On Diff #27411)

Have a hunch that box-shadow would be more performant than blur since it doesn't care about layers below?

a3351f.png (1×1 px, 253 KB)

Looks like ChatGPT agrees, but obviously grain of salt w/ that.

change name from blur to glow

Looks good overall, might be worth trying box-shadow instead of blur if it's easy... but feel free to land as-is if it takes too long to investigate + achieve the same effect

This revision is now accepted and ready to land.Jun 2 2023, 12:21 PM
ginsu retitled this revision from [landing] introduce blur effect for hero image to [landing] introduce glow effect for hero image.Jun 2 2023, 12:22 PM
ginsu edited the summary of this revision. (Show Details)