003
This commit is contained in:
@@ -21,3 +21,7 @@ fn main() {
|
||||
pub fn (app &App) index(mut ctx Context) veb.Result {
|
||||
return ctx.text('Namaste India!!')
|
||||
}
|
||||
|
||||
pub fn (app &App) todo(mut ctx Context) veb.Result {
|
||||
return $veb.html()
|
||||
}
|
||||
|
24
src/templates/todo.html
Normal file
24
src/templates/todo.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Todo List App</title>
|
||||
<link rel="stylesheet" href="/static/css/styles.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Todo List</h1>
|
||||
<div class="input-section">
|
||||
<input
|
||||
type="text"
|
||||
id="todoInput"
|
||||
placeholder="Enter your task..."
|
||||
/>
|
||||
<button id="addTodo">Add</button>
|
||||
</div>
|
||||
<ul id="todoList" class="todo-list"></ul>
|
||||
</div>
|
||||
<script src="/static/js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user