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

[Website] fixed overflow company images and hero section logo #5015

Merged
merged 3 commits into from
Dec 30, 2021
Merged

[Website] fixed overflow company images and hero section logo #5015

merged 3 commits into from
Dec 30, 2021

Conversation

NikhilSharma03
Copy link
Contributor

@NikhilSharma03 NikhilSharma03 commented Dec 30, 2021

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

This PR Fixes two issues in the website

Overflow company images in Used By section

Screenshot from 2021-12-30 16-54-26
Screenshot from 2021-12-30 16-54-34

Extremely Small logo image in Hero section (from viewport 576px - 750px)

Screenshot from 2021-12-30 17-02-54

Verification

Signed-off-by: Nikhil Sharma <nikhilsharmamusic2000@gmail.com>
Signed-off-by: Nikhil Sharma <nikhilsharmamusic2000@gmail.com>
Copy link
Member

@wiardvanrij wiardvanrij left a comment

Choose a reason for hiding this comment

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

Thanks for this! One nitpick :)

flex-grow: 1;
max-width: 100%;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Please end with a newline

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok

Copy link
Member

@squat squat left a comment

Choose a reason for hiding this comment

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

Looks pretty good @NikhilSharma03
Can you share "after" screenshots too?

.img-adopter img {
max-width: 100%;
max-height: 100%;
.img-adopter a{
Copy link
Member

Choose a reason for hiding this comment

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

Nit:

Suggested change
.img-adopter a{
.img-adopter a {

Signed-off-by: Nikhil Sharma <nikhilsharmamusic2000@gmail.com>
@NikhilSharma03
Copy link
Contributor Author

NikhilSharma03 commented Dec 30, 2021

@squat

After Changes

Fixed Overflow company images in Used By section

Screenshot from 2021-12-30 17-27-20
Screenshot from 2021-12-30 17-27-24

Extremely Small logo image in Hero section (from viewport 576px - 750px)

Screenshot from 2021-12-30 17-27-32

@wiardvanrij
Copy link
Member

Looks really clean! Do you think it's possible to make them all equal in size? Now it sort of looks like "premium" users due to the size difference :)

@NikhilSharma03
Copy link
Contributor Author

NikhilSharma03 commented Dec 30, 2021

@wiardvanrij I see 🤔 . Actually, the containers are of the same sizes. It is just that the image logo styles(and dimentions) are different.

@NikhilSharma03
Copy link
Contributor Author

NikhilSharma03 commented Dec 30, 2021

Tried using object-fit: fill results in,

Screenshot from 2021-12-30 19-22-07

What do you think? 😕

@squat
Copy link
Member

squat commented Dec 30, 2021

Now it sort of looks like "premium" users due to the size difference :)

I think we already had this problem before, so I wouldn't make it a blocker for this fix. Nevertheless, I think that the fundamental issue there is that our containers have a specific width:height ratio so logos that are closer to that ratio will appear larger. On top of that, some logos have more padding in their images than others.

I don't think there's anything we can do trivially to solve these issues, other than cropping logos to be the same size. An additional option would be to fix one dimension, e.g. height, and allow the other dimension to grow. However, this would result in a page that is not a fixed grid and would actually give non-square logos an advantage. Logos that are very wide would have tons of area while square or narrow logos would have much smaller areas.

@squat
Copy link
Member

squat commented Dec 30, 2021

Ah, @NikhilSharma03 I think what @wiardvanrij is referring to is actually the last row. Because this row has fewer logos, the containers are all larger. Can we make it so that containers are always the same width?

@NikhilSharma03
Copy link
Contributor Author

@squat Actually All of the containers are of the same width. In the Screenshot (Last Row), I just cropped out the SoundCloud logo only since it was the one going out of the container.

Preview:
https://deploy-preview-5015--thanos-io.netlify.app/

@wiardvanrij
Copy link
Member

Right, awesome job 😎

@squat
Copy link
Member

squat commented Dec 30, 2021

Ah ok, I see, the were two different images

@GiedriusS
Copy link
Member

Looks pretty good @NikhilSharma03 Can you share "after" screenshots too?

You can actually open the Netlify preview to see the difference 😎

Copy link
Member

@squat squat left a comment

Choose a reason for hiding this comment

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

Looks good to me :)
I just restarted the docs check; it had a flake trying to connect to prometheus.io

@squat squat enabled auto-merge (squash) December 30, 2021 14:52
@squat squat merged commit 0aa21c3 into thanos-io:main Dec 30, 2021
@NikhilSharma03 NikhilSharma03 deleted the fixed_overflow_images branch December 30, 2021 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants