aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2024-12-24 13:56:06 -0500
committerAndrew Lee <andrew@alee14.me>2024-12-24 13:56:06 -0500
commit4811a3eabc1e7afaf17b45f9dea541d987c45717 (patch)
tree7368782062805aa60dcbeeb3377c35076658decc /views
downloadfreeso-discord-auth-4811a3eabc1e7afaf17b45f9dea541d987c45717.tar.gz
freeso-discord-auth-4811a3eabc1e7afaf17b45f9dea541d987c45717.tar.bz2
freeso-discord-auth-4811a3eabc1e7afaf17b45f9dea541d987c45717.zip
Initial commit
Diffstat (limited to 'views')
-rw-r--r--views/error.ejs17
-rw-r--r--views/index.ejs17
-rw-r--r--views/login.ejs26
-rw-r--r--views/register.ejs31
-rw-r--r--views/success.ejs18
5 files changed, 109 insertions, 0 deletions
diff --git a/views/error.ejs b/views/error.ejs
new file mode 100644
index 0000000..dc138e6
--- /dev/null
+++ b/views/error.ejs
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="stylesheet" href="/css/style.css">
+ <title>bnbSO</title>
+</head>
+<body>
+ <div class="background"></div>
+ <div class="container">
+ <img src="img/logo.png" alt="logo" width="200">
+ <h1>Oh no! Something went wrong!</h1>
+ <p><%= error %></p>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/views/index.ejs b/views/index.ejs
new file mode 100644
index 0000000..d46a61a
--- /dev/null
+++ b/views/index.ejs
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="stylesheet" href="/css/style.css">
+ <title>bnbSO</title>
+</head>
+<body>
+ <div class="background"></div>
+ <div class="container">
+ <img src="img/logo.png" alt="logo" width="200">
+ <p>You must be a member of the bits & Bytes Discord server to join bnbSO.</p>
+ <a class="discord" href="/auth/discord">Login with Discord</a>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/views/login.ejs b/views/login.ejs
new file mode 100644
index 0000000..a5a51ae
--- /dev/null
+++ b/views/login.ejs
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="stylesheet" href="/css/style.css">
+ <title>bnbSO Login</title>
+</head>
+<body>
+ <div class="background"></div>
+ <div class="container">
+ <img src="img/logo.png" alt="logo" width="200">
+ <h1>Login</h1>
+ <form method="post" action="/login">
+ <label for="username">Username:</label>
+ <input type="text" id="username" name="username">
+ <label for="password">Password:</label>
+ <input type="password" id="password" name="password">
+ <button type="submit">Login</button>
+ </form>
+ <a href="#">Forgot Password</a>
+ <% if (typeof error !== 'undefined') { %>
+ <div class="error"><%= error %></div>
+ <% } %>
+</body>
+</html> \ No newline at end of file
diff --git a/views/register.ejs b/views/register.ejs
new file mode 100644
index 0000000..fcff088
--- /dev/null
+++ b/views/register.ejs
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="stylesheet" href="/css/style.css">
+ <title>bnbSO Register</title>
+</head>
+<body>
+ <div class="background"></div>
+ <div class="container">
+ <img src="img/logo.png" alt="logo" width="200">
+ <h1>Welcome to bnbSO!</h1>
+ <p>You will be sending the following information to register your bnbSO account</p>
+ <p>Please verify that the following information is correct. You can only change this <b>once</b>.</p>
+ <form method="post" action="/register">
+ <label for="username">Username:</label>
+ <input type="text" id="username" name="username" value="<%= username %>">
+ <label for="email">Email:</label>
+ <input type="email" id="email" name="email" value="<%= email %>">
+ <label for="password">Password:</label>
+ <input type="password" id="password" name="password">
+ <label for="password2">Confirm Password:</label>
+ <input type="password" id="password2" name="password2">
+ <button type="submit">Register</button>
+ </form>
+ <% if (typeof error !== 'undefined') { %>
+ <div class="error"><%= error %></div>
+ <% } %>
+</body>
+</html> \ No newline at end of file
diff --git a/views/success.ejs b/views/success.ejs
new file mode 100644
index 0000000..c967d24
--- /dev/null
+++ b/views/success.ejs
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link rel="stylesheet" href="/css/style.css">
+ <title>bnbSO</title>
+</head>
+<body>
+ <div class="background"></div>
+ <div class="container">
+ <img src="img/logo.png" alt="logo" width="200">
+ <p>Created account successfully!</p>
+ <p>Check on your inbox for the confirmation code.</p>
+ <a href="/">Home</a>
+ </div>
+</body>
+</html> \ No newline at end of file