feat: 🎸 home
center create a new task
This commit is contained in:
@@ -6,7 +6,7 @@ const taskStore = useTaskStore()
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="content">
|
<div class="content" v-if="taskStore.recentTasks.length > 0">
|
||||||
<ul class="task-list">
|
<ul class="task-list">
|
||||||
<li v-for="task in taskStore.recentTasks" :key="task.id">
|
<li v-for="task in taskStore.recentTasks" :key="task.id">
|
||||||
<router-link
|
<router-link
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ const resetTasks = () => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<main>
|
<main>
|
||||||
<div>
|
<div class="new-task-container">
|
||||||
<router-link :to="{ name: 'new-task' }" class="button is-primary"
|
<router-link :to="{ name: 'new-task' }" class="button is-primary"
|
||||||
>New task</router-link
|
>Create a new task</router-link
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<task-list />
|
<task-list />
|
||||||
@@ -35,4 +35,10 @@ main {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
height: 60vh;
|
height: 60vh;
|
||||||
}
|
}
|
||||||
|
.new-task-container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user