Skip to content

Commit

Permalink
add routes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgjo committed Feb 10, 2017
1 parent dc1511e commit a2e0b1d
Show file tree
Hide file tree
Showing 6 changed files with 268 additions and 1 deletion.
20 changes: 20 additions & 0 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,24 @@ router.get('/', function(req, res, next) {
res.render('index', { title: 'IXD' });
});

/* GET logexperience page. */
router.get('/logexperience', function(req, res, next) {
res.render('logexperience', { title: 'IXD' });
});

/* GET chat page. */
router.get('/chat', function(req, res, next) {
res.render('chat', { title: 'IXD' });
});

/* GET viememories page. */
router.get('/viewmemories', function(req, res, next) {
res.render('viewmemories', { title: 'IXD' });
});

/* GET about page. */
router.get('/about', function(req, res, next) {
res.render('about', { title: 'IXD' });
});

module.exports = router;
49 changes: 49 additions & 0 deletions views/about.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en">

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<title><%= title %></title>

<!-- Bootstrap Core CSS -->
<link href="stylesheets/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->
<link href="stylesheets/stylish-portfolio.css" rel="stylesheet">

<link href="stylesheets/custom.css" rel="stylesheet">

<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

</head>
<body>
<!-- Banner -->
<aside class="call-to-action bg-primary">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<a href="/" class="btn btn-lg btn-dark">Home</a>
</div>
</div>
</div>
</aside>
<div style="text-align: center">
<p>ABOUT PAGE</p>
</div>
</body>
</html>
64 changes: 64 additions & 0 deletions views/chat.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<title><%= title %></title>

<!-- Bootstrap Core CSS -->
<link href="stylesheets/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->
<link href="stylesheets/stylish-portfolio.css" rel="stylesheet">

<link href="stylesheets/custom.css" rel="stylesheet">

<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

</head>
<body>
<!-- Banner -->
<aside class="call-to-action bg-primary">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<a href="/" class="btn btn-lg btn-dark">Home</a>
</div>
</div>
</div>
</aside>
<div style="text-align: center">
<p>CHAT WINDOW BETWEEN HOST AND USER</p>
<button onclick='btn1()'>We're going!</button>
<button onclick='btn2()'>It didn't work out</button>
</div>

<script>
var btn1 = function()
{
window.location.href = '/logexperience'
}
var btn2 = function()
{
window.alert("Activity cancelled");
window.location.href = '/'
}
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion views/error.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<h1><%= message %></h1>
h1><%= message %></h1>
<h2><%= error.status %></h2>
<pre><%= error.stack %></pre>
71 changes: 71 additions & 0 deletions views/logexperience.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<!DOCTYPE html>
<html lang="en">

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<title><%= title %></title>

<!-- Bootstrap Core CSS -->
<link href="stylesheets/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->
<link href="stylesheets/stylish-portfolio.css" rel="stylesheet">

<link href="stylesheets/custom.css" rel="stylesheet">

<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

</head>
<body>
<!-- Banner -->
<aside class="call-to-action bg-primary">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<a href="/" class="btn btn-lg btn-dark">Home</a>
</div>
</div>
</div>
</aside>
<div style="text-align: center">
<p>LOG EXPERIENCE/ACTIVITY</p>
<button onclick='btn1()'>Add log entry</button>
<button onclick='btn2()'>Save Experience</button>
<button onclick='btn3()'>Cancel Experience</button>
</div>

<script>
var btn1 = function()
{
window.location.href = '/logexperiencepopup'
}
var btn2 = function()
{
window.alert("Experience saved!");
window.location.href = '/'
}
var btn3 = function()
{
window.alert("Experience abandoned!");
window.location.href = '/'
}
</script>
</body>
</html>
63 changes: 63 additions & 0 deletions views/viewmemories.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!DOCTYPE html>
<html lang="en">

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<title><%= title %></title>

<!-- Bootstrap Core CSS -->
<link href="stylesheets/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->
<link href="stylesheets/stylish-portfolio.css" rel="stylesheet">

<link href="stylesheets/custom.css" rel="stylesheet">

<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

</head>
<body>
<!-- Banner -->
<aside class="call-to-action bg-primary">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<a href="/" class="btn btn-lg btn-dark">Home</a>
</div>
</div>
</div>
</aside>
<div style="text-align: center">
<p>VIEW MEMORIES (PREVIOUS ACTIVITIES)</p>
<button onclick='btn1()'>VIEW ACTIVITY 1</button>
<button onclick='btn2()'>VIEW ACTIVITY 2</button>
</div>

<script>
var btn1 = function()
{
window.location.href = '/'
}
var btn2 = function()
{
window.location.href = '/'
}
</script>
</body>
</html>

0 comments on commit a2e0b1d

Please sign in to comment.