Skip to content

Commit

Permalink
make a location view and render in the server #24
Browse files Browse the repository at this point in the history
  • Loading branch information
hibaakel committed May 15, 2017
1 parent 1ad0eb0 commit 906c978
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ app.use(express.static(path.join(__dirname, '../public'), staticOptions))
app.get('/', (req, res) => {
res.render('home')
})

app.get('/location', (req, res) => {
res.render('location')
})
app.listen(app.get('port'), () => {
console.log('Express server running on port: ', app.get('port'))
})
7 changes: 7 additions & 0 deletions views/location.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<form class="pa4 black-80-center">
<h1>location</h1>
<label for="location" class="f6 b db mb2">please enter your location looking for ? </label>
<input id="location" class="input-reset ba b--black-20 pa2 mb2 db w-30" type="text" >
<a href="submit">{{{Accessibility}}}</a>

</form>

0 comments on commit 906c978

Please sign in to comment.