diff --git a/frappe/desk/page/user_profile/user_profile.html b/frappe/desk/page/user_profile/user_profile.html index 52af46c28a..af9e598437 100644 --- a/frappe/desk/page/user_profile/user_profile.html +++ b/frappe/desk/page/user_profile/user_profile.html @@ -3,7 +3,7 @@
${__('Energy Points: ')}{0}
-${__('Review Points: ')}{1}
-${__('Rank: ')}{2}
-${__('Monthly Rank: ')}{3}
- `, [this.energy_points, this.review_points, this.rank, this.month_rank])); + let html = $(` + ${_get_stat_dom(this.energy_points, __('Energy Points'), "color-energy-points")} + ${_get_stat_dom(this.review_points, __('Review Points'), "color-review-points")} + ${_get_stat_dom(this.rank, __('Rank'), "color-rank")} + ${_get_stat_dom(this.month_rank, __('Monthly Rank'), "color-monthly-rank")} + `); $profile_details.append(html); + $profile_details_wrapper.removeClass("hide"); }); }); } diff --git a/frappe/public/scss/user-profile.scss b/frappe/public/scss/user-profile.scss index 03df51da1f..4ab4bc0686 100644 --- a/frappe/public/scss/user-profile.scss +++ b/frappe/public/scss/user-profile.scss @@ -40,81 +40,50 @@ } } -// .user-image-container { -// margin-top: 7px; -// padding-bottom: 100%; -// } +.user-profile-sidebar { + .sidebar-image { + width: 100%; + height: 100%; + border-radius: var(--border-radius-lg); + } -// .user-image-container .standard-image { -// font-size: 72px; -// } + .profile-details { + margin-top: var(--margin-lg); -// .profile-details { -// margin: -5px 5px; -// } + .detail-item { + margin-top: var(--margin-2xl); -// .profile-links { -// margin: 30px 5px; -// } + &:first-child { + margin-top: 0px; + } + } -// .user-initial { -// font-size: 72px; -// } + .user-bio { + color: var(--text-light); + } + .user-stats-item { + // @include flex(flex, null, center, null); + @include flex(flex, null, null, null); -// .line-chart-container .chart-filter { -// z-index: 1; -// } + .stat-value { + font-size: var(--text-lg); + color: var(--text-color); + font-weight: var(--text-bold); + line-height: 20px; + } -// .recent-activity { -// margin: 20px; -// font-size: 12px; -// } + .stat-label { + color: var(--text-muted); + line-height: 20px; + } -// .show-more-activity { -// text-align: center; -// margin-top: 20px; -// } - -// .recent-activity-item { -// margin: 15px 5px; -// } - -// .interest-icon { -// margin-right: 5px; -// } - -// .chart-filter { -// position: relative; -// top: 5px; -// margin-right: 10px; -// } - -// .filter-label { -// margin-right: 4px; -// } - -// .performance-title { -// position: relative; -// left: 30px; -// top: 20px; -// } - -// @media (max-width: 991px) { -// .user-profile-sidebar { -// display: flex; -// } - -// .percentage-chart-container { -// border-top: 1px solid #d1d8dd; -// } - -// .user-profile-sidebar .profile-links { -// margin: 0; -// } - -// .user-profile-sidebar .profile-details { -// width: 50%; -// margin: 0; -// } -// } + .icon { + stroke: none; + width: 28px; + height: 28px; + margin: 0 var(--margin-md) 0 0; + } + } + } +} \ No newline at end of file