Skip to content
Snippets Groups Projects
Commit 170ee466 authored by thibault.capt's avatar thibault.capt
Browse files

(feat): add todo in list

parent 3b3d2085
Branches
No related tags found
No related merge requests found
......@@ -12,21 +12,15 @@
@if (todos()?.length == 0) {
<p class="text-gray-600 text-lg">Ajoute ta première tâche 👆</p>
} @else {
<ul class="list bg-base-100 rounded-box shadow-md">
<li class="list-row">
<div class="text-4xl font-thin opacity-30 tabular-nums">01</div>
<div class="list-col-grow">
<div>Dio Lupa</div>
<div class="text-xs uppercase font-semibold opacity-60">Remaining Reason</div>
</div>
<button class="btn btn-square btn-ghost">
<svg class="size-[1.2em]" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g stroke-linejoin="round" stroke-linecap="round" stroke-width="2" fill="none" stroke="currentColor">
<path d="M6 3L20 12 6 21 6 3z"></path>
</g>
</svg>
</button>
</li>
<ul class="list text-gray-600 text-lg">
@for (todo of todos(); track todo.id) {
<li class="py-2 w-full">
<label class="fieldset-label">
<input type="checkbox" [checked]="todo.completed" class="checkbox" />
{{ todo.title }}
</label>
</li>
}
</ul>
}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment