diff --git a/Sean/models/User.js b/Sean/models/User.js index ab12ee9..e69de29 100644 --- a/Sean/models/User.js +++ b/Sean/models/User.js @@ -1,35 +0,0 @@ -// models/User.js - -const { Sequelize, DataTypes } = require('sequelize'); -const sequelize = new Sequelize(process.env.database, process.env.user, process.env.password, { - host: process.env.host, - dialect: 'mysql', - timezone: 'Z', // Set the timezone to UTC -}); - -const User = sequelize.define('User', { - name: { - type: DataTypes.STRING, - allowNull: false, - }, - username: { - type: DataTypes.STRING, - allowNull: false, - unique: true, - }, - email: { - type: DataTypes.STRING, - allowNull: false, - unique: true, - }, - password: { - type: DataTypes.STRING, - allowNull: false, - }, - jobTitle: { - type: DataTypes.STRING, - allowNull: false, - }, -}); - -module.exports = User; diff --git a/Sean/views/home.ejs b/Sean/views/home.ejs index c54445f..a2e2d81 100644 --- a/Sean/views/home.ejs +++ b/Sean/views/home.ejs @@ -14,84 +14,41 @@ font-family: 'Arial', sans-serif; } - #sidebar { - height: 100%; - width: 250px; - position: fixed; + #navbar { background-color: #333; - padding-top: 60px; - transition: 0.5s; + overflow: hidden; + text-align: center; } - #sidebar img { - width: 100%; - margin-bottom: 20px; + #navbar h1 { + color: white; + padding: 14px 16px; + margin: 0; + font-size: 24px; } - #sidebar a { - padding: 10px 15px; + #navbar a { + display: inline-block; + color: white; + text-align: center; + padding: 14px 16px; text-decoration: none; font-size: 18px; - color: white; - display: block; - transition: 0.3s; } - #sidebar a:hover { + #navbar a:hover { background-color: #555; } #content { - margin-left: 250px; padding: 16px; - } - - @media screen and (max-width: 600px) { - #sidebar { - width: 0; - overflow-x: hidden; - } - - #content { - margin-left: 0; - } - } - - #sidebarCollapse { - width: 40px; - height: 40px; - position: absolute; - top: 10px; - left: 10px; - cursor: pointer; - z-index: 1; - } - - #sidebarCollapse span { - display: block; - background: white; - height: 5px; - width: 30px; - margin: 6px auto; - transition: 0.3s; - } - - #sidebarCollapse:hover span:nth-child(1) { - transform: rotate(-45deg) translate(-5px, 6px); - } - - #sidebarCollapse:hover span:nth-child(2) { - opacity: 0; - } - - #sidebarCollapse:hover span:nth-child(3) { - transform: rotate(45deg) translate(-5px, -6px); + text-align: center; } table { border-collapse: collapse; width: 80%; - margin: 20px 0; + margin: 20px auto; font-size: 16px; } @@ -117,13 +74,8 @@ -