3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 03:33:07 +01:00

make more l33t

This commit is contained in:
Thomas Menari 2013-01-24 19:39:28 +00:00
parent dbac28cad6
commit 3c4974d5ef
5 changed files with 42 additions and 7 deletions

View File

@ -23,7 +23,7 @@ var pages = function(dbot) {
});
},
'/grid/:connection': function(req, res) {
'/profile/:connection': function(req, res) {
var connection = req.params.connection;
var profiles = dbot.db.profiles[connection];

View File

@ -193,3 +193,34 @@ li.option-votes {
text-align: left;
margin-bottom: 10px;
}
/**
* spaceinvader's thumbnails
*/
span.nicks {
display: none;
color: #fff;
text-decoration: none;
position: absolute;
left: 0px;
top: 10px;
width: 100%;
}
div.imgwrap {
background-color: #000;
position: relative;
}
div.imgwrap > img {
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
.thumbnail:hover > div.imgwrap > img {
opacity: 0.5;
}
.thumbnail:hover > div.imgwrap > span.nicks {
display: inline;
}

View File

@ -92,3 +92,6 @@ block content
#{chan.fields.wpl.data}
td
#{chan.fields.in_mentions.data}
ul.pager
li.previous
a(href='/profile/'+connection) ← Back to #{connection}.

View File

@ -4,10 +4,11 @@ block content
div.page-header.profile_page-header
h1
#{connection}
div.span9
ul.thumbnails
each profile, key in profiles
if profile.hasOwnProperty('profile') && profile.profile.avatar
div.span2
a(href='/profile/'+connection+'/'+encodeURIComponent(key))
h3= profile.profile.primary
img.profile_avatar(src="#{profile.profile.avatar}")
li.span2
a.thumbnail(href='/profile/'+connection+'/'+encodeURIComponent(key))
div.imgwrap
img(src="#{profile.profile.avatar}", alt="#{key}'s photo")
span.nicks #{profile.profile.primary}

View File

@ -7,4 +7,4 @@ block content
#modulelinks
-each connection in connections
a.module(href='/channels/'+connection) #{connection}
a.module(href='/grid/'+connection) #{connection} headshots
a.module(href='/profile/'+connection) #{connection} headshots