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

View File

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