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

Fixes issue-1371: Make the picture sticky in About page #1372

Closed
wants to merge 7 commits into from
Closed

Fixes issue-1371: Make the picture sticky in About page #1372

wants to merge 7 commits into from

Conversation

lixiaoqity
Copy link
Contributor

@lixiaoqity lixiaoqity commented Nov 16, 2020

Issue This PR Addresses

Fix #1371

Type of Change

  • Bugfix: Change which fixes an issue
  • New Feature: Change which adds functionality
  • Documentation Update: Change which improves documentation
  • UI: Change which improves UI

Description

In About page, when we scroll down, half of the page will be blank now. It looks weird. So, I want to make the pictures sticky.

Checklist

  • Quality: This PR builds and passes our npm test and works locally
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not (if applicable)
  • Documentation: This PR includes updated/added documentation to user exposed functionality or configuration variables are added/changed or an explanation of why it does not(if applicable)

Copy link
Contributor

@PedroFonsecaDEV PedroFonsecaDEV left a comment

Choose a reason for hiding this comment

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

Hi @lixiaoqity,
Our About page needs some improvements for sure.
Be aware of what is going on 1232 and 1335
I think it's a better idea to contact @Wei-J-Huang and see how you can manage your ideas together.

Besides that, the content is running underneath the navbar:
2020-11-16 04 18 07

@PedroFonsecaDEV PedroFonsecaDEV changed the title fix issue-1371 Fixes issue-1371: Make the picture sticky in About page Nov 16, 2020
@PedroFonsecaDEV PedroFonsecaDEV added area: design Issues needing design or assets area: front-end labels Nov 16, 2020
Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

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

This isn't working the way I'd expect, since it gets covered by the navbar as I scroll:

sticky-image

@lixiaoqity
Copy link
Contributor Author

I have made the pictures a little below the navbar so that it can not be covered.

sticky: {
position: 'sticky',
top: '80px',
},
carousel: {
Copy link
Contributor

Choose a reason for hiding this comment

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

1)Find a good position for the carousel, vertically centred. Then after this, we don't want this carousel moving.

2)Let's scroll only the text part.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now the position is moved to the center and fixed. Only text can be scrolled.

Copy link
Contributor

@PedroFonsecaDEV PedroFonsecaDEV left a comment

Choose a reason for hiding this comment

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

We need just to remove one comment line that you left. And I think we will be good to go.

@@ -37,7 +37,7 @@ const tutorialSteps = [

const useStyles = makeStyles((theme) => ({
root: {
flexGrow: 1,
// flexGrow: 1,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this comment. Then I think we are good to go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, forget to remove it. I have fixed it. Thank you.

Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

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

At smaller window heights, this overflows into the footer.

Screen Shot 2020-11-18 at 8 43 57 PM

@PedroFonsecaDEV
Copy link
Contributor

@humphd sorry, I forgot to test all the responsive sizes.

Copy link
Contributor

@PedroFonsecaDEV PedroFonsecaDEV left a comment

Choose a reason for hiding this comment

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

@lixiaoqity

You need to make the page responsive.
Screen Shot 2020-11-18 at 8 55 04 PM
Screen Shot 2020-11-18 at 8 55 33 PM
Screen Shot 2020-11-18 at 8 56 01 PM

In case you need the documentation: material-ui-doc

@lixiaoqity
Copy link
Contributor Author

I put the pictures a little close to the above. If it is set on the vertical centre, it will cover the footer.

@PedroFonsecaDEV
Copy link
Contributor

2020-11-21 23 38 51

We are still having problems.

@lixiaoqity
Copy link
Contributor Author

The two columns look uncomfortable when the screen size is small. Now I think it is better.

@lixiaoqity
Copy link
Contributor Author

I pulled a new request at #1486. Please check it. Thanks.

@PedroFonsecaDEV
Copy link
Contributor

PedroFonsecaDEV commented Dec 4, 2020

image

Look how it looks on mobile.
Maybe a different design for mobile, using breaking points.

@lixiaoqity
Copy link
Contributor Author

@PedroFonsecaDEV
I test the website at the Samsung Galaxy S7 AND iPhone 7 cell phone. It looks well and is different with your screen. My test website domain is "https://telescope-gu1hxh24k.vercel.app/about" which is the latest Vercel check and is different with your test. Can you use it to test?

@PedroFonsecaDEV
Copy link
Contributor

@lixiaoqity Sorry, I must have clicked on a different build.

Please rebase (there is a conflict) so we can check the build after a rebase.
Thanks.

@lixiaoqity
Copy link
Contributor Author

This pull request should be discarded. I have created a new pull request #1486 which is rebased. Thanks.

@lixiaoqity lixiaoqity closed this Dec 6, 2020
humphd pushed a commit that referenced this pull request Dec 7, 2020
…l request #1372 (#1486)

* fix issue-1371

* clear useless cod

* fix About page pictures location

* make pictures of About page vertically center

* remove commit

* ajust the picture location of About page

* Promote the picture location at About page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: design Issues needing design or assets area: front-end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the picture sticky in About page
3 participants