-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.html
128 lines (122 loc) · 5.18 KB
/
profile.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
<!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">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<script src="//cdn.jsdelivr.net/npm/sweetalert2@10"></script>
<link rel="stylesheet" href="css/main.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js" type="text/javascript"></script>
<title>lista de tarefas</title>
</head>
<body>
<div id="page" class="d-flex" >
<div id="sidebar" class="bg-light border-right">
<header>My TodoList</header>
<nav class="list-group list-group-flush">
<a
href="index.html"
class="list-group-item list-group-item-action bg-light"
>Dashboard</a
>
<a
href="profile.html"
class="list-group-item list-group-item-action bg-light"
>Perfil</a
>
<a
href="#"
onclick="logout()"
class="list-group-item list-group-item-action bg-light"
>Sair</a
>
</nav>
</div>
<div id="page-content">
<nav class="navbar navbar-expand-lg navbar-light bg-light border-bottom"
>
<button id="sidebar-toggle" class="btn ">Menu</button>
<button class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</button>
<div id="navbarSupportedContent"
class="collapse navbar-collapse justify-content-end ">
<!--d-flex justify-content-end ◘ -->
<ul class="navbar-nav " >
<li class="nav-item active ">
<a href="index.html" class="nav-link">Home</a>
</li>
<li class="nav-item dropdown ">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdownUser"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
aria-haspopup="true">
Meu Usuário</a
>
<div
class="dropdown-menu dropdown-menu-right"
aria-labelledby="navbarDropdown"
>
<a href="profile.html" class="dropdown-item">Perfil</a>
<div class="dropdown-divider"></div>
<a href="profile.html" class="dropdown-item" onclick="logout()">Sair</a>
</div>
</li>
</ul>
</div>
</nav>
<!-- Estrutura para listagem estática de tarefas-->
<div class="container-fluid">
<div class="card">
<div class="card-body">
<h1 class="card-title mt-4">Meu perfil</h1>
<h5 id="userInfo" class="card-subtitle mb-5">Perfil</h5>
<form>
<div class="form-group">
<label for="inputFirstName">Nome</label>
<input id="inputFirstName" type="text" class="form-control" />
</div>
<div class="form-group">
<label for="inputLastName">Sobrenome</label>
<input id="inputLastName" type="text" class="form-control" />
</div>
<button
type="button"
class="btn btn-primary"
onclick="saveProfile()"
>
Salvar perfil
</button>
</form>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.2.9/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.2.6/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.2.6/firebase-firestore.js"></script>
<script src="./js/init.js"></script>
<script src="./js/auth.js"></script>
<script src="./js/profile.js"></script>
<script>
$("#sidebar-toggle").click(function (e){
e.preventDefault()
$("#page").toggleClass("toggled")
})
</script>
</body>
</html>