-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (92 loc) · 4.97 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<title>TODO LIST</title>
</head>
<body>
<main class="bg-black w-[100vw] h-[100vh] flex items-center justify-center">
<section class="bg-black w-[600px] h-[400px] gradient-global rounded-3xl pt-4 pr-3 pb-3 pl-3 section-animation">
<h1 class='font-bold text-center text-3xl'>LISTA DE TAREFAS</h1>
<p class="text-center font-semibold text-base">Apenas 3 tarefas restantes, pois já finalizamos 2 das 5 tarefas.</p>
<div class="bg-[#181818] rounded-[10px] w-full h-[70%] overflow-auto p-2">
<ul class="flex flex-col gap-2">
</ul>
</div>
<div class="flex justify-center">
<button class="p-4 rounded-[10px] font-semibold" id="create-task">CRIAR TAREFA</button>
</div>
</section>
<!-- Editando uma tarefa -->
<dialog class="bg-gray-800 m-auto h-96 w-[30rem] rounded-xl p-4" id="task-modal">
<div class="content-modal relative">
<button class="p-[0.1rem] absolute right-0" id="close-modal">X</button>
<h2 class="font-bold text-center">
Tarefa 01:
</h2>
<div class="flex flex-col">
<label class="font-semibold" for="title-task">Título:</label>
<input class="h-8 rounded-[8px] focus:outline-none text-black pl-2 pr-2" type="text" id="title-task" />
</div>
<div class="flex flex-col mt-2">
<label class="font-semibold" for="description">Descrição:</label>
<textarea class="h-40 rounded-[8px] focus:outline-none resize-none text-black pl-2 pr-2" id="description"></textarea>
</div>
<div class="flex mt-4 justify-center">
<button class="bg-black p-4 rounded-[10px] font-semibold" id="button-submit">Registrar</button>
</div>
</div>
</dialog>
<!-- Criando uma tarefa -->
<dialog class="bg-gray-800 m-auto h-96 w-[30rem] rounded-xl p-4" id="create-task-modal">
<div class="content-modal relative">
<button class="p-[0.1rem] absolute right-0" id="create-close-task-modal">X</button>
<h2 class="font-bold text-center">
Criando uma tarefa
</h2>
<div class="flex flex-col">
<label class="font-semibold" for="title-task">Título:</label>
<input class="h-8 rounded-[8px] focus:outline-none text-black pl-2 pr-2" type="text" id="create-title-task" />
</div>
<div class="flex flex-col mt-2">
<label class="font-semibold" for="description">Descrição:</label>
<textarea class="h-40 rounded-[8px] focus:outline-none resize-none text-black pl-2 pr-2" id="create-description"></textarea>
</div>
<div class="flex mt-4 justify-center">
<button class="bg-black p-4 rounded-[10px] font-semibold" id="create-task-submit">Registrar</button>
</div>
</div>
</dialog>
<!-- Criando um usuario -->
<dialog class="bg-gray-800 m-auto h-98 w-[30rem] rounded-xl p-4" id="user-modal">
<div class="content-modal relative">
<h2 class="font-bold text-center">
Informações do usuário
</h2>
<div class="flex flex-col">
<label class="font-semibold" for="title-task">Nome:</label>
<input class="h-8 rounded-[8px] focus:outline-none text-black pl-2 pr-2" type="text" id="user-name" />
</div>
<div class="flex flex-col mt-2">
<label class="font-semibold" for="title-task">URL da imagem:</label>
<input type="text" class="h-8 rounded-[8px] focus:outline-none text-black pl-2 pr-2" id="user-image-url" placeholder="Insira a URL da imagem">
<div class="w-full flex items-center justify-center h-44">
<div id="imageContainer" class="w-36"></div>
</div>
</div>
<div class="flex mt-4 justify-center">
<button class="bg-black p-4 rounded-[10px] font-semibold" id="user-submit">Registrar</button>
</div>
</div>
</dialog>
</main>
<script type="module" src="/src/javascript/main.ts"></script>
<script src="/src/javascript//userModal.ts"></script>
<script type="module" src="/src/javascript/domTasksCrud.ts"></script>
</body>
</html>