-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
59 lines (44 loc) · 1.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Unbound | Reserve</title>
<link rel="stylesheet" href="./assets/css/style.css">
<script src=" https://cdn.jsdelivr.net/npm/@supabase/[email protected]/dist/umd/supabase.min.js "></script>
<script>
const sb = supabase.createClient('https://ividghsmcwfjxsgumkny.supabase.co/', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImxzbHNsa29mdmJuanRqZ2Zkd2NxIiwicm9sZSI6ImFub24iLCJpYXQiOjE2ODM0NjgwMTQsImV4cCI6MTk5OTA0NDAxNH0.DyqVwFgwIyxQpX6V9RrPs2HqbmIrY7ysKFxMXhz12DQ')
// it works!
</script>
<script async>
async function checkSession(){
let session = await sb.auth.getSession();
if(session.session != null){
window.location.href = "/reservusers.html";
}
}
(async () => {
await checkSession();
})();
</script>
</head>
<body>
<div class="navbar">
<div class="logo">
<img src="./assets/imgs/bttrfly.png" id="logo_img">
<h2>Unbound Public Reserve</h2>
</div>
<div class="nav_btns"> <!-- made transparent due the home, about page not being done-->
<a href="#" style="color: #ffffff00; text-decoration: none;">Home</a>
<a href="#" style="color: #ffffff00; text-decoration: none;">About</a>
<a href="#" style="color: #ffffff00; text-decoration: none;">Reserve</a> <!--margin-right: 0%; -->
</div>
</div>
<div class="center">
<img src="./assets/imgs/lock.png">
<div> </div>
<h3>Reserve</h3>
<div class="seperator"> </div>
<button onclick="sb.auth.signInWithOAuth({provider: 'discord'})" style="text-decoration: none; color: #fff;" id="dc_log">Login with Discord</button> <!-- here is the button, which will trigger signinwithdiscord function but it cant find the function-->
<p class="info" style="color: #fff;">Max. 1 account per discord account.</p>
</div>
</body>
</html>