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

Top 30 Albums Page #78

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Top 30 Albums Page #78

wants to merge 10 commits into from

Conversation

tanzeelak
Copy link
Member

@tanzeelak tanzeelak commented Mar 13, 2017

Created grid layout for albums. Albums resize at different screen widths, but needs improvement. Tabs do not look like the mockup but are functional. Info in the panel version is as follows.

{ album: 'Enchant', artist: 'Emilie Autumn', imgurl: 'https://tytmb.files.wordpress.com/2011/10/enchant1.jpg', albumreview: '[tumblr-link-review]' }

screen shot 2017-03-13 at 4 38 34 pm

@binerys
Copy link
Member

binerys commented Mar 13, 2017

Hi Tanzeela, can you change the PR to be more descriptive (ie Top 30 Albums Page). Additionally, please add a screenshot! Thanks :)

You can use my PR for reference

@nathanmsmith
Copy link
Member

@binerys recommending her own PR as a reference LOL (In all seriousness though, it's a great PR.)

Also, I noticed there were changes made to public/build/frontpage.min.js. I was under the impression that @ChrisLaganiere added public/bulid to our .gitignore, is this branch totally up-to-date with master?

@tanzeelak tanzeelak changed the title albums resize somewhat Top 30 Albums Page Mar 13, 2017
@binerys
Copy link
Member

binerys commented Mar 14, 2017

Updated the branch so that it's rebased with master per @nathunsmitty's suggestion. While rebasing with master, I fixed a routing conflict so the feature is accessible via localhost:3000/topalbums.

Some additional comments:

  • Fix image stretching in mobile view
    screen shot 2017-03-14 at 2 39 09 am

  • "Click for Review" link is colored black and hard to see in overlay

</div>


{/*albumsMonth.map(function(albumItem, index){
Copy link
Member

Choose a reason for hiding this comment

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

I would remove this comment if it's unneccessary

@@ -0,0 +1,142 @@
// EventTab.jsx
// list of events in events tab of frontpage
Copy link
Member

Choose a reason for hiding this comment

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

Update comment to reflect feature


var Album = React.createClass({
render: function() {
console.log('within album', this.props);
Copy link
Member

Choose a reason for hiding this comment

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

Remove console log statement once feature is done

<div className="albumText">
<p className="albumName">{this.props.album}</p>
<p className="albumArtist">{this.props.artist}</p>
<a className="albumReview" href={this.props.albumreview}>Click for review</a>
Copy link
Member

Choose a reason for hiding this comment

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

What if no album review exists? I would utilize a conditional (perhaps a ternary so it's inline) to only display this link element if an album review exists.

.albumItem{
width: 32.666666666667%;
// height: 250px;
// padding-top: 24.66666666%;
Copy link
Member

Choose a reason for hiding this comment

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

Remove comments if they are unneccessary

}
}
// .eventPage {
// margin: 10pt 0;
Copy link
Member

Choose a reason for hiding this comment

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

Remove these comments if they are unnecessary

@binerys
Copy link
Member

binerys commented Mar 15, 2017

5f6306b fixes the issue where album reviews should only appear if albumReview is specified.

Some other things I noticed:
If a review is not specified, the overlay looks like this:
screen shot 2017-03-15 at 1 51 25 pm

But if a review is specified, the overlay looks like this:
screen shot 2017-03-15 at 1 56 21 pm

Can you fix it such that the white text is consistent for artist and album name are consistent throughout?

@ChrisLaganiere
Copy link
Member

Awesome work! Looks great with the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants