feat: mobile UI card layout for players and courses (#16)

This commit is contained in:
Samuel Enocsson
2026-05-22 21:07:00 +02:00
parent e25f66c5d3
commit cc9d8eb4cd
14 changed files with 1007 additions and 56 deletions
+5 -2
View File
@@ -1,7 +1,9 @@
<%
function renderSparkline(values) {
function renderSparkline(values, opts) {
opts = opts || {};
var w = opts.w || 96;
var h = opts.h || 28;
if (!values || values.length < 2) return '';
var w = 96, h = 28;
var min = Math.min.apply(null, values);
var max = Math.max.apply(null, values);
var range = max - min || 1;
@@ -104,4 +106,5 @@ function renderSparkline(values) {
<% }); %>
</tbody>
</table>
<%- include('ratings-cards', { ratings: ratings }) %>
<% } %>