diff --git a/Script/StudentProfile.tsx b/Script/StudentProfile.tsx deleted file mode 100644 index 6e0c0b9..0000000 --- a/Script/StudentProfile.tsx +++ /dev/null @@ -1 +0,0 @@ -const \ No newline at end of file diff --git a/Script/login.js b/Script/login.js new file mode 100644 index 0000000..fc7ece3 --- /dev/null +++ b/Script/login.js @@ -0,0 +1,10 @@ + +const form = document.getElementById('form'); + +form.addEventListener('submit', function(e) { + // Prevent default behavior: + e.preventDefault(); + // Create payload as new FormData object: + const payload = new FormData(form); + console.log([...payload]); +}) diff --git a/User.js b/User.js deleted file mode 100644 index 49f16ec..0000000 --- a/User.js +++ /dev/null @@ -1,14 +0,0 @@ -const mongoose = require('mongoose'); - -const UserSchema = new mongoose.Schema({ - name: String, - email: String, - password: String, - role: { - type: String, - default: 'user' - } -}); - -const userModel = mongoose.model('user', UserSchema); -module.exports = userModel; \ No newline at end of file diff --git a/index.css b/index.css index fd9662f..1a35f8c 100644 --- a/index.css +++ b/index.css @@ -25,21 +25,7 @@ width: 70%; border-radius: 25px; } -#signin { - margin: 60px auto; - display: block; - width: 150px; - cursor: pointer; - text-decoration: none; - font-size: 20px; - font-weight: bold; - text-align: center; - border: 1px solid wheat; - border-radius: 15px; - background-color: rgb(13, 79, 133); - color: white; - padding: 20px; -} + #content { margin: 30px auto; display: block; diff --git a/index.html b/index.html index 8a541f9..9b02e6b 100644 --- a/index.html +++ b/index.html @@ -5,17 +5,23 @@