diff --git a/public/images/Mark_Ruffalo.jpg b/public/images/Mark_Ruffalo.jpg new file mode 100644 index 0000000000000000000000000000000000000000..acd712879a3d427db0a3b1edcb5a2f022abb91d6 Binary files /dev/null and b/public/images/Mark_Ruffalo.jpg differ diff --git a/routes/result.js b/routes/result.js index 263b74050b2e461c6218c351cb51ff51490e7387..99cb0c01a564daaecd8c47ef99ecb52987a9299a 100644 --- a/routes/result.js +++ b/routes/result.js @@ -7,6 +7,7 @@ router.post('/',function(req,res){ const actor = req.body.actor; const genre = req.body.genre; const path = req.body.path; + const actor_path = req.body.actor_path; const ratings = req.body.ratings; res.render('result', @@ -15,6 +16,7 @@ router.post('/',function(req,res){ actor:actor, genre:genre, path:path, + actor_path:actor_path, ratings:ratings}) }) diff --git a/views/index.pug b/views/index.pug index 14cc490ac882abe1ef1e8705c0a0204099e9af8e..f3872ef177d7baa077d2ac0537f1d594e6a93e34 100644 --- a/views/index.pug +++ b/views/index.pug @@ -16,6 +16,8 @@ block content input(type = 'text' name='genre') p input(type = 'text' name='path') + p + input(type = 'text' name='actor_path') h3 Movie Ratings label(for='0') 0 diff --git a/views/result.pug b/views/result.pug index afc124596e6ba338dfd8f1d618e711b13c97f92a..6a1d8e1b5d1e74d72257aeea4c819697e3d9bc0a 100644 --- a/views/result.pug +++ b/views/result.pug @@ -1,12 +1,13 @@ extends layout block content - img(src=`${path}` width="165px" height="600px") + img(src=`${path}` width="480px" height="600px") h1 #{movie} hr h3 #{actor} + img(src=`${actor_path}` width="200px" height="200px") h3 #{genre} hr