Merge remote-tracking branch 'origin/alternative-style' into alternative-style

This commit is contained in:
Laurent
2024-11-07 11:07:47 +01:00
3 changed files with 6 additions and 4 deletions

View File

@@ -5,7 +5,8 @@
</script> </script>
<ul class="leaderboard"> <ul class="leaderboard">
{#if scores.length === 0} {#if scores.length === 0}
No scores for now... No scores for now...
{/if} {/if}
@@ -89,9 +90,9 @@
flex-grow: 10; flex-grow: 10;
text-align: center; text-align: center;
} }
@media screen and (min-width: 601px) { @media screen and (min-width: 601px) {
.leaderboard { width: 55vw; } .leaderboard { width: 55vw; }
} }
</style> </style>

View File

@@ -6,4 +6,4 @@ export const load = async ( {fetch} ) => {
const res = await fetch(`${api_url}/leaderboard`) const res = await fetch(`${api_url}/leaderboard`)
const leaderboard = await res.json() const leaderboard = await res.json()
return { leaderboard }; return { leaderboard };
} }

View File

@@ -10,6 +10,7 @@
scoreStore.load(data.leaderboard) scoreStore.load(data.leaderboard)
}) })
</script> </script>
<PageTitle>Qui va y passer ?</PageTitle> <PageTitle>Qui va y passer ?</PageTitle>