@@ -53,7 +53,7 @@ const fetchTasksFromServerRoute = async () => {
5353
5454<template >
5555 <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" >
5757 Todo List.
5858 </h1 >
5959 <form
@@ -65,7 +65,7 @@ const fetchTasksFromServerRoute = async () => {
6565 :loading =" loading"
6666 class =" w-full"
6767 size =" xl"
68- variant =" white "
68+ variant =" outline "
6969 type =" text"
7070 name =" newTask"
7171 placeholder =" Make a coffee"
@@ -74,14 +74,14 @@ const fetchTasksFromServerRoute = async () => {
7474 />
7575 <UButton
7676 type =" submit"
77- variant =" white "
77+ variant =" outline "
7878 >
7979 Add
8080 </UButton >
8181 </form >
8282 <UCard
8383 v-if =" tasks?.length > 0"
84- body- class =" px-6 py-2 overflow-hidden"
84+ class =" px-6 py-2 overflow-hidden"
8585 >
8686 <ul >
8787 <li
@@ -94,7 +94,7 @@ const fetchTasksFromServerRoute = async () => {
9494 :label-class =" `block font-medium ${task.completed ? 'line-through u-text-gray-500' : 'u-text-gray-700'}`"
9595 :label =" task.title"
9696 :name =" String(task.id)"
97- wrapper- class =" flex items-center justify-between w-full"
97+ class =" flex items-center justify-between w-full"
9898 >
9999 <div class =" flex items-center justify-between" >
100100 <div @click =" completeTask(task)" >
@@ -108,7 +108,8 @@ const fetchTasksFromServerRoute = async () => {
108108 <UButton
109109 class =" ml-3 text-red-600"
110110 size =" sm"
111- variant =" transparent"
111+ color =" red"
112+ variant =" ghost"
112113 icon =" i-heroicons-outline-trash"
113114 @click =" removeTask(task)"
114115 />
@@ -124,23 +125,25 @@ const fetchTasksFromServerRoute = async () => {
124125 @click =" fetchTasksFromServerRoute"
125126 />
126127 <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 >
144147 </UModal >
145148 </div >
146149</template >
0 commit comments