-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
fix of issue #76 Overhaul leaderboards page design #91
Conversation
@owocki I like the way this looks ^_^
Error:
Screenshot(s) In contrast to how it is currently is in |
@thelostone-mc try loading this sql file into your database to get a real leaderboard http://bits.owocki.com/450U3e0U1h0C/marketing_leaderboardrank.sql |
to @thelostone-mc 's point though, the code should probably properly handle a leaderboard with no content on it though. it could just say 'no activity found for this time range' |
app/assets/v2/css/base.css
Outdated
} | ||
|
||
#leaderboard .winner-content .winner-position-third { | ||
background-image: url('/static/v2/images/leaderboard-3.png'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be filled out dynamically? check out bounty.local_avatar_url
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops i take this back. its the medal image
var max = parseInt($(this).attr('aria-valuemax')) | ||
var now = parseInt($(this).attr('aria-valuenow')) | ||
var width = (now * 100) / max | ||
console.log(width) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errand console.log!
var width = (now * 100) / max | ||
console.log(width) | ||
$(this).css('width', width + '%') | ||
// $(this).changeElementType('a'); // hack so that users can right click on the element |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
itd be nice if this was an anchor element so users could right click.
this looks really good. im excited! |
app/assets/v2/css/base.css
Outdated
background-image: url('/static/v2/images/leaderboard-3.png'); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do away with the extra empty lines ?
same in leaderboard.html
- make css of leaderboard into another css file, file leaderboard.css created - removed empty lines - make rows right clickable
suggestions were done :D |
not sure what im doing wrong but this is what it looks like on my local http://bits.owocki.com/1C3g3W23383Z/Screen%20Shot%202017-12-06%20at%2012.27.44%20PM.png |
tried incognito / with a cache refresh too.. |
I using this to get the avatar:
and podium_items came from
the error is not been able to get the avatar: what is the problem with this url http://localhost:8000/funding/avatar?repo=https://github.com/dylanjw&v=3 @owocki ? if you access this url you going to get |
@ernaneluis yopu need to fill out the |
though this does not seem to be the issue with my local... theres something wacky about the layout on mine |
@owocki can you show your console? to see if they are downlaoding the image? |
@owocki can you have a look now. I made new commit. |
😍 😍 😍 omg looks amazing |
@@ -1,10 +1,17 @@ | |||
$(document).ready(function(){ | |||
$(".leaderboard_entry").each(function(){ | |||
$(this).changeElementType('a'); // hack so that users can right click on the element |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd still like for these items to be a
tags because that means that a user can right click on them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is clickable but not using Anchor tag. It would need a lot of css fix in order to use the <a>
tag. See comment bellow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, ill make the change after merge
app/assets/v2/css/leaderboard.css
Outdated
#leaderboard .leaderboard_entry .position{ | ||
color:lightgray; | ||
} | ||
/* #leaderboard .leaderboard_entry tr{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can u delete this dead code
anything we can do about the mobile view for the leaderboard? http://bits.owocki.com/3H0E1F3f410v/Screen%20Shot%202017-12-06%20at%206.34.01%20PM.png many of these issues can be fixed with just decreasing the font size |
<div class="col body"> | ||
<div class="container-fluid" id="leaderboard"> | ||
{% include 'shared/bounty_def.html' %} | ||
<div class="row mt-0 ml-1 pt-1 pl-1"> | ||
<select id="key"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think well likely want to hide the 'key' field and just standardize on the monthly leaderboard for now. anyone disagree?
@@ -14,46 +15,98 @@ | |||
<div class="row no-gutter text-uppercase"> | |||
<div class="col-3" style="background: #eee; "> | |||
{% include 'shared/current_balance.html' %} | |||
{% include 'shared/sidebar_search.html' %} | |||
<!-- {% include 'shared/sidebar_search.html' %} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this module should still be on the page to keep parity with the other pages, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont know, it will show a search side bar, which might be misleading to the user.
something on this PR broke the profile pages. not sure what it was -- maybe refactor'd CSS? http://bits.owocki.com/1V1k2E330y1M/Screen%20Shot%202017-12-06%20at%206.40.01%20PM.png |
whoops accidental close |
$('.clickable-row').click(function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See here @owocki
now leaderboard css is only on the page leaderboard.html to avoid another pages conflict
@owocki I think I might fix the profile page as well please have a look. |
@ernaneluis sorry to be a pain but could we |
to generate a profile locally just go to |
but did you try it locally @owocki ? |
@ernaneluis yes. for example, here is your profile generated locally http://bits.owocki.com/1W1X300Z3G0t/Screen%20Shot%202017-12-07%20at%209.27.21%20AM.png |
@owocki i meant the new commits on the leaderboard page, please check if is correct now in order to merge |
looking now |
the leaderboard page looks great locally, but something on the branch has caused a regression in the profile pages, for example |
vertical-align: middle; | ||
margin-top: 20px; | ||
} | ||
.profile_details li:nth-child(2n+0) .dot, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-.profile_details li:nth-child(2n+0) .dot,
this should not be removed
} | ||
.profile_details li:nth-child(2n+1) .dot, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
its a small fix. easier for me to just fix than continue trying to talk about it here. paying out bounty and merging now |
fix of issue gitcoinco#76 Overhaul leaderboards page design
#76
Final layout in HTML/CSS