-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (59 loc) · 1.95 KB
/
Copy pathindex.html
File metadata and controls
61 lines (59 loc) · 1.95 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Axinote</title>
<script src="https://www.gstatic.com/firebasejs/9.23.0/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.23.0/firebase-auth-compat.js"></script>
<style>
:root { color-scheme: light; }
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #faf5ed;
color: #2b1d0d;
}
.box { text-align: center; padding: 24px; }
.spinner {
width: 28px;
height: 28px;
margin: 0 auto 12px;
border-radius: 50%;
border: 3px solid rgba(184, 82, 30, 0.2);
border-top-color: #b8521e;
animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sub { font-size: 14px; color: #7a6040; margin-top: 8px; }
a { color: #b8521e; }
</style>
</head>
<body>
<div class="box">
<div class="spinner" aria-hidden="true"></div>
<div>Checking your Axinote session...</div>
<div class="sub">If this takes too long, open <a href="/welcome">/welcome</a>.</div>
</div>
<script>
firebase.initializeApp({
apiKey: "AIzaSyCmmnXzel_rrxE7xM2mm0htu4Ehh9Eo6Rs",
authDomain: "studypilot-92014.firebaseapp.com",
databaseURL: "https://studypilot-92014-default-rtdb.asia-southeast1.firebasedatabase.app",
projectId: "studypilot-92014",
storageBucket: "studypilot-92014.firebasestorage.app",
messagingSenderId: "267953191976",
appId: "1:267953191976:web:0c625dc16e7fa8b822c91d"
});
const auth = firebase.auth();
auth.onAuthStateChanged((user) => {
window.location.replace(user ? '/app' : '/welcome');
}, () => {
window.location.replace('/welcome');
});
</script>
</body>
</html>