Skip to content

Commit 1d4e55e

Browse files
committed
style updates
1 parent 4b1f18f commit 1d4e55e

File tree

5 files changed

+88
-11
lines changed

5 files changed

+88
-11
lines changed

.DS_Store

0 Bytes
Binary file not shown.

data.coffee

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ fetchMessages = (cb) ->
4242
return
4343

4444
rest.get(messageFeed).on('complete', (data) ->
45-
45+
data or= ''
46+
4647
messages = for x in parseFeed data
4748
{ subject: x.title.$t, body: formatContent(x.summary.$t), author: x.author.name, timeago: timeAgo(x.updated), url: x.link.href }
4849

@@ -59,6 +60,8 @@ fetchTweets = (cb) ->
5960
return
6061

6162
rest.get(twitterFeed).on('complete', (data) ->
63+
data or= {}
64+
data.results or= []
6265
tweets = for x in data.results
6366
{ timeago: timeAgo(x.created_at), created_at: x.created_at, created_by: x.from_user, tweet: x.text }
6467

@@ -74,7 +77,7 @@ fetchEvents = (cb) ->
7477
return
7578

7679
ical.fromURL eventFeed, {}, (err, calendar) ->
77-
console.log calendar
80+
calendar or= {}
7881
events = for k,v of calendar
7982
{title: v.summary, location: v.location, details: v.description, when: determineDate v.start, v.end }
8083
console.log events

public/css/app.css

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,46 @@ a {
2727
background: url("images/nodekc-dark.png") no-repeat center center;
2828
text-indent: -90000px;
2929
}
30+
form.node-out {
31+
margin: 20px 0 20px 0;
32+
height: 40px;
33+
position: relative;
34+
text-align: center;
35+
}
36+
form.node-out input[type=text] {
37+
padding: 5px 12px;
38+
margin-right: 5px;
39+
width: 220px;
40+
-webkit-border-radius: 4px;
41+
-moz-border-radius: 4px;
42+
border-radius: 4px;
43+
}
44+
form.node-out input[type=submit] {
45+
-webkit-border-radius: 4px;
46+
-moz-border-radius: 4px;
47+
border-radius: 4px;
48+
background-color: #8bc84b;
49+
color: #363730;
50+
font-size: 14px;
51+
font-weight: bold;
52+
margin: 0 1px;
53+
padding: 6px 12px;
54+
display: inline-block;
55+
outline: none;
56+
text-align: center;
57+
text-shadow: 0 1px 1px rgba(0,0,0,0.30);
58+
vertical-align: baseline;
59+
}
60+
form.node-out input[type=submit]:hover {
61+
background-color: #73a53e;
62+
}
63+
form.node-out input {
64+
margin: 0;
65+
padding: 0;
66+
font-size: 100%;
67+
border: none;
68+
outline: none;
69+
}
3070
#panels {
3171
list-style-type: none;
3272
}
@@ -45,10 +85,8 @@ a {
4585
}
4686
#panels li.panel ul {
4787
background-color: #222;
48-
overflow: auto;
4988
padding: 0px 2px 10px 10px;
50-
margin-left: 10px;
51-
margin-top: 5px;
89+
margin: 5px 0 0 10px;
5290
list-style-type: none;
5391
}
5492
#panels li.panel h2 {
@@ -70,6 +108,9 @@ a {
70108
#panels li.panel .teaser {
71109
font-size: 12px;
72110
}
111+
.tweets {
112+
background: url("images/tweets.png") no-repeat center center;
113+
}
73114
.tweets li {
74115
margin-bottom: 5px;
75116
}

public/css/app.styl

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,37 @@ a
2727
min-width 900px
2828
background url('images/nodekc-dark.png') no-repeat center center
2929
text-indent -90000px
30-
30+
form.node-out
31+
margin 20px 0 20px 0
32+
height 40px
33+
position relative
34+
text-align center
35+
input[type=text]
36+
padding 5px 12px
37+
margin-right 5px
38+
width 220px
39+
border-radius(4px)
40+
input[type=submit]
41+
border-radius(4px)
42+
background-color #8BC84B
43+
color #363730
44+
font-size 14px
45+
font-weight bold
46+
margin 0 1px
47+
padding 6px 12px
48+
display inline-block
49+
outline none
50+
text-align center
51+
text-shadow 0 1px 1px rgba(0,0,0,0.3)
52+
vertical-align baseline
53+
&:hover
54+
background-color #73A53E
55+
input
56+
margin 0
57+
padding 0
58+
font-size 100%
59+
border none
60+
outline none
3161
#panels
3262
list-style-type none
3363
li.panel
@@ -43,8 +73,7 @@ a
4373
ul
4474
background-color #222
4575
padding 0px 2px 10px 10px
46-
margin-left 10px
47-
margin-top 5px
76+
margin 5px 0 0 10px
4877
list-style-type none
4978
h2
5079
font-size 20px
@@ -62,6 +91,7 @@ a
6291
.teaser
6392
font-size 12px
6493
.tweets
94+
background url('images/tweets.png') no-repeat center center
6595
li
6696
margin-bottom 5px
6797
p.teaser

views/layout.jade

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ html(lang="en")
1919
#wrapper
2020
h1 NodeKC
2121

22+
form(action='http://groups.google.com/group/kc-nodejs/boxsubscribe').node-out
23+
input(type='text', name='email', placeholder='nodely@email.com')
24+
25+
input(type='submit', value='join nodekc')
26+
2227
ul#panels
2328
li.panel.messages
2429
h2 Recent Group Messages
@@ -46,6 +51,4 @@ html(lang="en")
4651
li
4752
a.title(href=item.url)#{item.title}
4853
p.teaser #{item.details}
49-
span.time #{item.when}
50-
p.join join our
51-
a(href='http://groups.google.com/group/kc-nodejs') google group
54+
span.time #{item.when}

0 commit comments

Comments
 (0)