Move templates to components

This commit is contained in:
Mirai Kumiko 2025-06-08 13:32:58 +02:00
parent 4fb1e200f1
commit cd1e5887c5
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
12 changed files with 15 additions and 14 deletions

View file

@ -0,0 +1,15 @@
<.header>
Note {@note.id}
<:subtitle>This is a note record from your database.</:subtitle>
<:actions>
<.link href={~p"/notes/#{@note}/edit"}>
<.button>Edit note</.button>
</.link>
</:actions>
</.header>
<.list>
<:item title="Content">{@note.content}</:item>
</.list>
<.back navigate={~p"/notes"}>Back to notes</.back>