feat: 🎸 home

center create a new task
This commit is contained in:
Julien Calixte
2023-07-06 11:03:54 +02:00
parent e4d833323a
commit 93f9a3ed89
2 changed files with 9 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ const taskStore = useTaskStore()
</script>
<template>
<div class="content">
<div class="content" v-if="taskStore.recentTasks.length > 0">
<ul class="task-list">
<li v-for="task in taskStore.recentTasks" :key="task.id">
<router-link

View File

@@ -16,9 +16,9 @@ const resetTasks = () => {
<template>
<main>
<div>
<div class="new-task-container">
<router-link :to="{ name: 'new-task' }" class="button is-primary"
>New task</router-link
>Create a new task</router-link
>
</div>
<task-list />
@@ -35,4 +35,10 @@ main {
justify-content: space-between;
height: 60vh;
}
.new-task-container {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
</style>