Skip to content

Commit 52f796c

Browse files
committed
add_holopins
1 parent 5c32277 commit 52f796c

File tree

1 file changed

+26
-0
lines changed
  • services/app/apps/codebattle/assets/js/widgets/pages/profile

1 file changed

+26
-0
lines changed

services/app/apps/codebattle/assets/js/widgets/pages/profile/UserProfile.jsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,31 @@ import Achievement from './Achievement';
1515
import Heatmap from './Heatmap';
1616
import UserStatCharts from './UserStatCharts';
1717

18+
function HolipinTags({ name }) {
19+
return (
20+
name && (
21+
<div className="row mt-5 mb-md-3 mb-lg-4 mt-lg-0">
22+
<div className="position-relative col-lg-10 col-md-11 mx-auto">
23+
<div className="card cb-card">
24+
<div className="card-header py-1 cb-bg-highlight-panel font-weight-bold text-center">
25+
Holopins
26+
</div>
27+
<div className="card-body p-0">
28+
<a href={`https://holopin.io/@${name}`}>
29+
<img
30+
src={`https://holopin.me/@${name}`}
31+
alt={`@${name}'s Holopin board`}
32+
className="w-100"
33+
/>
34+
</a>
35+
</div>
36+
</div>
37+
</div>
38+
</div>
39+
)
40+
);
41+
}
42+
1843
function UserProfile() {
1944
const [userData, setUserData] = useState(null);
2045
const dispatch = useDispatch();
@@ -154,6 +179,7 @@ function UserProfile() {
154179
<Heatmap />
155180
</div>
156181
</div>
182+
<HolipinTags />
157183
</div>
158184
<div
159185
className="tab-pane fade min-h-100"

0 commit comments

Comments
 (0)