Skip to content

Commit 4ce2b31

Browse files
committed
layout with tutorial cards for index
1 parent 2fe48e8 commit 4ce2b31

File tree

4 files changed

+64
-3
lines changed

4 files changed

+64
-3
lines changed

public/stylesheets/style.css

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,36 @@ body {
88

99
a {
1010
color: #00B7FF;
11-
}
11+
}
12+
13+
.im {
14+
height: 150px;
15+
width: 100%;
16+
border: solid 1px white;
17+
-o-object-fit: fill;
18+
-o-object-position: top center;
19+
object-fit: fill;
20+
object-position: top center;
21+
}
22+
23+
.im:hover
24+
{
25+
opacity:0.5;
26+
filter:alpha(opacity=100); /* For IE8 and earlier */
27+
}
28+
29+
.atext{
30+
height: 40px;
31+
overflow: hidden;
32+
text-overflow: ellipsis;
33+
}
34+
35+
.tut-sub-by-wrap {
36+
padding-top: 4px;
37+
border-top: 1px solid #E2E2E2;
38+
margin-top: 4px;
39+
height:14px;
40+
line-height: 14px;
41+
overflow: hidden;
42+
text-overflow: ellipsis;
43+
}

views/bit/tut_card.jade

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
li.span3
2+
div.thumbnail
3+
img.im(src="http://devtacular.com/images/article_icon_javascript.png")
4+
div.atext
5+
a sample heading
6+
div.tut-sub-by-wrap
7+
span By
8+
a James Dam
9+
div.tut-sub-by-wrap
10+
span.label(href="/a") tag
11+
a.label(href="/a") tag
12+
a.label(href="/a") tag
13+
a.label(href="/a") tag
14+
dib.tut-sub-by-wrap
15+
span
16+
i.icon-thumbs-up
17+
b 1000
18+
span
19+
i.icon-eye-open
20+
b 1000

views/index.jade

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@ extends layout
22

33
block content
44
h1= title
5-
p Welcome to #{title}
5+
p Welcome to #{title}
6+
div.row-fluid
7+
ul.thumbnails
8+
- for (var i = 0; i < 4; ++i) {
9+
include bit/tut_card
10+
- }
11+
ul.thumbnails
12+
- for (var i = 0; i < 4; ++i) {
13+
include bit/tut_card
14+
- }

views/layout.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ doctype 5
22
html
33
head
44
title= title
5-
link(rel='stylesheet', href='/stylesheets/style.css')
65
link(rel='stylesheet', href='/stylesheets/bootstrap.min.css')
6+
link(rel='stylesheet', href='/stylesheets/style.css')
77
body
88
include bit/topbar
99
div.container

0 commit comments

Comments
 (0)