Skip to content

Commit

Permalink
Add Kano User Summary for use in the nav bar for new gamification cha…
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Bridger committed Jan 13, 2017
1 parent 606264b commit 4bff7d2
Show file tree
Hide file tree
Showing 4 changed files with 410 additions and 1 deletion.
1 change: 1 addition & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"tests"
],
"dependencies": {
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.3.1",
"iron-image": "PolymerElements/iron-image#^1.2.5",
"iron-pages": "PolymerElements/iron-pages#^1.0.8",
"paper-dialog": "PolymerElements/paper-dialog#^1.1.0",
Expand Down
63 changes: 63 additions & 0 deletions kano-user-summary/demo/kano-user-summary.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!doctype html>
<html>
<head>
<title>kano-user-summary demo</title>
<meta charset="utf-8">
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../../../iron-demo-helpers/demo-snippet.html">
<link rel="import" href="../../../iron-demo-helpers/demo-pages-shared-styles.html">
<link rel="import" href="../../kano-style/typography.html">
<link rel="import" href="../kano-user-summary.html">
<style is="custom-style">
html {
width: 100%;
height: 100%;
}
kano-user-summary {
margin-bottom: 60px;
}
</style>
</head>
<body>
<h3>Kano User Summary demo</h3>
<demo-snippet>
<template is="dom-bind" id="bind">
<kano-user-summary user="[[user1]]" default-avatar="../../demo-assets/avatar/judoka-face.svg" stroke-width="4" radius="50"></kano-user-summary>
<kano-user-summary user="[[user2]]" default-avatar="../../demo-assets/avatar/judoka-face.svg"></kano-user-summary>
<kano-user-summary user="[[user3]]" default-avatar="../../demo-assets/avatar/judoka-face.svg"></kano-user-summary>
</template>
<script type="text/javascript">
var bind = document.getElementById('bind');
bind.user1 = {
avatar: {
urls: {
circle: '../../demo-assets/avatar/judoka-face.svg'
}
},
profile: {
xp: 220259
},
username: 'roughsun4806'
};
bind.user2 = {
avatar: {
urls: {}
},
profile: {
xp: 5000
},
username: 'yellowwildflower4248'
};
bind.user3 = {
avatar: {
urls: {},
},
profile: {
xp: 200
},
username: 'jollydream2802'
};
</script>
</demo-snippet>
</body>
</html>
Loading

0 comments on commit 4bff7d2

Please sign in to comment.