Skip to content

Moving interactive banner to the top #1007

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

Merged
merged 6 commits into from
Nov 3, 2016
Merged

Moving interactive banner to the top #1007

merged 6 commits into from
Nov 3, 2016

Conversation

ryanmurakami
Copy link
Contributor

Fixing #1004
Moving the interactive banner to the top of the page, refactoring styles, and bringing down the size of the images to look a little nicer.

*note: I wasn't able to test in IE or Edge, but looks good in Chrome/Firefox/Safari

@lpinca
Copy link
Member

lpinca commented Nov 2, 2016

Any reason for the CSS changes?
Here are a couple of screenshots:

With no changes (mobile)

no-changes-mobile

With changes (mobile)

changes-mobile

With no changes (1440x698)

no-changes

With changes (1440x698)

changes

Note the differences on the background image.

Do these changes work as expected on in IE11 and other browsers with partial support for Flexbox?


Edit: didn't read this line on pr description

*note: I wasn't able to test in IE or Edge, but looks good in Chrome/Firefox/Safari

@ryanmurakami
Copy link
Contributor Author

@lpinca Thanks for making the screenshots! (I totally should've done that)

The main reason for decreasing the size of the images is to make the overall banner a bit smaller since it's going at the top. It's quite tall at the bottom of the page today and putting that at the top would overwhelm the rest of the content. The background change is just a result of the height of the container becoming smaller.

As for flexbox support, I didn't add any flexbox styles, only refactored the existing ones. If it works today, it should work in this PR. You're right on about browser support, though. It looks like with partial support in IE10 and 11, the two images in the banner should still appear correctly. Any IE before that would likely only show the images butted up against each other. That's just going by documentation, though, so if anyone has those browsers handy...

Thoughts?

@lpinca
Copy link
Member

lpinca commented Nov 2, 2016

I would just move the banner at the top with no CSS changes. I agree that it may look a bit too big but I like to see the images in their entirety. On top of this it is also consistent with the "old" banner and it is granted to work in most browsers including IE.

This is only my personal opinion though. Let's wait for others to chime in.

@ryanmurakami
Copy link
Contributor Author

@lpinca Sounds good. Thanks for the feedback!

Just in reference to the CSS changes, the original issue also expressed the intent to make the banner shorter, which gave me the idea initially.

@lpinca
Copy link
Member

lpinca commented Nov 2, 2016

Just in reference to the CSS changes, the original issue also expressed the intent to make the banner shorter, which gave me the idea initially.

True that, but the page is almost empty, I don't think it will have a big impact.

@gtewallace
Copy link
Contributor

thanks all for the work on this! I agree with applying to all locales @ryanmurakami

and one last thing (sheepish look) I noticed that the background image is Amsterdam - attached here is the Austin background image - if it's too much hassle to change no biggie.
banner_node_austin

@ryanmurakami
Copy link
Contributor Author

@gtewallace Glad you caught that! I updated it with the new image after lowering the size and making it darker to match the levels of the Amsterdam pic. Here's what it looks like now:
screen shot 2016-11-03 at 6 33 07 am
screen shot 2016-11-03 at 6 33 34 am

@lpinca I went ahead and removed the image constraints as well. Let me know if there's anything else!

@@ -0,0 +1,17 @@
#interactive-wrapper
flex none
background-image url("/static/images/interactive/background.jpg")
Copy link
Member

Choose a reason for hiding this comment

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

Should go in #interactive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it

@lpinca
Copy link
Member

lpinca commented Nov 3, 2016

@ryanmurakami one last thing, compress the image. zopflipng does a very good job.

Edit: it's a jpg :)

@ryanmurakami
Copy link
Contributor Author

@lpinca I compressed the image with photoshop. Good enough?

@lpinca
Copy link
Member

lpinca commented Nov 3, 2016

I guess so, what's the size?

@ryanmurakami
Copy link
Contributor Author

@lpinca 73kb now, compared to 382kb original. I tried to match the Amsterdam image, which was 70kb.

@lpinca
Copy link
Member

lpinca commented Nov 3, 2016

Perfect!

@ryanmurakami
Copy link
Contributor Author

@lpinca :-D And I moved the background style to the #interactive element. Let me know if there's anything else.

@lpinca
Copy link
Member

lpinca commented Nov 3, 2016

Hmm compression changed the image a bit too much, look at the light, the new one is very dark!

@ryanmurakami
Copy link
Contributor Author

@lpinca I actually did that on purpose. The current Amsterdam image levels are darker so the logo/dates pop on top. The original was too light and made it difficult to see the info above it. I tried to match the levels to the Amsterdam image. I could lighten it a little, but I think it would conflict too much with the other images.

@lpinca
Copy link
Member

lpinca commented Nov 3, 2016

Oh ok, got it.

@lpinca
Copy link
Member

lpinca commented Nov 3, 2016

@ryanmurakami, thanks!

@ryanmurakami
Copy link
Contributor Author

@lpinca No problem! Thanks for the feedback! :-)

@ryanmurakami ryanmurakami merged commit 8c0f32b into nodejs:master Nov 3, 2016
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