added login page (WIP)
This commit is contained in:
parent
937329c9a4
commit
d6126e6889
@ -9,5 +9,6 @@
|
|||||||
<body>
|
<body>
|
||||||
<h1>Hello there...</h1>
|
<h1>Hello there...</h1>
|
||||||
<a href="/example">Test</a>
|
<a href="/example">Test</a>
|
||||||
|
<a href="/login">Login</a>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
27
public/login/index.html
Normal file
27
public/login/index.html
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Login</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
<label>
|
||||||
|
E-Mail
|
||||||
|
<br>
|
||||||
|
<input type="text" id="loginMail">
|
||||||
|
</label>
|
||||||
|
<br>
|
||||||
|
<label>
|
||||||
|
Passwort
|
||||||
|
<br>
|
||||||
|
<input type="password" id="loginPassword">
|
||||||
|
</label>
|
||||||
|
<br>
|
||||||
|
<button onclick="login()">Login</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- scripts -->
|
||||||
|
<script src="login.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
7
scripts/login.js
Normal file
7
scripts/login.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
let nameEl = document.getElementById("loginMail");
|
||||||
|
let passwordEl = document.getElementById("loginPassword");
|
||||||
|
|
||||||
|
function login() {
|
||||||
|
//console.log(nameEl.value)
|
||||||
|
//console.log(passwordEl.value)
|
||||||
|
}
|
||||||
@ -9,4 +9,8 @@ router.get('/example', (req, res) => {
|
|||||||
res.sendFile(path.join(__dirname, '../../../public/example/index.html'));
|
res.sendFile(path.join(__dirname, '../../../public/example/index.html'));
|
||||||
})
|
})
|
||||||
|
|
||||||
|
router.get('/login', (req, res) => {
|
||||||
|
res.sendFile(path.join(__dirname, '../../../public/login/index.html'));
|
||||||
|
})
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
Loading…
x
Reference in New Issue
Block a user