Skip to content

Commit

Permalink
history: update style
Browse files Browse the repository at this point in the history
  • Loading branch information
maldestor95 committed Jan 14, 2024
1 parent 2cc16e3 commit 77abcc9
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/pages/wizard/history.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
<template>
<div>History</div>
<container class="flex flex-row justify-evenly">
<div class="w-20 font-semibold">
<container class="grid grid-cols-[56px_1fr]">
<div class="font-semibold">
<div>Round</div>
<div v-for="(item, index) in store.getRoundNumber" :key="index">
{{ item }}
</div>
</div>
<div v-for="(player, playerId) in store.userList" :key="playerId" class="w-40">
<div class="font-semibold">{{ player.name }}</div>
<div v-for="roundIScore in player.scorePerRound">
{{ roundIScore }}
<div class="overflow-x-scroll">
<div class="flex flex-row gap-2 md:justify-evenly alternateBlue">
<div v-for="(player, playerId) in store.userList" :key="playerId" class="w-32">
<div class="font-semibold">{{ player.name }}</div>
<div v-for="roundIScore in player.scorePerRound">
{{ roundIScore }}
</div>
</div>
</div>
</div>
</container>
Expand All @@ -22,4 +26,8 @@ import container from "../../components/container.vue";
const store = useScoreStore();
</script>

<style scoped></style>
<style scoped>
.alternateBlue > :nth-child(even) {
@apply bg-blue-400 text-white px-2;
}
</style>

0 comments on commit 77abcc9

Please sign in to comment.