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

Adding more content to About.jsx. Trying to add images now. #1298

Merged
merged 6 commits into from
Aug 24, 2022
Merged

Conversation

funbunch
Copy link
Member

@funbunch funbunch commented Jul 28, 2022

This refers to issue #1202.

  • Up to date with dev branch
  • Branch name follows guidelines
  • All PR Status checks are successful
  • Peer reviewed and approved

Any questions? See the getting started guide

@funbunch funbunch requested a review from nichhk July 28, 2022 15:29
Copy link
Member

@nichhk nichhk left a comment

Choose a reason for hiding this comment

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

Hey Shannan, thanks for working on this! I think the issue is that mui-image is only compatible with material-ui v5. So we need to use the older material-ui-image package.

@funbunch
Copy link
Member Author

Ohh. Will try that!

@funbunch
Copy link
Member Author

Latest update so far with images showing now.

Screen Shot 2022-08-15 at 5 00 34 PM

Copy link
Member

@nichhk nichhk left a comment

Choose a reason for hiding this comment

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

Looks great! Cool to see the Grid in action.

For the images, please give them more descriptive names. the first one could be empower_la_logo.png. Please keep filenames lower case as well.

You mentioned the image sizing issue--let me know if you run into problems with that. Great progress though!

</Grid>
<Grid container>
<Grid item xs={12} sm={3}>
<Image src={partner1} animationDuration={0} width={378} />
Copy link
Member

Choose a reason for hiding this comment

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

Is it necessary to give the animationDuration arg?

Copy link
Member Author

Choose a reason for hiding this comment

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

Great, will make changes! And test if animationDuration is needed.

@funbunch
Copy link
Member Author

Screen Shot 2022-08-21 at 8 39 35 PM

It seemed the MUI Image component was more for an image gallery so I get it to work with the tag img.

@funbunch funbunch requested a review from nichhk August 22, 2022 03:42
Copy link
Member

@nichhk nichhk left a comment

Choose a reason for hiding this comment

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

Looks great Shannan! Just a few small comments, and then we can merge this PR.

import partner1 from '@assets/Partners_icon_1.png';
import partner2 from '@assets/Partners_icon_2.png';
import partner3 from '@assets/Partners_icon_3.png';
import partner1 from '@assets/empower_la_logo.png';
Copy link
Member

Choose a reason for hiding this comment

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

nit: let's give the imports more meaningful names as well, e.g.,:
import empower_la_logo from '@assets/empower_la_logo.png';

import partner2 from '@assets/Partners_icon_2.png';
import partner3 from '@assets/Partners_icon_3.png';
import partner1 from '@assets/empower_la_logo.png';
import partner2 from '@assets/hackforla_logo.png';
Copy link
Member

Choose a reason for hiding this comment

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

nit: add underscores to filename. i.e., hack_for_la_logo.png.

import partner3 from '@assets/Partners_icon_3.png';
import partner1 from '@assets/empower_la_logo.png';
import partner2 from '@assets/hackforla_logo.png';
import partner3 from '@assets/codeforamerica.png';
Copy link
Member

Choose a reason for hiding this comment

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

nit: code_for_america_logo.png

@@ -32,6 +32,7 @@
"html2canvas": "^1.0.0-rc.5",
"jest": "^24.9.0",
"mapbox-gl": "^1.12.0",
"material-ui-image": "^3.3.2",
Copy link
Member

Choose a reason for hiding this comment

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

Since we're not using this anymore, please remove it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Latest capture. Updated naming and minor style changes.

Screen Shot 2022-08-22 at 10 23 57 PM

@funbunch funbunch requested a review from nichhk August 23, 2022 05:26
Copy link
Member

@nichhk nichhk left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Shannan! Please merge this at your convenience.

@funbunch funbunch merged commit 23f4bc5 into dev Aug 24, 2022
@funbunch funbunch deleted the About branch August 24, 2022 01:36
@funbunch funbunch restored the About branch August 25, 2022 18:05
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.

2 participants