Skip to content

Commit

Permalink
Move some CSS files
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-A-Normal-Robot committed May 16, 2024
1 parent fcb6cc0 commit f9a3481
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 17 deletions.
4 changes: 2 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Techmino Hub - 404</title>
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="/css/style.css">
<noscript>
<link rel="stylesheet" href="/style-no-js.css">
<link rel="stylesheet" href="/css/style-no-js.css">
</noscript>
</head>
<body>
Expand Down
27 changes: 27 additions & 0 deletions auth/discord.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Techmino Hub - logging in...</title>
</head>
<body style="background:#000;color:#FFF">
<h1 id="txt">
<noscript>You cannot login with JavaScript disabled.</noscript>
Loading...
</h1>
<script type="module">
import { SUPABASE } from '/js/db.js';

document.getElementById("txt").textContent = "Logging in...";

const session = SUPABASE.auth.getSession();

if(session) {
document.getElementById("txt").textContent = "You are now logged in! Redirecting...";
} else {
document.getElementById("txt").textContent = "Login failed. Redirecting...";
}
window.location.href = "/index.html";
</script>
</body>
</html>
1 change: 1 addition & 0 deletions css/bare.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
body{background:black;color:white;margin:0}
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions data/faq-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Techmino Hub - FAQ</title>
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="/css/style.css">
<noscript>
<link rel="stylesheet" href="/style-no-js.css">
<link rel="stylesheet" href="/css/style-no-js.css">
</noscript>
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Techmino Hub - Home</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="/css/style.css">
<noscript>
<link rel="stylesheet" href="/style-no-js.css">
<link rel="stylesheet" href="/css/style-no-js.css">
</noscript>
</head>
<body>
Expand Down
14 changes: 8 additions & 6 deletions js/db.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { createClient } from 'https://cdn.jsdelivr.net/npm/@supabase/supabase-js/+esm'
const SUPABASE_URL = "https://fohgyexhzptaxjqrrrfd.supabase.co";
const SUPABASE_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZvaGd5ZXhoenB0YXhqcXJycmZkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDUwMjQxNTcsImV4cCI6MjAyMDYwMDE1N30.fa7XvwiBbWSe2MLIR6Wkh_OC95uV7UXxt7_25PlyAlc"
const SUPABASE = createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
export const SUPABASE_URL = "https://fohgyexhzptaxjqrrrfd.supabase.co";
export const SUPABASE_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZvaGd5ZXhoenB0YXhqcXJycmZkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDUwMjQxNTcsImV4cCI6MjAyMDYwMDE1N30.fa7XvwiBbWSe2MLIR6Wkh_OC95uV7UXxt7_25PlyAlc"
export const SUPABASE = createClient(SUPABASE_URL, SUPABASE_ANON_KEY);

console.log(SUPABASE); {
{
async function loginWithDiscord() {
const { data, error } = await SUPABASE.auth.signInWithOAuth({
provider: "discord",

options: {
redirectTo: "https://techmino-hub.github.io/auth/discord.html"
}
});
console.log(data, error);
}

document.getElementById("button").addEventListener("click", loginWithDiscord);
document.getElementById("login")?.addEventListener("click", loginWithDiscord);
}
4 changes: 2 additions & 2 deletions map-display.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Techmino Hub - Map (Unstable)</title>
<link rel="stylesheet" href="style-map.css">
<link rel="stylesheet" href="/css/style-map.css">
<noscript>
<link rel="stylesheet" href="style-no-js.css">
<link rel="stylesheet" href="/css/style-no-js.css">
</noscript>
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions map.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Techmino Hub - Map</title>
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="/css/style.css">
<noscript>
<link rel="stylesheet" href="/style-no-js.css">
<link rel="stylesheet" href="/css/style-no-js.css">
</noscript>
</head>
<body>
Expand Down
3 changes: 2 additions & 1 deletion testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Techmino Hub - Testing Grounds</title>
<link rel="stylesheet" href="/css/bare.css">
</head>
<body>
Are you a regular user? <br>
If so, you probably shouldn't be seeing this page. <br>
<a href="/index.html">Click here to return to the main page.</a>
<br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br>

<button id="button">Test button</button>
<button id="login">Test button</button>

<script type="module" src="/js/db.js"></script>
</body>
Expand Down

0 comments on commit f9a3481

Please sign in to comment.