-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
83 lines (79 loc) · 2.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRUD with firestore</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="container">
<header>
<h3>List Member</h3>
</header>
<div class="table-wrapper">
<table class="table-users">
<tr>
<th>Firts Name</th>
<th>Last Name</th>
<th>Phone</th>
<th>Email</th>
<th>Action</th>
</tr>
</table>
<button class="btn btn-add">Add User</button>
</div>
<!-- Add Modal -->
<div class="add-modal modal-wrapper">
<div class="modal">
<div class="modal-header"><h3>Add New User</h3></div>
<div class="modal-body">
<form class="form" autocomplete="off">
<input type="text" name="firstName" placeholder="First Name">
<input type="text" name="lastName" placeholder="Last Name">
<input type="number" name="phone" placeholder="Phone">
<input type="email" name="email" placeholder="Email">
<button class="btn btn-modal">Submit</button>
</form>
</div>
</div>
</div>
<!-- Edit Modal -->
<div class="edit-modal modal-wrapper">
<div class="modal">
<div class="modal-header"><h3>Edit User</h3></div>
<div class="modal-body">
<form class="form" autocomplete="off">
<input type="text" name="firstName" placeholder="First Name">
<input type="text" name="lastName" placeholder="Last Name">
<input type="number" name="phone" placeholder="Phone">
<input type="email" name="email" placeholder="Email">
<button class="btn btn-modal">Submit</button>
</form>
</div>
</div>
</div>
</div>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.21.0/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.21.0/firebase-firestore.js"></script>
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "####",
authDomain: "####",
databaseURL: "####",
projectId: "####",
storageBucket: "####",
messagingSenderId: "####",
appId: "####"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
const db = firebase.firestore();
</script>
<script src="./script.js"></script>
</body>
</html>