@@ -53,7 +53,7 @@ const fetchTasksFromServerRoute = async () => {
53
53
54
54
<template >
55
55
<div class =" w-full my-[50px]" >
56
- <h1 class =" mb-12 text-6xl font-bold u-text-white " >
56
+ <h1 class =" mb-12 text-6xl font-bold" >
57
57
Todo List.
58
58
</h1 >
59
59
<form
@@ -65,7 +65,7 @@ const fetchTasksFromServerRoute = async () => {
65
65
:loading =" loading"
66
66
class =" w-full"
67
67
size =" xl"
68
- variant =" white "
68
+ variant =" outline "
69
69
type =" text"
70
70
name =" newTask"
71
71
placeholder =" Make a coffee"
@@ -74,14 +74,14 @@ const fetchTasksFromServerRoute = async () => {
74
74
/>
75
75
<UButton
76
76
type =" submit"
77
- variant =" white "
77
+ variant =" outline "
78
78
>
79
79
Add
80
80
</UButton >
81
81
</form >
82
82
<UCard
83
83
v-if =" tasks?.length > 0"
84
- body- class =" px-6 py-2 overflow-hidden"
84
+ class =" px-6 py-2 overflow-hidden"
85
85
>
86
86
<ul >
87
87
<li
@@ -94,7 +94,7 @@ const fetchTasksFromServerRoute = async () => {
94
94
:label-class =" `block font-medium ${task.completed ? 'line-through u-text-gray-500' : 'u-text-gray-700'}`"
95
95
:label =" task.title"
96
96
:name =" String(task.id)"
97
- wrapper- class =" flex items-center justify-between w-full"
97
+ class =" flex items-center justify-between w-full"
98
98
>
99
99
<div class =" flex items-center justify-between" >
100
100
<div @click =" completeTask(task)" >
@@ -108,7 +108,8 @@ const fetchTasksFromServerRoute = async () => {
108
108
<UButton
109
109
class =" ml-3 text-red-600"
110
110
size =" sm"
111
- variant =" transparent"
111
+ color =" red"
112
+ variant =" ghost"
112
113
icon =" i-heroicons-outline-trash"
113
114
@click =" removeTask(task)"
114
115
/>
@@ -124,23 +125,25 @@ const fetchTasksFromServerRoute = async () => {
124
125
@click =" fetchTasksFromServerRoute"
125
126
/>
126
127
<UModal v-model =" isModalOpen" >
127
- <h2 class =" mb-4" >
128
- Tasks fetched from
129
- <a
130
- href =" https://nuxt.com/docs/guide/directory-structure/server"
131
- target =" _blank"
132
- class =" text-primary-500 underline"
133
- >Nuxt Server route</a >
134
- with the use of the
135
- <a
136
- href =" https://supabase.nuxtjs.org/usage/services/server-supabase-client"
137
- target =" _blank"
138
- class =" text-primary-500 underline"
139
- >serverSupabaseClient</a >:
140
- </h2 >
141
- <pre >
142
- {{ tasksFromServer }}
143
- </pre >
128
+ <UCard >
129
+ <h2 class =" mb-4" >
130
+ Tasks fetched from
131
+ <a
132
+ href =" https://nuxt.com/docs/guide/directory-structure/server"
133
+ target =" _blank"
134
+ class =" text-primary-500 underline"
135
+ >Nuxt Server route</a >
136
+ with the use of the
137
+ <a
138
+ href =" https://supabase.nuxtjs.org/usage/services/serversupabaseclient"
139
+ target =" _blank"
140
+ class =" text-primary-500 underline"
141
+ >serverSupabaseClient</a >:
142
+ </h2 >
143
+ <pre >
144
+ {{ tasksFromServer }}
145
+ </pre >
146
+ </UCard >
144
147
</UModal >
145
148
</div >
146
149
</template >
0 commit comments