Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add labs lowdown videos and small material animation to thumbnails #1288

Merged
merged 6 commits into from
Jan 10, 2024

Conversation

e111077
Copy link
Collaborator

@e111077 e111077 commented Jan 10, 2024

uses standard material cubic bezier animation

Copy link

github-actions bot commented Jan 10, 2024

A live preview of this PR will be available at the URL(s) below.
The latest URL will be appended to this comment on each push.
Each build takes ~5-10 minutes, and will 404 until finished.

https://pr1288-d9174c7---lit-dev-5ftespv5na-uc.a.run.app/
https://pr1288-680d117---lit-dev-5ftespv5na-uc.a.run.app/
https://pr1288-6d837c6---lit-dev-5ftespv5na-uc.a.run.app/
https://pr1288-693753d---lit-dev-5ftespv5na-uc.a.run.app/
https://pr1288-2f3008f---lit-dev-5ftespv5na-uc.a.run.app/
https://pr1288-cd5f0dc---lit-dev-5ftespv5na-uc.a.run.app/

Copy link
Member

@augustjk augustjk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thumbnail animation is cute and I love it!

I don't know about the thumbnails for the lowdown videos though. The off center gradient with no discernible border is messing with my eyes. Ahh I realized those are the actual thumbnails from the youtube videos. Would it be bad if we made different thumbnails for these?

It also would be lovely if we could add video length metadata for these cards like we have for tutorials.

Copy link
Contributor

@AndrewJakubowicz AndrewJakubowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This is awesome.

The new thumbnails blend in with the page background and the gradient is mis-aligning. I wonder if it's worth somehow separating the thumbnails from the background. We can either update the thumbnails, or add some contrast, maybe with shadow, or border, or applying a filter that changes their color.

@e111077
Copy link
Collaborator Author

e111077 commented Jan 10, 2024

I've added backgrounds to the sections. do you think it looks too "heavy"? I can also add borders to the images, but if I do that without the bg, it seems odd

https://pr1288-2f3008f---lit-dev-5ftespv5na-uc.a.run.app/learn/

with background and border with border with background
image image image

Will fix failing tests once we choose one

@e111077
Copy link
Collaborator Author

e111077 commented Jan 10, 2024

only problem with border is that it seems there's a small issue with overflow + our aspect ratio enforcement

@e111077
Copy link
Collaborator Author

e111077 commented Jan 10, 2024

added durations:

image

@e111077
Copy link
Collaborator Author

e111077 commented Jan 10, 2024

also my position on this is that it's a hassle manually generating the thumbnails. I'd rather have a fix that doesn't require custom thumbnail generation. Currently experimenting with BG and border. Long term solution would be a server-side auto-generation of thumbnail 1x + 2x sizes

@augustjk
Copy link
Member

Yeah. I agree we shouldn't manually generate thumbnails for videos if we can avoid it. It's just unfortunate for those series of videos. They also look bad on youtube.com in light mode.

The background makes those look tolerable but then makes the lit 3 launch video thumbnail and the light blue background thumbnails weird. :( It's not perfect but I'm no better at design so I'm okay with how it is.

Durations are awesome, thanks!

Copy link
Contributor

@AndrewJakubowicz AndrewJakubowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

I similarly wonder if there is a better option than the gray background, but I am also not a designer so don't want to block on that. Everything else is awesome!

Also agree that thumbnails should be automatically generated. The script would:

  1. Fetch from youtube using video id.
  2. Process the images into the right sizes and locations.

@e111077
Copy link
Collaborator Author

e111077 commented Jan 10, 2024

@AndrewJakubowicz I think there is, but we currently don't have a precedent for a lighter bg color on the site.

Dark mode is such a TODO, but it requires tokenizing all of our colors in order to create a systematized background that is accessible

@e111077
Copy link
Collaborator Author

e111077 commented Jan 10, 2024

Also @augustjk FWIW, Material Design doesn't really have anything to create contrast between a non-fullbleed image and a card

https://m3.material.io/components/cards/guidelines#b1f0df76-3c86-4b32-982a-43102374e091
https://m3.material.io/components/cards/guidelines#5608bee0-e976-43c3-843d-382ace2dd980

@e111077 e111077 merged commit 35c3dbd into main Jan 10, 2024
14 of 15 checks passed
@e111077 e111077 deleted the add-videos branch January 10, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants