Skip to content

Commit 4884afd

Browse files
authored
Merge pull request #6 from gitpod-io/mikenikles/develop-html-structure-5
Develop HTML structure
2 parents 8d7a1fe + 9fad771 commit 4884afd

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

src/lib/todo-item.svelte

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<div>
2+
<form action="" method="">
3+
<input type="hidden" name="done" value="" />
4+
<button aria-label="Mark done/not done">Done/NotDone</button>
5+
</form>
6+
7+
<form action="" method="">
8+
<input type="text" />
9+
<button aria-label="Save todo">Save</button>
10+
</form>
11+
12+
<form action="" method="">
13+
<button aria-label="Delete todo">Delete</button>
14+
</form>
15+
</div>

src/routes/index.svelte

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
1-
<h1>Welcome to SvelteKit</h1>
2-
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
1+
<script>
2+
import TodoItem from "$lib/todo-item.svelte";
3+
4+
const title = "Todo";
5+
</script>
6+
7+
<svelte:head>
8+
<title>{title}</title>
9+
</svelte:head>
10+
11+
<h1>{title}</h1>
12+
13+
<form action="" method="">
14+
<input type="text" name="text" aria-label="Add a todo" placeholder="+ type to add a todo" />
15+
</form>
16+
17+
<TodoItem />
18+
<TodoItem />
19+
<TodoItem />

0 commit comments

Comments
 (0)