-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.html
52 lines (44 loc) · 1.77 KB
/
signup.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
<html>
<head>
<title>Sign Up</title>
<link href="https://fonts.googleapis.com/css?family=Nunito:400,600,700" rel="stylesheet">
<link rel="stylesheet" href="./assets/css/signup-login.css" />
</head>
<body>
<div id="login_div" class="main-div">
<h3>Sign Up</h3>
<input type="email" placeholder="Email..." id="email" />
<input type="password" placeholder="Password..." id="password" />
<button onclick="signUp()">Sign Up</button>
<a href="signup.html">Already a member? Login!</a>
</div>
<div id="user_div" class="loggedin-div">
<h3>Welcome User</h3>
<p id="user_para">Welcome to Firebase web login Example. You're currently logged in.</p>
<a style="text-decoration: none;" href="home.html"><button>Go Home</button></a>
<br>
<button onclick="logout()">Logout</button>
</div>
<!-- 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.9/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.2.9/firebase-analytics.js"></script>
<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
var firebaseConfig = {
apiKey: "AIzaSyAQE7aF3c0fYwuhqOVBvKNsHuYpngGVQlI",
authDomain: "mentalbeing-bda22.firebaseapp.com",
projectId: "mentalbeing-bda22",
storageBucket: "mentalbeing-bda22.appspot.com",
messagingSenderId: "136378705776",
appId: "1:136378705776:web:24bcef9bd5522c1214d1b5",
measurementId: "G-K5WY38RL9V"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
</script>
<script src="./assets/js/signup-login.js"></script>
</body>
</html>