feat : concept grid view

This commit is contained in:
2025-01-14 22:47:00 +01:00
parent 452d76ca4b
commit e64d91563e
13 changed files with 901 additions and 164 deletions
+6 -12
View File
@@ -37,7 +37,7 @@ onUnmounted(() => {
</script>
<template>
<div id="words">
<main id="words">
<div class="header">
<span>Word</span>
<span>Status</span>
@@ -47,23 +47,17 @@ onUnmounted(() => {
<Word v-for="word in wordStore.words" :id="word.id" :key="word.id" />
<div class="new-word">
<span>
<input
ref="wordInput"
type="text"
:disabled="loading"
@keypress.enter="createWord"
v-model="newWord"
/>
<input ref="wordInput" type="text" :disabled="loading" @keypress.enter="createWord" v-model="newWord" />
<button :disabled="loading" @click="createWord">Submit</button>
</span>
</div>
</div>
</main>
</template>
<style lang="css" scoped>
div#words {
display: grid;
grid-template-columns: 1fr;
main#words {
display: flex;
flex-direction: column;
}
div.header {