-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
125 lines (105 loc) · 3.42 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ChorumeList</title>
<style>
@media (max-width: 600px) {
.container {
flex-direction: column;
align-items: stretch;
}
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
color: #333;
margin: 0;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.container {
display: flex;
gap: 20px;
justify-content: center;
align-items: flex-start;
width: 100%;
max-width: 1200px;
}
form {
width: 100%;
max-width: 400px;
background: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
input, button {
width: calc(100% - 20px);
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 5px;
}
button {
background: #007BFF;
color: #fff;
cursor: pointer;
}
button:hover {
background: #0056b3;
}
.task-list {
flex: 1;
background: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.task-list ul {
list-style-type: none;
padding: 0;
}
.task-list li {
margin: 10px 0;
border-bottom: 1px solid #ddd;
padding-bottom: 10px;
}
</style>
</head>
<body>
<div class="container">
<!-- Formulário -->
<form method="POST">
<h1>ChorumeList</h1>
<h4>"Não deixe para desistir amanhã do que você pode desistir ainda hoje". - Steve Jobs</h4>
<input name="description" placeholder="Insira sua task aqui...">
<button name="action" value="insert">Adicionar</button>
<button name="action" value="list">Ver Tasks</button>
<h3>Atualizar tarefa</h3>
<input name="id_up" placeholder="Digite o ID aqui...">
<input name="new_description" placeholder="Nova descrição aqui...">
<button name="action" value="update">Atualizar</button>
<h3>Remover tarefa</h3>
<input name="id" placeholder="O ID vem aqui...">
<button name="action" value="delete">Apagar</button>
<button name="action" value="deleteAll">Apagar Tudo</button>
<h3>Marcar tarefa como feita</h3>
<input name="id_att" placeholder="ID da tarefa">
<button name="action" value="is_done">Feito</button>
</form>
<!-- Tabela de tarefas -->
<div class="task-list">
<h2>Lista de Tarefas</h2>
<ul>
<?php
require_once 'task.php';
require_once 'index.php';
userOptions();
?>
</ul>
</div>
</div>