aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/admin.ejs32
-rw-r--r--src/views/index.ejs13
-rw-r--r--src/views/index.html11
-rw-r--r--src/views/login.ejs24
-rw-r--r--src/views/test.html13
5 files changed, 69 insertions, 24 deletions
diff --git a/src/views/admin.ejs b/src/views/admin.ejs
new file mode 100644
index 0000000..009b029
--- /dev/null
+++ b/src/views/admin.ejs
@@ -0,0 +1,32 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport"
+ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>Admin</title>
+</head>
+<body>
+<% if (initial) { %>
+ <form id="setup-form">
+ <div>
+ <label for="username">Username:</label>
+ <input type="text" name="username" id="username">
+ </div>
+ <div>
+ <label for="email">Email:</label>
+ <input type="email" name="email" id="email">
+ </div>
+ <div>
+ <label for="password">Password:</label>
+ <input type="password" name="password" id="password">
+ </div>
+ <input type="submit" value="Setup">
+ </form>
+ <script src="/js/setup.js"></script>
+<% } else { %>
+ <!-- TODO: Render default admin page -->
+<% } %>
+</body>
+</html>
diff --git a/src/views/index.ejs b/src/views/index.ejs
new file mode 100644
index 0000000..daca490
--- /dev/null
+++ b/src/views/index.ejs
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8"/>
+ <meta name="viewport" content="width=device-width"/>
+ <title>Index</title>
+</head>
+<body>
+<% if (files) { %>
+ <%= files %>
+<% } %>
+</body>
+</html>
diff --git a/src/views/index.html b/src/views/index.html
deleted file mode 100644
index 0e3ab11..0000000
--- a/src/views/index.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width" />
- <title>Index</title>
- </head>
- <body>
- <% if (files) { %> <%= files %>! <% } %>
- </body>
-</html>
diff --git a/src/views/login.ejs b/src/views/login.ejs
new file mode 100644
index 0000000..607d099
--- /dev/null
+++ b/src/views/login.ejs
@@ -0,0 +1,24 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport"
+ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>Login</title>
+</head>
+<body>
+<form class="login-form" id="login-form">
+ <div>
+ <label for="username">Username:</label>
+ <input type="text" id="username" placeholder="Username">
+ </div>
+ <div>
+ <label for="password">Password:</label>
+ <input type="password" id="password" placeholder="Password">
+ </div>
+ <input type="submit" value="Login">
+</form>
+<script src="/js/login.js"></script>
+</body>
+</html>
diff --git a/src/views/test.html b/src/views/test.html
deleted file mode 100644
index b188db3..0000000
--- a/src/views/test.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <title>Title</title>
- </head>
- <body>
- <h1>Home :)</h1>
- <% if (name) { %>
- <h1>hello, <%= name %>!</h1>
- <% } %>
- </body>
-</html>