Skip to content

Commit

Permalink
page links,about page route, about page made
Browse files Browse the repository at this point in the history
  • Loading branch information
kashyaparka committed Oct 31, 2021
1 parent a9e374c commit 61526d8
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/controllers/authControllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
}
2 changes: 2 additions & 0 deletions src/routes/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
61 changes: 61 additions & 0 deletions views/about.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="/css/font-awesome.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="owl-carousel/assets/owl.carousel.min.css" type="text/css">
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/group.css">
<title>Split Your Bill</title>
</head>

<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light bg-transparent" id="gtco-main-nav">
<div class="container"><a class="navbar-brand">SplitYourBill</a>
<button class="navbar-toggler" data-target="#my-nav" onclick="myFunction(this)" data-toggle="collapse"><span
class="bar1"></span> <span class="bar2"></span> <span class="bar3"></span></button>
<div id="my-nav" class="collapse navbar-collapse ml-4">
<ul class="navbar-nav mr-auto ml-4">
<li class="nav-item"><a class="nav-link" href="/">Home</a></li>
<li class="nav-item"><a class="nav-link" href="/about">About</a></li>
<li class="nav-item"><a class="nav-link" href="/user/group">Group</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
</ul>
<a class="btn logout my-2 my-sm-0 text-uppercase" href="/user/logout">LOGOUT</a>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="about col-6">
<h5> About Us</h5>
<p>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.

</p>
</div>
</div>
</div>

<footer class="container-fluid sticky-bottom" id="gtco-footer">
<div class="container">
<div class="row">
<div class="col-12">
<p>&copy; 2021 INTERNATHON. All Rights Reserved. Made by 404 FORCES</a>.</p>
</div>
</div>
</div>
</footer>

<script src="/js/jquery-3.3.1.slim.min.js"></script>
<script src="/js/popper.min.js"></script>
<script src="/js/bootstrap.min.js"></script>

<!-- owl carousel js-->
<script src="owl-carousel/owl.carousel.min.js"></script>
<script src="/js/main.js"></script>
</body>

</html>
6 changes: 3 additions & 3 deletions views/group.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
class="bar1"></span> <span class="bar2"></span> <span class="bar3"></span></button>
<div id="my-nav" class="collapse navbar-collapse ml-4">
<ul class="navbar-nav mr-auto ml-4">
<li class="nav-item"><a class="nav-link" href="#">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
<li class="nav-item"><a class="nav-link" href="#news">Group</a></li>
<li class="nav-item"><a class="nav-link" href="/">Home</a></li>
<li class="nav-item"><a class="nav-link" href="/about">About</a></li>
<li class="nav-item"><a class="nav-link" href="/user/group">Group</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
</ul>
<a class="btn logout my-2 my-sm-0 text-uppercase" href="/user/logout">LOGOUT</a>
Expand Down
6 changes: 3 additions & 3 deletions views/groupinfo.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
class="bar1"></span> <span class="bar2"></span> <span class="bar3"></span></button>
<div id="my-nav" class="collapse navbar-collapse ml-4">
<ul class="navbar-nav mr-auto ml-4">
<li class="nav-item"><a class="nav-link" href="#">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
<li class="nav-item"><a class="nav-link" href="#news">Group</a></li>
<li class="nav-item"><a class="nav-link" href="/">Home</a></li>
<li class="nav-item"><a class="nav-link" href="/about">About</a></li>
<li class="nav-item"><a class="nav-link" href="/user/group">Group</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
</ul>
<a class="btn logout my-2 my-sm-0 text-uppercase" href="/user/logout">LOGOUT</a>
Expand Down
6 changes: 3 additions & 3 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@
class="bar1"></span> <span class="bar2"></span> <span class="bar3"></span></button>
<div id="my-nav" class="collapse navbar-collapse ml-4">
<ul class="navbar-nav mr-auto ml-4">
<li class="nav-item"><a class="nav-link" href="#">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
<li class="nav-item"><a class="nav-link" href="#news">Group</a></li>
<li class="nav-item"><a class="nav-link" href="/">Home</a></li>
<li class="nav-item"><a class="nav-link" href="/about">About</a></li>
<li class="nav-item"><a class="nav-link" href="/user/group">Group</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
</ul>
<% if(c===false){%>
Expand Down

0 comments on commit 61526d8

Please sign in to comment.