-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
218 lines (190 loc) · 4.83 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<html lang="pt-br">
<head>
<link
rel="apple-touch-icon"
sizes="180x180"
href="./assets/images/favicon/apple-touch-icon.png" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/images/favicon/favicon-32x32.png" />
<link
rel="icon"
type="image/png"
sizes="16x16"
href="./assets/images/favicon" />
<link
rel="manifest"
href="./assets/images/favicon/site.webmanifest" />
<link
rel="mask-icon"
href="./assets/images/favicon/safari-pinned-tab.svg"
color="#5bbad5" />
<meta
name="msapplication-TileColor"
content="#da532c" />
<meta
name="theme-color"
content="#ffffff" />
<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=Inter:wght@400;500;600;700;800&display=swap"
rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@700&display=swap"
rel="stylesheet" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<link
rel="stylesheet"
href="./styles/add-new-habit-button.css" />
<link
rel="stylesheet"
href="./styles/choose-language-form.css" />
<link
rel="stylesheet"
href="./styles/new-habit-form.css" />
<link
rel="stylesheet"
href="./styles/habits-form.css" />
<link
rel="stylesheet"
href="./styles/header.css" />
<link
rel="stylesheet"
href="style.css" />
<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>habits.</title>
</head>
<body>
<header>
<img
src="./assets/images/logo.svg"
alt="Logomarca da plataforma habits"
class="logo" />
<div>
<p
id="today"
data-translate-key="today">
<span>--/--</span>
</p>
<button
id="open-lang-selector-form"
class="material-symbols-outlined">
translate
</button>
</div>
</header>
<button
id="add-new-habit"
data-translate-key="addHabit">
<img
src="./assets/images/icons/plus.svg"
alt="Ícone do sinal de adição" />
</button>
<form id="select-lang-form">
<h2 data-translate-key="chooseLanguage"></h2>
<div class="languages"></div>
<button
type="button"
class="cancel-button"
data-translate-key="cancelButton">
<span class="material-symbols-outlined">cancel</span>
</button>
</form>
<form id="new-habit-form">
<div class="info-view">
<div class="habit-icon">
<label
for=""
data-translate-key="chooseHabitIcon"></label>
<button
type="button"
id="habit-icon-selector">
<span class="icon material-symbols-outlined"
>library_add</span
>
</button>
</div>
<div
class="habit-name"
data-translate-key="chooseHabitName">
<label for="habit-name-input"></label>
<input
type="text"
name="habit-name-input"
id="habit-name-input"
placeholder="" />
</div>
</div>
<div class="icons-view">
<div class="header">
<p data-translate-key="chooseHabitIcon"></p>
<!-- <input type="text" name="habit-name" placeholder="correndo" /> -->
</div>
<div class="icons-list"></div>
</div>
<div class="buttons">
<button
type="button"
class="submit-button"
data-translate-key="submitButton">
<span class="material-symbols-outlined">check_circle</span>
</button>
<button
type="button"
class="cancel-button"
data-translate-key="cancelButton">
<span class="material-symbols-outlined">cancel</span>
</button>
</div>
</form>
<div
id="welcome-message"
data-translate-key="welcome">
<h1></h1>
<p></p>
</div>
<form id="habits-form">
<div id="habits"></div>
<div id="calendar"></div>
</form>
<script
type="module"
src="./js/newHabitForm.js"></script>
<script
type="module"
src="./js/selectLangForm.js"></script>
<script
type="module"
src="./js/index.js"></script>
<script
type="module"
src="./js/newHabitButton.js"></script>
<script src="./js/habitsForm/habitsRepository.js"></script>
<script src="./js/habitsForm/habitsCalendar.js"></script>
<script src="./js/habitsForm/habitsDOM.js"></script>
<script src="./js/multilingualSupport/multilingualSupportDOM.js"></script>
<script src="./js/multilingualSupport/multilingualSupportRepository.js"></script>
<script type="module">
import { selectLangForm } from "./js/index.js"
const openLangSelector = document.querySelector("#open-lang-selector-form")
openLangSelector.addEventListener("click", () => {selectLangForm.toggleVisibility()})
</script>
</body>
</html>