-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathachievement.js
More file actions
73 lines (59 loc) · 1.51 KB
/
achievement.js
File metadata and controls
73 lines (59 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import {html, PolymerElement} from '@polymer/polymer/polymer-element.js';
import '@polymer/iron-icon/iron-icon';
import '@vaadin/vaadin-material-styles/color';
class Achievement extends PolymerElement {
static get template() {
return html`<style>
#title {
font-size: 18px;
}
#achievement {
background-color: var(--material-secondary-background-color);
width: 435px;
border-radius: 5px;
padding: 8px;
cursor: pointer;
}
#footer {
display: flex;
justify-content: space-between;
font-size: 14px;
}
#experience {
display: flex;
}
#xp {
color: #22C4FA;
margin-right: 8px;
font-size: 18px;
}
#skill-points {
color: #20E87B;
}
#actions{
display: flex;
}
iron-icon.action {
margin-left: 5px;
}
</style>
<div id="achievement">
<div id="title">[[title]]</div>
<div id="footer">
<div id="experience">
<div id="xp">[[experience]]</div>
<div id="skill-points">[[skills]]</div>
</div>
<div id="actions">
<iron-icon class="action" icon="vaadin:star"></iron-icon>
<iron-icon class="action" icon="vaadin:comment"></iron-icon>
<iron-icon class="action" icon="vaadin:pencil"></iron-icon></div>
</div>
</div>
</div>`;
}
static get is() {
return 'achievement-line';
}
}
customElements.define(Achievement.is, Achievement);