feat: assemble

This commit is contained in:
Julien Calixte
2025-08-09 11:53:43 +02:00
parent 355d0f9c6d
commit 4d5fc5abb3
2 changed files with 49 additions and 31 deletions

View File

@@ -16,14 +16,13 @@ const rawTools = computed(() =>
</script>
<template>
<aside class="board-game-tools prose">
<h2>Toolbox</h2>
<div class="board-game-tools prose">
<div class="overflow-x-auto" v-if="isSeitonActivated">
<table class="table table-zebra">
<thead>
<tr>
<th>Tool</th>
<th>Alias</th>
<th>Reference</th>
</tr>
</thead>
<tbody>
@@ -37,7 +36,7 @@ const rawTools = computed(() =>
<div v-else>
{{ rawTools }}
</div>
</aside>
</div>
</template>
<style scoped lang="scss">

View File

@@ -47,17 +47,23 @@ const submit = () => {
</script>
<template>
<header>
<button
class="btn"
v-if="!boardGameStore.currentBoardGame"
@click="boardGameStore.initGame"
>
start
</button>
</header>
<div class="board-game-workshop">
<BoardGameToolbox class="aside" />
<aside class="prose">
<h2>Toolbox</h2>
<BoardGameToolbox />
</aside>
<div class="main prose">
<h2 class="title">Workshop</h2>
<button
class="btn"
v-if="!boardGameStore.currentBoardGame"
@click="boardGameStore.initGame"
>
start
</button>
<div v-if="boardGameStore.currentBoardGame">
<form @submit.prevent="submit">
@@ -137,25 +143,25 @@ const submit = () => {
</div>
</div>
</div>
<aside
class="performance prose"
v-if="duration !== null || boardGameStore.meta.perfs.length > 0"
>
<h2>Performance</h2>
<p class="duration numeric">{{ duration }}</p>
<template v-if="boardGameStore.meta.perfs.length > 0">
<h3>Last performances</h3>
<ul>
<li v-for="perf in boardGameStore.meta.perfs">
{{ toDuration(new Date(perf[0]), new Date(perf[1])) }}
</li>
</ul>
</template>
</aside>
</div>
<aside
class="performance"
v-if="duration !== null || boardGameStore.meta.perfs.length > 0"
>
<h2>Performance</h2>
<p>{{ duration }}</p>
<template v-if="boardGameStore.meta.perfs.length > 0">
<h3>Last performances</h3>
<ul>
<li v-for="perf in boardGameStore.meta.perfs">
{{ toDuration(new Date(perf[0]), new Date(perf[1])) }}
</li>
</ul>
</template>
</aside>
</template>
<style scoped lang="scss">
@@ -169,7 +175,8 @@ const submit = () => {
font-style: normal;
font-size: 14px;
display: flex;
gap: 4rem;
gap: 1rem;
padding: 1rem;
input {
font-family: 'Google Sans Code', monospace;
@@ -179,6 +186,10 @@ const submit = () => {
}
}
h2 {
text-align: center;
}
form {
text-align: center;
}
@@ -199,4 +210,12 @@ aside,
flex-direction: column;
gap: 1rem;
}
.card {
margin: 1rem;
}
.duration {
text-align: right;
}
</style>