Skip to content

Commit

Permalink
add icons
Browse files Browse the repository at this point in the history
  • Loading branch information
CapriciousRebel committed Oct 23, 2021
1 parent ff2c9d1 commit 9fecb33
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div id="metrics" class="flex">
<% table.metrics.forEach(heading=> { %>
<div
class="border flex items-center font-black h-9 w-40 overflow-x-scroll overflow-y-hidden whitespace-nowrap scroll">
class="border flex items-center font-black h-9 w-40 overflow-x-scroll overflow-y-hidden whitespace-nowrap px-auto">
<%= heading %>
</div>
<% }) %>
Expand All @@ -41,8 +41,14 @@
<% table.rows.forEach(row=> { %>
<div class="flex">
<% row.forEach(data=> { %>
<div class="border w-40">
<%= data %>
<div class="border flex items-center justify-center font-normal h-9 w-40">
<% if(data===1){ %>
<img width="24px" height="24px"
src="https://img.icons8.com/color/48/000000/checkmark--v1.png" />
<% } else{ %>
<img width="24px" height="24px"
src="https://img.icons8.com/emoji/48/000000/cross-mark-emoji.png" />
<% } %>
</div>
<% }) %>
</div>
Expand Down

0 comments on commit 9fecb33

Please sign in to comment.