move to pc
This commit is contained in:
7 files changed
+74
-69
No files matched your search
+4
-12
@@ -1,13 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<%- include("./partials/header") %>
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<title>2537 Assignment 1</title>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
|
|
||||||
<link rel="stylesheet" href="/static/css/index.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<% if (authenticated) { %>
|
<% if (authenticated) { %>
|
||||||
<h1>Welcome <%= username %></h1>
|
<h1>Welcome <%= username %></h1>
|
||||||
@@ -19,5 +11,5 @@
|
|||||||
<a href="/signup">Signup</a>
|
<a href="/signup">Signup</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
|
||||||
</html>
|
<%- include("./partials/footer") %>
|
||||||
+18
-20
@@ -1,31 +1,29 @@
|
|||||||
<!DOCTYPE html>
|
<%- include("./partials/header") %>
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<title>2537 Assignment 1</title>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="/static/css/index.css">
|
<div class="flex h-screen">
|
||||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css">
|
<div class="m-auto w-sm px-6 py-12 bg-white-200 rounded-lg space-y-6">
|
||||||
</head>
|
<div class="flex flex-row justify-center">
|
||||||
<body>
|
<h1 class="font-semibold text-xl mb-4 text-white">Login</h1>
|
||||||
<div class="center">
|
</div>
|
||||||
<form action="/login" method="POST">
|
<form action="/login" method="POST">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
<label for="username">
|
<label for="username">
|
||||||
<i class="fas fa-envelope"></i>
|
<i class="fas fa-envelope"></i>
|
||||||
</label>
|
</label>
|
||||||
<input type="email" name="email" placeholder="Email" id="email" required>
|
<input type="email" name="email" placeholder="Email" id="email" required class="block w-full rounded-md bg-grey-100 px-3 py-1.5 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 sm:text-sm/6 mb-4 text-white">
|
||||||
|
|
||||||
<label for="password">
|
<label for="password">
|
||||||
<i class="fas fa-lock"></i>
|
<i class="fas fa-lock"></i>
|
||||||
</label>
|
</label>
|
||||||
<input type="password" name="password" placeholder="Password" id="password" required>
|
<input type="password" name="password" placeholder="Password" id="password" required class="block w-full rounded-md bg-grey-100 px-3 py-1.5 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 sm:text-sm/6 mb-4 text-white">
|
||||||
|
|
||||||
<input id="login" type="submit" value="Login">
|
|
||||||
<h3 id="flash-msg" class="flash-msg"><%= message %></h3>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/scripts/loadFlash.js"></script>
|
<div class="flex flex-row justify-center">
|
||||||
</body>
|
<button type="submit" class="block w-3xs bg-blue-600 rounded-md mx-8 text-white p-2">Login</button>
|
||||||
</html>
|
<h3 class="text-red-500 text-center"><%= message %></h3>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<%- include("./partials/footer") %>
|
||||||
+4
-11
@@ -1,12 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<%- include("./partials/header") %>
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<title>2537 Assignment 1</title>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
|
|
||||||
</head>
|
|
||||||
<body style="padding: 12pt;">
|
|
||||||
<h3>Hello <%= username %></h3>
|
<h3>Hello <%= username %></h3>
|
||||||
<figure>
|
<figure>
|
||||||
<img style="width: 400pt;" src="/static/images/<%= name %>.png">
|
<img style="width: 400pt;" src="/static/images/<%= name %>.png">
|
||||||
@@ -14,5 +7,5 @@
|
|||||||
</figure>
|
</figure>
|
||||||
<br>
|
<br>
|
||||||
<a style="background-color: grey; padding: 6px; margin-top: 12pt;" href="/logout">Logout</a>
|
<a style="background-color: grey; padding: 6px; margin-top: 12pt;" href="/logout">Logout</a>
|
||||||
</body>
|
|
||||||
</html>
|
<%- include("./partials/footer") %>
|
||||||
+4
-11
@@ -1,13 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<%- include("./partials/header") %>
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<title>2537 Assignment 1</title>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>404 - Not found</h1>
|
<h1>404 - Not found</h1>
|
||||||
<a href="/">Home</a>
|
<a href="/">Home</a>
|
||||||
</body>
|
|
||||||
</html>
|
<%- include("./partials/footer") %>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>2537 Assignment 1</title>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
|
||||||
|
</head>
|
||||||
|
<body class="bg-gray-700">
|
||||||
+32
-15
@@ -1,17 +1,36 @@
|
|||||||
<!DOCTYPE html>
|
<%- include("./partials/header") %>
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<title>2537 Assignment 1</title>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="/static/css/index.css">
|
|
||||||
<link rel="stylesheet" href="/static/css/login.css">
|
|
||||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
<div class="flex h-screen">
|
||||||
<div class="background"></div>
|
<div class="m-auto w-sm px-6 py-12 bg-white-200 rounded-lg space-y-6">
|
||||||
|
<div class="flex flex-row justify-center">
|
||||||
|
<h1 class="font-semibold text-xl mb-4 text-white">Signup</h1>
|
||||||
|
</div>
|
||||||
|
<form action="/signup" method="POST">
|
||||||
|
<div class="flex flex-col justify-center">
|
||||||
|
<label for="name">
|
||||||
|
<i class="fas fa-user"></i>
|
||||||
|
</label>
|
||||||
|
<input type="text" name="name" placeholder="Name" id="name" required class="block w-full rounded-md bg-grey-100 px-3 py-1.5 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 sm:text-sm/6 mb-4 text-white">
|
||||||
|
|
||||||
|
<label for="username">
|
||||||
|
<i class="fas fa-envelope"></i>
|
||||||
|
</label>
|
||||||
|
<input type="email" name="email" placeholder="Email" id="email" required class="block w-full rounded-md bg-grey-100 px-3 py-1.5 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 sm:text-sm/6 mb-4 text-white">
|
||||||
|
|
||||||
|
<label for="password">
|
||||||
|
<i class="fas fa-lock"></i>
|
||||||
|
</label>
|
||||||
|
<input type="password" name="password" placeholder="Password" id="password" required class="block w-full rounded-md bg-grey-100 px-3 py-1.5 text-base text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 sm:text-sm/6 mb-4 text-white">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-row justify-center">
|
||||||
|
<button type="submit" class="block w-3xs bg-blue-600 rounded-md mx-8 text-white p-2">Signup</button>
|
||||||
|
<h3 class="text-red"><%= message %></h3>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<form action="/signup" method="POST">
|
<form action="/signup" method="POST">
|
||||||
@@ -35,6 +54,4 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/scripts/loadFlash.js"></script>
|
<%- include("./partials/footer") %>
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in new issue
Block a user