Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 3eee581

Browse files
author
vikasrohit
committed
Added empty state for completely empty profile
1 parent 1b989ca commit 3eee581

File tree

4 files changed

+46
-2
lines changed

4 files changed

+46
-2
lines changed

app/profile/about/about.jade

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@
88
.sticky-container()
99
profile-widget(profile="profileVm.profile", edit-profile-link="profileVm.showEditProfileLink", num-wins="profileVm.numWins", profile-vm="profileVm")
1010

11-
1211
.profile-about-container
1312

13+
.empty-profile
14+
.empty-state
15+
empty-state-placeholder(state-name="profile-empty", show="!profileVm.numProjects && (!profileVm.skills || (profileVm.skills && profileVm.skills.length == 0)) && !vm.hasLinks")
16+
.sample-image
17+
img(ng-src="/images/robot.svg")
18+
1419
#skills
1520
tc-section(ng-show="vm.displaySection.skills", state="profileVm.status.skills")
1621

app/services/emptyState.service.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,15 @@
125125
cssClass: "learn-more"
126126
}]
127127
},
128+
"profile-empty": {
129+
title: "Beep. Beep. Hello!",
130+
description: "Seems like this member doesn’t have much information to share yet.",
131+
helpLinks: [{
132+
title: "View Other Members",
133+
url: _getUrl("/community/members"),
134+
cssClass: "find-members tc-btn tc-btn-s"
135+
}]
136+
},
128137
"profile-topcoder-activity": {
129138
title: "My Challenges",
130139
description: "You have not participated in any challenges yet.",

assets/css/profile/about.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@
8181
width: 100%;
8282
// max-width: 883px;
8383
padding: 0 10px;
84-
margin: auto;
84+
margin: 0 auto;
85+
86+
.empty-profile {
87+
background: $white;
88+
}
8589
.empty-state {
8690
width: 100%;
8791
}

assets/images/robot.svg

Lines changed: 26 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)