Skip to content

Tech Gala Projects W21 #99

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 34 commits into from
May 12, 2021
Merged

Tech Gala Projects W21 #99

merged 34 commits into from
May 12, 2021

Conversation

julia-yin
Copy link
Contributor

Created the Tech Gala Projects page for Winter 2021. Added Tech Gala banners to the Home and Events pages.

@julia-yin julia-yin requested review from nhi-van and evanzhong March 3, 2021 22:33
Copy link
Member

@evanzhong evanzhong left a comment

Choose a reason for hiding this comment

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

Looking good!

I reviewed mainly on design and UI choices, and only gave a cursory glance at the code (but that looks well done as well). I left some comments on specific sections of the diff.

Some takeaways I have:

  • The layout is narrow, while mobile friendly, it feels a little cramped when viewed on a widescreen. Can we try a 3-column layout? I messed around with the inspector to get a rough mock (of course we could move thing around like the images, text, names etc to get everything to fit more smoothly) image
  • I like where this banner is going, we just need to figure out where in the layout it belongs. The way we currently position <Banner> component is very hacky, with negative margins etc. so finding a good solution here will be tough. image image
  • We don't link to this page in the nav-bar so it's difficult to find unless you know where to look. I realize this might be a conscious choice, however, as our nav bar is getting a little full.

nhi-van
nhi-van previously requested changes Mar 4, 2021
Copy link
Contributor

@nhi-van nhi-van left a comment

Choose a reason for hiding this comment

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

Great work so far, Julia! Got a couple of suggestions for you before we can get this up:

[Issues to fix]

  • The images on the committees page have grey borders when they shouldn’t:
    Screen Shot 2021-03-03 at 9 20 25 PM

This is probably an issue with either your css or how you define the image items on your Tech Gala page, so it bled out to the images on the committees page. This will need to be fixed before the page can be deployed.

[Suggestions]

  • can we change the Winner! labels to the individual places instead? EDIT: Ignore this and go with Evan's suggestions on them
  • It’d be better to make the tags a different color than black, such as one of our pre-defined ACM blues, which you can find defined in App.scss.
  • For the few projects that did provide us links, we should add them as well if possible.

[Design-wise]

  • considering the time-sensitivity, this current design is overall good to be deployed. Some improvements we can consider design-wise (now or eventually) would be having the 1st/2nd/3rd place projects out in a row at once, or some greater distinction to single them out as winners (maybe a more graphical pedestal?)
  • Also, if we get a larger amount of projects than currently, scrolling through would take a long time. Some options would be changing it to a more grid layout, adding pagination within the page, or something else more compact.
    Again with the time crunch, it's fine to save most of this design section for a later date. [EDIT: submitted this review before i realized you reviewed already my bad evan LOL]

And adding another comment here, just so it's noted down––regarding how to access it, the tech gala page is currently accessible through a banner on the home page or the events page. This is great! This does though ask the question of how to handle future events pages, such continually adding more items in the nav bar (such as winter gm) or adding more banners (tech gala), neither of which is sustainable. Eventually we should either modify the events page to be more of a landing page for all individual event pages, or by making its nav item as a dropdown for all events. This can be another future ticket for the website.

Overall, loving everything you're doing, Julia <3 Keep up the great work!

julia-yin and others added 4 commits March 4, 2021 18:50
Co-authored-by: Evan Zhong <[email protected]>
Co-authored-by: Evan Zhong <[email protected]>
Co-authored-by: Evan Zhong <[email protected]>
@mattxwang
Copy link
Member

Hey, just wanted to check in - @julia-yin or @vohndernet, what's blocking this PR right now? Anything on our end we can do to help?

@julia-yin julia-yin requested a review from evanzhong May 4, 2021 00:20
@mattxwang
Copy link
Member

mattxwang commented May 4, 2021

resolved the conflict (caused by me this time around, mb!)

@julia-yin there are still come CI failures, most of them are autofixable!

@julia-yin julia-yin requested a review from mattxwang May 4, 2021 01:21
Copy link
Member

@evanzhong evanzhong left a comment

Choose a reason for hiding this comment

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

Hey Julia!

Everything looks great! I've left some minor comments in individual files. None of them should block you from merging this but here's the overview:

  • We can make your code more readable using object destructuring
  • Considering the tradeoff between performance and reducing file pollution by using inline-CSS
  • We usually make sure all files have an empty line at the end (as git convention). There's no need to manually do this now, as we can add an eslint rule and run it on these files later.

Great work!

Comment on lines 1 to 8
.tag {
color: #1E6CFF;
font-size: 0.8em;
border: 1px solid #1E6CFF;
border-radius: 8px;
display: inline-block;
padding: 2px 10px;
}
Copy link
Member

Choose a reason for hiding this comment

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

Since the Tag component is currently small, what you can consider is moving this styling to to the Tag.js file instead. (i.e. with inline-CSS <div style={styles_object}></div>

This would reduce the number of new files this PR introduces which, while small, helps make our codebase more maintainable.

On the other hand, inline CSS generally suffers from poorer performance.

Decision is ultimately up to you

Comment on lines 1 to 3
.projects-container {
margin-top: 20px;
}
Copy link
Member

Choose a reason for hiding this comment

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

Similar comment here as what I wrote about Tag.scss

Comment on lines 1 to 3
.banner-info {
margin-top: 30px;
}
Copy link
Member

Choose a reason for hiding this comment

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

See above comments about inline-CSS

import Tag from './Tag/Tag';

function ProjectCard(props) {
return (
Copy link
Member

Choose a reason for hiding this comment

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

This is perhaps personal preference, but I'm a big fan of "object destructuring". I think it makes code more readable and makes things DRYer (DRY is an acronym for "Don't Repeat Yourself").

For example you can do

Suggested change
return (
const {image, title, winner, summary, names, url, category} = props.project;
return (

to create a bunch of local variables holding the information you want, then you can simply reference these variables instead of the props.project. object in your returned HTML.

@mattxwang mattxwang dismissed nhi-van’s stale review May 10, 2021 23:44

stale review

@mattxwang
Copy link
Member

In general I'm good to merge, but looks like we'll have to resolve a few merge conflicts before moving ahead. We can work on this in today's meeting, or later!

@julia-yin julia-yin self-assigned this May 12, 2021
@julia-yin julia-yin merged commit 2ae7f31 into master May 12, 2021
@julia-yin julia-yin deleted the Tech-Gala branch May 12, 2021 23:28
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.

4 participants