monospace time

This commit is contained in:
Fabrice Lamant
2024-07-28 12:03:16 +02:00
parent f465524d5b
commit 19caaea237
9 changed files with 3631 additions and 3591 deletions

View File

@ -295,7 +295,7 @@ const generateTodayPage = () => {
const summary = event.SUMMARY.match(/ceremony/gi) ? event.SUMMARY : event.SUMMARY.split(" ").slice(1).join(" ");
html.push(`<div class="event py-4" data-start="${event.DTSTART}" data-end="${event.DTEND}" data-noc="${event._NOCS.join(",")}">`);
html.push(" <div class=\"time w-1/4 align-top text-right inline-block text-5xl text-center pr-2 border-r font-bold font-mono border-slate-900/10\">__:__</div>");
html.push(" <div class=\"time w-1/4 align-top text-right inline-block text-5xl text-center tabular-nums pr-2 border-r border-slate-900/10\">__:__</div>");
html.push(" <div class=\"w-3/5 align-top inline-block text-black pl-2\">");
html.push(` <div class="text-2xl">${sport.name.toUpperCase()} ${event._MEDAL ? "🏅" : ""}</div>`);
html.push(` <div class="">${summary}`);

View File

@ -10,6 +10,12 @@
<meta name="author" content="Fabrice LAMANT">
<script src="https://cdn.jsdelivr.net/npm/luxon@3.4.4/build/global/luxon.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700&family=Share+Tech+Mono&display=swap"
rel="stylesheet">
<meta http-equiv="refresh" content="900">
</head>