Skip to content

Commit 91ab153

Browse files
Adding resources section
1 parent 7c2e1f4 commit 91ab153

File tree

3 files changed

+57
-3
lines changed

3 files changed

+57
-3
lines changed

app/content.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,21 @@
33
"title": "Diving into Angular 2",
44
"episode": "53",
55
"coverart": "http://assets.libsyn.com/content/9454132",
6-
"summary": "Pascal Precht (@PascalPrecht), Senior Software Engineer at Thoughtram & creator of ng-translate, chats with us about the Angular 2 and how developers can get ready today."
6+
"summary": "Pascal Precht (@PascalPrecht), Senior Software Engineer at Thoughtram & creator of ng-translate, chats with us about the Angular 2 and how developers can get ready today.",
7+
"resources": [
8+
{
9+
"title": "Angular 2",
10+
"link": "http://angular.io"
11+
},
12+
{
13+
"title": "TypeScript",
14+
"link": "http://www.typescriptlang.org/"
15+
},
16+
{
17+
"title": "Definitely Typed",
18+
"link": "https://github.com/DefinitelyTyped"
19+
}
20+
]
721
},
822
{
923
"title": "53: Diving into Angular 2",

app/elements/new-episode/new-episode.html

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,30 @@
4141
width: 120px;
4242
height: 120px;
4343
}
44+
.resources {
45+
display: block;
46+
}
47+
.resources h3 {
48+
font-weight: 100;
49+
font-size: 20px;
50+
}
51+
.resources paper-item {
52+
display: inline-block;
53+
padding: 10px 20px;
54+
margin: 1px;
55+
color: var(--secondary-text-color);
56+
}
57+
.resources .item-title {
58+
font-weight: 100;
59+
font-size: 16sp;
60+
}
61+
.resources .item-link {
62+
font-weight: 100;
63+
font-size: 14sp;
64+
}
65+
.resources .item-link a {
66+
color: var(--secondary-text-color);
67+
}
4468
</style>
4569
<template>
4670
<iron-localstorage name="content" value="{{localstoragecontent}}"></iron-localstorage>
@@ -62,7 +86,22 @@ <h1 class="flex">{{content.title}}</h1>
6286
<div class="summary">
6387
<p>{{content.summary}}</p>
6488
</div>
65-
89+
<div class="layout vertical resources">
90+
<div>
91+
<h3>Resources</h3>
92+
</div>
93+
<div class="flex layout horizontal">
94+
<template is="dom-repeat" items="{{content.resources}}">
95+
96+
<paper-item class="flex">
97+
<paper-item-body two-line>
98+
<div class="item-title">{{item.title}}</div>
99+
<div secondary class="item-link"><a href="{{item.link}}">{{item.link}}</a></div>
100+
</paper-item-body>
101+
</paper-item>
102+
</template>
103+
</div>
104+
</div>
66105
</paper-material>
67106
<div class="playerloc">
68107
<podcast-player

bower.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"paper-tabs": "PolymerElements/paper-tabs#~1.0.1",
3030
"paper-button": "PolymerElements/paper-button#~1.0.3",
3131
"iron-ajax": "PolymerElements/iron-ajax#~1.0.3",
32-
"iron-localstorage": "PolymerElements/iron-localstorage#~1.0.4"
32+
"iron-localstorage": "PolymerElements/iron-localstorage#~1.0.4",
33+
"paper-item": "PolymerElements/paper-item#~1.0.2"
3334
},
3435
"devDependencies": {
3536
"web-component-tester": "*",

0 commit comments

Comments
 (0)