From d6126e68896f212714a03b439eddb817adc31070 Mon Sep 17 00:00:00 2001 From: vex Date: Mon, 18 Nov 2024 11:14:53 +0100 Subject: [PATCH] added login page (WIP) --- public/index.html | 1 + public/login/index.html | 27 +++++++++++++++++++++++++++ scripts/login.js | 7 +++++++ scripts/routes/other/route-index.js | 4 ++++ 4 files changed, 39 insertions(+) create mode 100644 public/login/index.html create mode 100644 scripts/login.js diff --git a/public/index.html b/public/index.html index 5682097..3f4e590 100644 --- a/public/index.html +++ b/public/index.html @@ -9,5 +9,6 @@

Hello there...

Test +Login \ No newline at end of file diff --git a/public/login/index.html b/public/login/index.html new file mode 100644 index 0000000..f87b425 --- /dev/null +++ b/public/login/index.html @@ -0,0 +1,27 @@ + + + + + Login + + +
+ +
+ +
+ +
+ + + + + \ No newline at end of file diff --git a/scripts/login.js b/scripts/login.js new file mode 100644 index 0000000..dbef5a6 --- /dev/null +++ b/scripts/login.js @@ -0,0 +1,7 @@ +let nameEl = document.getElementById("loginMail"); +let passwordEl = document.getElementById("loginPassword"); + +function login() { + //console.log(nameEl.value) + //console.log(passwordEl.value) +} \ No newline at end of file diff --git a/scripts/routes/other/route-index.js b/scripts/routes/other/route-index.js index aef688a..562512e 100644 --- a/scripts/routes/other/route-index.js +++ b/scripts/routes/other/route-index.js @@ -9,4 +9,8 @@ router.get('/example', (req, res) => { 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; \ No newline at end of file