Created the password module

This commit is contained in:
2023-01-08 04:00:47 +01:00
parent fd24a2ca82
commit 1414e1c146
3 changed files with 85 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title><%= meta.title %></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
<%- include('style.css'); %>
</style>
</head>
<body>
<div class="container">
<h1>Passwort benötigt</h1>
<form action="/<%= accessId %>" method="post" >
<input type="password" name="password" class="form-control" placeholder="Passwort eingeben" />
<button type="submit" class="btn btn-primary">Link öffnen</button>
</form>
</div>
</body>
</html>

View File

@ -0,0 +1,29 @@
body {
background-color: #f1f1f1;
font-family: 'Courier New', serif;
min-height: 100vh;
display: flex;
align-items: center;
}
.container {
max-width: 400px;
text-align: center;
}
.form-control {
width: 300px;
margin: 20px auto;
padding: 15px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
font-size: 1.2em;
}
h1 {
margin-bottom: 30px;
font-size: 2em;
}
button {
width: 300px;
}