From 61526d8c7117e4b17f82ba6a5902eeadb25893cd Mon Sep 17 00:00:00 2001 From: Arkadeep Kashyap Date: Sun, 31 Oct 2021 12:05:23 +0530 Subject: [PATCH] page links,about page route, about page made --- src/controllers/authControllers.js | 3 ++ src/routes/user.js | 2 + views/about.ejs | 61 ++++++++++++++++++++++++++++++ views/group.ejs | 6 +-- views/groupinfo.ejs | 6 +-- views/index.ejs | 6 +-- 6 files changed, 75 insertions(+), 9 deletions(-) create mode 100644 views/about.ejs diff --git a/src/controllers/authControllers.js b/src/controllers/authControllers.js index 8f5e873..a326ebb 100644 --- a/src/controllers/authControllers.js +++ b/src/controllers/authControllers.js @@ -312,4 +312,7 @@ module.exports.remainder_get=async(req,res)=>{ }catch(err){ res.send(err) } +} +module.exports.about=async(req,res)=>{ + res.send(`/user/about`) } \ No newline at end of file diff --git a/src/routes/user.js b/src/routes/user.js index 1553b0e..6e329bf 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -15,6 +15,8 @@ router.get('/logout', requireAuth, authController.logout_get) router.get('/group', requireAuth, authController.groupCreate_get) router.post('/group', requireAuth, authController.groupCreate_post) +router.post('/about', authController.about) + router.post('/groupInfoEqual/:id', requireAuth, authController.groupInfoEqual_post) router.get('/groupInfo/:id', requireAuth, authController.groupInfo_get) diff --git a/views/about.ejs b/views/about.ejs new file mode 100644 index 0000000..04c9dcf --- /dev/null +++ b/views/about.ejs @@ -0,0 +1,61 @@ + + + + + + + + + + + + Split Your Bill + + + + +
+
+
+
About Us
+

SplitYourBill is an hackathon project made for INTERNATHON 5.0. This aims to simplify bill split payments and remind the other users if the payment is pending. + +

+
+
+
+ + + + + + + + + + + + + \ No newline at end of file diff --git a/views/group.ejs b/views/group.ejs index aea46a9..bddbb23 100644 --- a/views/group.ejs +++ b/views/group.ejs @@ -19,9 +19,9 @@ class="bar1">