forked from GitHub/dbot
commit
9523b6125b
@ -9,8 +9,8 @@ var webInterface = function(dbot) {
|
||||
app.set('view engine', 'jade');
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
res.redirect('/quotes');
|
||||
//res.render('index', { });
|
||||
//res.redirect('/quotes');
|
||||
res.render('index', { 'name': dbot.name });
|
||||
});
|
||||
|
||||
// Lists the quote categories
|
||||
|
@ -77,6 +77,24 @@ a,a:active,a:visited {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Index Page */
|
||||
#modulelinks {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.module {
|
||||
display: inline-block;
|
||||
width: 45%;
|
||||
padding: 15px 0;
|
||||
margin: 0 2%;
|
||||
background: #F5F5F5;
|
||||
border-radius: 15px;
|
||||
}
|
||||
.module:hover {
|
||||
background: #BBB;
|
||||
}
|
||||
|
||||
ul#quotelist {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
@ -1,3 +1,3 @@
|
||||
div#main
|
||||
p
|
||||
a(href: '/quotes') Quotes
|
||||
#modulelinks
|
||||
a.module(href='/quotes') Quotes
|
||||
a.module(href='/polls') Polls
|
||||
|
@ -1,3 +1,5 @@
|
||||
div#backlink
|
||||
a(href='/') « Home
|
||||
div#controls
|
||||
input(type="text", name="search", id="search-text", oninput="search(this.value)")
|
||||
ul#quotelist
|
||||
|
@ -1,3 +1,5 @@
|
||||
div#backlink
|
||||
a(href='/') « Home
|
||||
div#controls
|
||||
input(type="text", name="search", id="search-text", oninput="search(this.value)")
|
||||
ul#quotelist
|
||||
|
Loading…
Reference in New Issue
Block a user