mirror of
https://github.com/jlengrand/hello-world-imba-client.git
synced 2026-03-10 08:21:19 +00:00
Adding some minor CSS
This commit is contained in:
@@ -22,7 +22,6 @@ tag app
|
||||
def fetch
|
||||
const dataFetch = await window.fetch("/todos")
|
||||
data = await dataFetch.json()
|
||||
console.log(data)
|
||||
|
||||
def mount
|
||||
fetch()
|
||||
|
||||
@@ -4,11 +4,15 @@ tag todo-item
|
||||
<p> data
|
||||
|
||||
export tag TodoApp
|
||||
css margin-top: 20px mb: 20px
|
||||
prop todos
|
||||
<self> for todo in todos
|
||||
<todo-item data=todo>
|
||||
|
||||
export tag TodoForm
|
||||
css button background:#b2f5ea
|
||||
css button@hover background:#e76f51
|
||||
|
||||
prop message
|
||||
<self>
|
||||
<input type='text' bind=message>
|
||||
|
||||
Reference in New Issue
Block a user