-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainpageloggedin.php
244 lines (228 loc) · 11.9 KB
/
mainpageloggedin.php
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Minhas notas</title>
<style media="screen">
#container {
margin-top: 10rem;
}
.buttonss {
margin-bottom: 1rem;
}
#notePad, #done, #allNotes {
display: none;
}
textarea {
width: 100%;
max-width: 100%;
font-size: 1.2rem;
line-height: 1.6rem;
border-left-width: 1.2rem;
border-color: grey;
color: grey;
padding: 1rem;
}
</style>
</head>
<body>
<!-- Nav -->
<div class="container-fluid px-0">
<nav class="navbar fixed-top navbar-expand-md navbar-dark px-0 py-0 nav-style">
<a class="navbar-brand" href="#">Notas Online</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#">Perfil</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Ajuda</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contato</a>
</li>
<li class="nav-item active">
<!-- text-nowrap to prevent line break -->
<a class="nav-link text-nowrap" href="#">Minhas Notas <span class="sr-only">(current)</span></a>
</li>
</ul>
<!-- to use d-flex correctly, set width to 100% -->
<ul class="navbar-nav w-100 d-flex justify-content-end">
<li class="nav-item">
<a class="nav-link" href="#">Usuário: <b>nome</b></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Sair</span></a>
</li>
</ul>
</div>
</nav>
</div>
<!-- Login form -->
<form method="post" id="loginForm">
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Entrar</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!-- Will be used later in javascript, php and ajax-->
<div id="loginMessage">
</div>
<div class="form-group">
<label for="loginEmail" class="sr-only">Email:</label>
<!-- the id is used, in this case, for the for label-->
<input id="loginEmail" type="text" class="form-control" name="loginEmail"
placeholder="Endereço de email" maxlength="50">
</div>
<div class="form-group">
<label for="loginPassword" class="sr-only">Password:</label>
<!-- the id is used, in this case, for the for label-->
<input id="loginPassword" type="text" class="form-control" name="loginPassword"
placeholder="Senha" maxlength="30">
</div>
<div class="form-check w-100 d-flex">
<div class="mr-auto">
<input type="checkbox" class="form-check-input" id="rememberMe" name="rememberMe">
<label class="form-check-label" for="rememberMe">Lembrar senha</label>
</div>
<a href="#forgotPasswordModal" data-toggle="modal" data-dismiss="modal" >Esqueceu a senha?</a>
</div>
</div>
<div class="modal-footer w-100 d-flex">
<button type="button" class="btn btn-secondary mr-auto" data-target="#signUpModal" data-toggle="modal" data-dismiss="modal">Registrar</button>
<div class="">
<button class="btn btn-primary" name="login" type="submit" value="Login">Entrar</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
</div>
</div>
</form>
<!-- forgot password -->
<form method="post" id="forgotPasswordForm">
<div class="modal fade" id="forgotPasswordModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Esqueceu sua senha? insira seu email:</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!-- Will be used later in javascript, php and ajax-->
<div id="forgotPasswordMessage">
</div>
<div class="form-group">
<label for="forgotEmail" class="sr-only">Email:</label>
<!-- the id is used, in this case, for the for label-->
<input id="forgotEmail" type="text" class="form-control" name="forgotEmail"
placeholder="Endereço de email" maxlength="50">
</div>
</div>
<div class="modal-footer w-100 d-flex">
<button type="button" class="btn btn-secondary mr-auto" data-target="#signUpModal" data-toggle="modal" data-dismiss="modal">Registrar</button>
<div class="">
<button class="btn btn-primary" name="forgotPassword" type="submit" value="Submit">Enviar</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
</div>
</div>
</form>
<!-- Sign up form -->
<form method="post" id="signUpForm">
<div class="modal fade" id="signUpModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Crie sua conta e comece a usar Notas Online!</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!-- Will be used later in javascript, php and ajax-->
<div id="signUpMessage">
</div>
<div class="form-group">
<label for="userName" class="sr-only">Username:</label>
<!-- the id is used, in this case, for the for label-->
<input id="userName" type="text" class="form-control" name="userName"
placeholder="Nome de usuário" maxlength="30">
</div>
<div class="form-group">
<label for="email" class="sr-only">Email:</label>
<!-- the id is used, in this case, for the for label-->
<input id="email" type="text" class="form-control" name="email"
placeholder="Endereço de email" maxlength="50">
</div>
<div class="form-group">
<label for="password" class="sr-only">Password:</label>
<!-- the id is used, in this case, for the for label-->
<input id="password" type="text" class="form-control" name="password"
placeholder="Escolha uma senha" maxlength="30">
</div>
<div class="form-group">
<label for="password2" class="sr-only">Password2:</label>
<!-- the id is used, in this case, for the for label-->
<input id="password2" type="text" class="form-control" name="password2"
placeholder="Confirme a senha" maxlength="30">
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" name="signup" type="submit" value="Sign up">Criar conta</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
</div>
</form>
<!-- Container -->
<div class="container" id="container">
<div class="row">
<div class="col">
<div class="d-flex buttonss">
<div class="mr-auto">
<button id="addNote" type="button" class="btn btn-primary">Adicionar nota</button>
<button id="allNotes" type="button" class="btn btn-primary">Notas</button>
</div>
<button id="edit" type="button" class="btn btn-primary">Editar</button>
<button id="done" type="button" class="btn btn-success">Finalizar</button>
</div>
<div id="notePad">
<textarea rows="10"></textarea>
</div>
<div id="notes" class="notes">
<!-- Ajax call to php file -->
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="footer">
<div class="container">
<p>Arthur Lima Copyright © 2020</p>
</div>
</div>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</body>
</html>