mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-01-07 08:05:43 +00:00
monospace time
This commit is contained in:
@ -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}`);
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user