:godmode: new moonboard send!

Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
Sindre Kjelsrud 2024-03-02 16:35:44 +01:00
parent 646c7fd16a
commit aac2768621
Signed by untrusted user who does not match committer: sidski
GPG key ID: D2BBDF3EDE6BA9A6
3 changed files with 29 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View file

@ -1,17 +1,17 @@
{ {
"2016": [ "2016": [
{ {
"route":"BokChoiBoi", "route":"Klingon Easy",
"grade":"6B+", "grade":"6B+",
"benchmark":false, "benchmark":true,
"tries":5, "tries":2,
"image":"/img/moonboard_2016/bokchoiboi.webp", "image":"/img/moonboard_2016/klingoneasy.webp",
"date": "date":
{ {
"year": "2024", "year": "2024",
"month": "02", "month": "03",
"day": "07", "day": "02",
"string": "07.02.2024" "string": "02.03.2024"
} }
}, },
{ {
@ -27,6 +27,20 @@
"day": "09", "day": "09",
"string": "09.02.2024" "string": "09.02.2024"
} }
},
{
"route":"BokChoiBoi",
"grade":"6B+",
"benchmark":false,
"tries":5,
"image":"/img/moonboard_2016/bokchoiboi.webp",
"date":
{
"year": "2024",
"month": "02",
"day": "07",
"string": "07.02.2024"
}
} }
] ]
} }

View file

@ -16,9 +16,14 @@ const mb2016Setups = mb["2016"];
class="bg-yellow-500 rounded-xl" class="bg-yellow-500 rounded-xl"
/> />
<p class="font-bold text-xs">{mb.route} ({mb.grade}):</p> <p class="font-bold text-xs">{mb.route} ({mb.grade}):</p>
<p class="text-xs">
{mb.tries == 1 ? "Flash" : `${mb.tries} tries`} | {mb.benchmark ? "Benchmarked" : "Not benchmarked"} | {mb.date.string} <div class="flex flex-col md:flex-row md:gap-1 text-xs items-center">
</p> <span>
{mb.tries == 1 ? "Flash" : `${mb.tries} tries`} | {mb.benchmark ? "Benchmarked" : "Not benchmarked"}
</span>
<span class="hidden md:inline"> | </span>
<span class="block md:inline">{mb.date.string}</span>
</div>
</div> </div>
))} ))}
</div> </div>