3
0
mirror of https://github.com/reality/dbot.git synced 2025-02-17 14:01:04 +01:00

Merge pull request #43 from danharibo/master

More web stuff
This commit is contained in:
Luke Slater 2012-06-15 11:07:29 -07:00
commit 9523b6125b
5 changed files with 27 additions and 5 deletions

View File

@ -9,8 +9,8 @@ var webInterface = function(dbot) {
app.set('view engine', 'jade'); app.set('view engine', 'jade');
app.get('/', function(req, res) { app.get('/', function(req, res) {
res.redirect('/quotes'); //res.redirect('/quotes');
//res.render('index', { }); res.render('index', { 'name': dbot.name });
}); });
// Lists the quote categories // Lists the quote categories

View File

@ -77,6 +77,24 @@ a,a:active,a:visited {
text-decoration: none; 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 { ul#quotelist {
padding: 0; padding: 0;
margin: 0; margin: 0;

View File

@ -1,3 +1,3 @@
div#main #modulelinks
p a.module(href='/quotes') Quotes
a(href: '/quotes') Quotes a.module(href='/polls') Polls

View File

@ -1,3 +1,5 @@
div#backlink
a(href='/') « Home
div#controls div#controls
input(type="text", name="search", id="search-text", oninput="search(this.value)") input(type="text", name="search", id="search-text", oninput="search(this.value)")
ul#quotelist ul#quotelist

View File

@ -1,3 +1,5 @@
div#backlink
a(href='/') « Home
div#controls div#controls
input(type="text", name="search", id="search-text", oninput="search(this.value)") input(type="text", name="search", id="search-text", oninput="search(this.value)")
ul#quotelist ul#quotelist