diff --git a/public/css/menu.css b/public/css/menu.css index 9e3a263..1eb69db 100644 --- a/public/css/menu.css +++ b/public/css/menu.css @@ -45,16 +45,18 @@ } .login_btn { - text-align: right; + text-align: center; padding: 10px; - display: inline-flexbox; + display: flex; + justify-content: center; /* white-space: nowrap; */ } .login { font-size: 15px; color: #8b8b8b; display: inline; - align-items: baseline; + align-items: center; + text-align: center; } .menu_bg { width: 100%; diff --git a/routes/boardProcessRouter.js b/routes/boardProcessRouter.js index 26a9878..3cc7b48 100644 --- a/routes/boardProcessRouter.js +++ b/routes/boardProcessRouter.js @@ -13,7 +13,7 @@ router.post('/', function(request, response) { const body = request.body; let title = body.title; let content = body.content; - var userID = request.user.kakaoid; + var userID = request.user.id; db.query(`INSERT INTO post (id, userID, title, content, createdate, updatedate) VALUES (?,?,?,?,now(),now())`, [null, userID, title, content, null, null], function(err, result){ diff --git a/routes/boardRouter.js b/routes/boardRouter.js index 43ed820..334fc33 100644 --- a/routes/boardRouter.js +++ b/routes/boardRouter.js @@ -67,7 +67,7 @@ router.get('/view', function(request, response){ var like_num = 10000; // 좋아요 연결 후 반영하기 var content = result2[0].content; - db.query(`SELECT nickname FROM user WHERE kakaoid = ?;`, [userId], function(err3, result3){ + db.query(`SELECT nickname FROM user WHERE id = ?;`, [userId], function(err3, result3){ var user_id = result3[0].nickname; diff --git a/template/menu.js b/template/menu.js index 4b651a4..ba136be 100644 --- a/template/menu.js +++ b/template/menu.js @@ -11,6 +11,8 @@ module.exports = {
` + } else { + menu_list += `` } menu_list += `` return menu_list;