Skip to content

Instantly share code, notes, and snippets.

@jarodsim
Created July 29, 2023 12:11
Show Gist options
  • Save jarodsim/005c5e8fae68a77e3bebe4aa9850d009 to your computer and use it in GitHub Desktop.
Save jarodsim/005c5e8fae68a77e3bebe4aa9850d009 to your computer and use it in GitHub Desktop.
html - TODO
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Todo Avançado</title>
<!-- CSS do projeto -->
<link rel="stylesheet" href="css/styles.css">
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- JS do projeto -->
<script src="js/scripts.js" defer></script>
</head>
<body>
<div class="todo-container">
<header>
<h1>Todo Avançado</h1>
</header>
<form id="todo-form">
<p>Adicione a sua tarefa:</p>
<div class="form-control">
<input type="text" id="todo-input" placeholder="O que você vai fazer?">
<button type="submit">
<i class="fa-thin fa-plus"></i>
</button>
</div>
</form>
<form id="edit-form" class="hide">
<p>Edite a sua tarefa:</p>
<div class="form-control">
<input type="text" id="edit-input">
<button type="submit">
<i class="fa-solid fa-check-double"></i>
</button>
</div>
<button id="cancel-edit-btn">Cancelar</button>
</form>
<div id="toolbar">
<div id="search">
<h4>Pesquisar:</h4>
<form>
<input type="text" id="search-input" placeholder="Buscar">
<button id="erase-button">
<i class="fa-solid fa-delete-left"></i>
</button>
</form>
</div>
<div id="filter">
<h4>Filtrar:</h4>
<select id="filter-select">
<option value="all">Todos</option>
<option value="done">Feitos</option>
<option value="todo">A fazer</option>
</select>
</div>
</div>
<div id="todo-list">
<div class="todo done">
<h3>Estou fazendo alguma coisa</h3>
<button class="finish-todo">
<i class="fa-solid fa-check"></i>
</button>
<button class="edit-todo">
<i class="fa-solid fa-pen"></i>
</button>
<button class="remove-todo">
<i class="fa-solid fa-xmark"></i>
</button>
</div>
<div class="todo">
<h3>Estudar JavaScript</h3>
<button class="finish-todo">
<i class="fa-solid fa-check"></i>
</button>
<button class="edit-todo">
<i class="fa-solid fa-pen"></i>
</button>
<button class="remove-todo">
<i class="fa-solid fa-xmark"></i>
</button>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment