Skip to content

Commit

Permalink
Added weekly/daily status text on both current and previous views. Al…
Browse files Browse the repository at this point in the history
…so added level ULTRA to previous screen. All with nice colors to boot :-)
  • Loading branch information
harrewarre committed Feb 10, 2016
1 parent 557fb7a commit 830b262
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
31 changes: 27 additions & 4 deletions ThroneFeed.Stream/Widget/Assets/Widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,33 @@ body {
margin: 5px 0;
}

.line > img {
margin: 0 0 5px 0;
}
.line > img {
margin: 0 0 5px 0;
}

.kill-icon {
height: 38px;
}
}

.daily {
color: red;
}

.weekly {
color: #0094ff;
}

.ultra {
color: #4cff00;
animation: glow 3s linear 0s infinite alternate;
}

@keyframes glow {
0% {
color: #b6ff00;
}

100% {
color: #00ff21;
}
}
14 changes: 13 additions & 1 deletion ThroneFeed.Stream/Widget/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
<div class="line">
<img class="kill-icon" src="~/Assets/dead.png" /> <span data-bind="text: kills"></span>
</div>
<div class="line daily" data-bind="visible: type == 'daily'">
daily
</div>
<div class="line weekly" data-bind="visible: type == 'weekly'">
weekly
</div>
</div>

<div data-bind="with: previous">
Expand All @@ -51,11 +57,17 @@
loop <span data-bind="text: loops"></span>
</div>
<div class="line">
level <span data-bind="text: charlvl"></span>
level <span data-bind="visible: charlvl <= 9,text: charlvl"></span><span class="ultra" data-bind="visible: charlvl > 9">Ultra</span>
</div>
<div class="line">
<img class="kill-icon" src="~/Assets/dead.png" /> <span data-bind="text: kills"></span>
</div>
<div class="line daily" data-bind="visible: type == 'daily'">
daily
</div>
<div class="line weekly" data-bind="visible: type == 'weekly'">
weekly
</div>
<!-- /ko -->
</div>

Expand Down

0 comments on commit 830b262

Please sign in to comment.