Skip to content
Snippets Groups Projects
Commit 259c4eaf authored by Quoc Huy Nguyen Dinh's avatar Quoc Huy Nguyen Dinh
Browse files

User badges tweaks for mobile view and relocate the hivebuzz level badge

parent 7ac7c531
No related branches found
No related tags found
2 merge requests!143Develop,!140User badges tweaks for mobile view and relocate the hivebuzz level badge
...@@ -116,6 +116,23 @@ class UserProfileHeader extends React.Component { ...@@ -116,6 +116,23 @@ class UserProfileHeader extends React.Component {
<h1> <h1>
<div className="UserProfile__Userpic"> <div className="UserProfile__Userpic">
<Userpic account={accountname} hideIfDefault /> <Userpic account={accountname} hideIfDefault />
</div>
{name || accountname}{' '}
<Tooltip
t={tt(
'user_profile.this_is_users_reputations_score_it_is_based_on_history_of_votes',
{ name: accountname }
)}
>
<span className="UserProfile__rep">
({Math.floor(profile.get('reputation'))})
</span>
</Tooltip>
<Tooltip
t={tt('user_profile.hivebuzz_level_badge', {
name: accountname,
})}
>
<a <a
href={`http://hivebuzz.me/@${accountname}`} href={`http://hivebuzz.me/@${accountname}`}
target="_blank" target="_blank"
...@@ -129,17 +146,6 @@ class UserProfileHeader extends React.Component { ...@@ -129,17 +146,6 @@ class UserProfileHeader extends React.Component {
className="UserProfile__badge_image_hivebuzzlevel" className="UserProfile__badge_image_hivebuzzlevel"
/> />
</a> </a>
</div>
{name || accountname}{' '}
<Tooltip
t={tt(
'user_profile.this_is_users_reputations_score_it_is_based_on_history_of_votes',
{ name: accountname }
)}
>
<span className="UserProfile__rep">
({Math.floor(profile.get('reputation'))})
</span>
</Tooltip> </Tooltip>
{blacklists} {blacklists}
{AffiliationMap[accountname] ? ( {AffiliationMap[accountname] ? (
...@@ -251,8 +257,8 @@ class UserProfileHeader extends React.Component { ...@@ -251,8 +257,8 @@ class UserProfileHeader extends React.Component {
<TimeAgoWrapper date={profile.get('active')} /> <TimeAgoWrapper date={profile.get('active')} />
</p> </p>
{(hivebuzzBadges.size > 0 || peakdBadges.size > 0) && ( {(hivebuzzBadges.size > 0 || peakdBadges.size > 0) && (
<div className="row"> <div className="UserProfile__badges row">
<div className="UserProfile__badges column"> <div className="UserProfile__badges_tabs_container">
<Tabs> <Tabs>
<TabList> <TabList>
{badgesTypes.badges.length > 0 && ( {badgesTypes.badges.length > 0 && (
......
...@@ -56,7 +56,10 @@ ...@@ -56,7 +56,10 @@
} }
z-index: 2; z-index: 2;
font-weight: bold; font-weight: bold;
} }
@media screen and (max-width: 39.9375em) {
font-size: 0.85rem;
}
} }
div.UserProfile__top-menu { div.UserProfile__top-menu {
...@@ -70,6 +73,11 @@ ...@@ -70,6 +73,11 @@
.Icon > svg, .Icon span.icon { .Icon > svg, .Icon span.icon {
vertical-align: middle!important; vertical-align: middle!important;
} }
.columns.small-9 {
flex: 1 1 0px;
max-width: 100%;
}
} }
} }
...@@ -224,28 +232,34 @@ ...@@ -224,28 +232,34 @@
} }
.UserProfile__badge_image_hivebuzzlevel { .UserProfile__badge_image_hivebuzzlevel {
position: absolute; width: 25px;
width: 20px; height: 25px;
height: 20px;
top: 30px; top: 30px;
left: 30px; left: 30px;
transition: width 0.25s, height 0.25s, top 0.25s, left 0.25s; transition: width 0.25s, height 0.25s, top 0.25s, left 0.25s;
margin-left: 7px;
&:hover { &:hover {
width: 30px; width: 40px;
height: 30px; height: 40px;
top: 26px; top: 26px;
left: 26px; left: 26px;
} }
} }
.UserProfile__badges { .UserProfile__badges {
background-color: rgba(0, 0, 0, 0.7); .UserProfile__badges_tabs_container {
border-radius: 4px; background-color: rgba(0, 0, 0, 0.7);
padding: 5px; border-radius: 4px;
margin-left: 50px; padding: 5px;
margin-right: 50px; margin-left: auto;
margin-bottom: 10px; margin-right: auto;
margin-bottom: 10px;
}
@media screen and (max-width: 39.9375em) {
margin: 0;
}
a { a {
display: inline-block; display: inline-block;
......
...@@ -460,7 +460,9 @@ ...@@ -460,7 +460,9 @@
"other": "%(count)s posts" "other": "%(count)s posts"
}, },
"hide_reblogs": "Hide Reblogs", "hide_reblogs": "Hide Reblogs",
"show_all": "Show All" "show_all": "Show All",
"hivebuzz_level_badge":
"This is %(name)s's level badged earned from Hivebuzz programs"
}, },
"post_jsx": { "post_jsx": {
"now_showing_comments_with_low_ratings": "now_showing_comments_with_low_ratings":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment