Таблица вместо списка
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-18 15:18:15 +03:00
parent b78238ef76
commit 146fba6bba
2 changed files with 46 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ module.exports = class OutputItem {
this.name = name + ' prime' this.name = name + ' prime'
this.parts = parts this.parts = parts
this.set = set this.set = set
this.link = `https://warframe.market/items/${name}_prime_set`
this.difference = set - parts this.difference = set - parts
} }

View File

@@ -11,7 +11,33 @@
font-family: sans-serif; font-family: sans-serif;
} }
ul li b { a {
text-decoration: none;
color: black;
}
table {
margin: 64px 0;
border-spacing: 0;
}
tr {
text-align: left;
}
tr:nth-child(even) {
background: rgb(240, 242, 243);
}
td {
padding: 2px 16px;
}
th {
padding: 8px 16px;
}
.name {
text-transform: capitalize; text-transform: capitalize;
} }
@@ -23,16 +49,26 @@
<body> <body>
<h1>Warframe Market Gaps</h1> <h1>Warframe Market Gaps</h1>
<ul> <table>
<tr>
<th>Name</th>
<th>Parts price</th>
<th>Set price</th>
<th>Difference</th>
</tr>
{{#each items}} {{#each items}}
<li> <tr>
<b>{{this.name}}</b> <td class="name">
Parts price: {{this.parts}} <a href="{{this.link}}" target="_blank">
Set price: {{this.set}} {{this.name}}
Difference: {{this.difference}} </a>
</li> </td>
<td>{{this.parts}}</td>
<td>{{this.set}}</td>
<td>{{this.difference}}</td>
</tr>
{{/each}} {{/each}}
</ul> </table>
<div class="timestamp"> <div class="timestamp">
Generated at {{timestamp}} Generated at {{timestamp}}