Conda-forge.github.io: Homepage not responsive in mobile view

Created on 12 Apr 2021  路  22Comments  路  Source: conda-forge/conda-forge.github.io

Issue:
The homepage is not responsive in smaller screens/mobile view.
Check below screenshots
image

Docs

Most helpful comment

Fix completed, and a Pull Request has been raised. https://github.com/conda-forge/conda-forge.github.io/pull/1392

All 22 comments

@viniciusdc there is a similar problem in the blog section but at the footer instead of navbar.
I was confused about where to open the issue for it here or in conda-forge/blog

This works fine on my iphone. are you sure?

Yupp, checked on my phone too

@viniciusdc also mentioned it here

It is responding fine in my brower as I resize the screen and on my phone. I can reproduce the issue you posted only when using the browser inspection to resize the screen and not resizing the actual window.

IMG_20210412_121713
This is what is see on my phone when i open the homepage

It is responding fine in my brower as I resize the screen and on my phone. I can reproduce the issue you posted only when using the browser inspection to resize the screen and not resizing the actual window.

Try a little bit scrolling to the right when you open it on phone, the navbar menu is present at the rightmost corner.

It is responding fine in my brower as I resize the screen and on my phone. I can reproduce the issue you posted only when using the browser inspection to resize the screen and not resizing the actual window.

Try a little bit scrolling to the right when you open it on phone, the navbar menu is present at the rightmost corner.

Yes, same behaviour here too.

I think this comes from the NUMFOCUS graphic:

image

It's only there though if I zoom out on my phone or scroll to the right.

I think this comes from the NUMFOCUS graphic:

image

It's only there though if I zoom out on my phone or scroll to the right.

oh great point, I do agree with you that it might be the culprit. I think that the next step is deciding if we can do a dynamic resize of that logo.

@viniciusdc Outreachy Applicant here. Please I'd like to work on documenting this issue. Kindly assign the task to me and confirm I can go ahead.

@Martins-O-U i am already working here, although if you want we can collaborate.

@Aaishpra yes, that would be great. I'd love to collaborate with you.

Sure, @Martins-O-U
@viniciusdc can you assign both of us here. I have started looking into the issue 馃槃

Thank you @viniciusdc

Thanks for your comment @BastianZim I have solved this issue, basically, the problem was arising because the NUMFocus logo and the youtube video were not responsive.

@Martins-O-U basically what I did was add a class in index.html.tmpl named responsive to both logo and the Youtube video,
and add some custom css in ../css/theme.css
Here are the code snippet of what I did

  • Add responsive class in line 149 of index.html.tmpl

<iframe width="560" class="responsive" height="315" src="https://www.youtube.com/embed/EWh-BtdYE7M" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

  • and same class in line 250 of the same file

<img src="img/NumFocus_LRG.png" class="responsive" alt="Numfocus Logo" />

  • and here is the code of what I added in theme.css
.responsive {
    max-width: 100%;
    height: auto;
  }

Since we both were working on this issue you can go forward and make a PR for this with the code I provided, just add me as coauthors in the description of the PR.
and as @viniciusdc already has said the PR can be counted as both of our contributions.

Adding screenshots for confirming
image
image

awesome @Aaishpra, I am on it

Fix completed, and a Pull Request has been raised. https://github.com/conda-forge/conda-forge.github.io/pull/1392

closing this issue as #1392 solved it! :tada:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

scopatz picture scopatz  路  4Comments

croth1 picture croth1  路  5Comments

prachi237 picture prachi237  路  3Comments

jakirkham picture jakirkham  路  4Comments

jakirkham picture jakirkham  路  4Comments