77			width:  100%;
88			dis play:  block;
99			position:  relative;
10+ 			font- family:  'Roboto' ,  sans-serif ;
11+ 			- webkit- font- smoothing:  antialiased;
12+ 			text- rendering:  optimizeLegibility;
1013		}
1114		.playerloc  {
1215			position :  relative;
1922			bottom :  0 ;
2023		}
2124		.episode-info  {
22- 			padding :  50px  ;
25+ 			margin :  50px  ;
26+ 			padding :  20px  ;
27+ 		}
28+ 		.episode-info  h1 {
29+ 			color :  var (--primary-text-color );
30+ 			font-size :  40px  ;
31+ 			font-weight :  100 ;
32+ 			margin-top :  10px  ;
33+ 		}
34+ 		.episode-info  h5 {
35+ 			color :  var (--secondary-text-color );
36+ 			font-weight :  100 ;
37+ 			margin-bottom :  0 ;
38+ 			margin-top :  40px  ;
39+ 		}
40+ 		.episode-coverart  {
41+ 			width :  120px  ;
42+ 			height :  120px  ;
43+ 		}
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 );
2367		}
2468	</ style > 
2569	< template > 
26- 		< iron-localstorage  name ="content " value ="{{localstoragecontent}} " autoSaveDisabled ="true "> </ iron-localstorage > 
27- 		< paper-material  class ="episode-info " elevation ="0 "> 
28- 			< h1 > {{content.title}}</ h1 > 
29- 			< p > New Episode Page</ p > 
30- 			< p > New Episode Page</ p > 
31- 			< p > New Episode Page</ p > 
32- 			< p > New Episode Page</ p > 
33- 			< p > New Episode Page</ p > 
70+ 		< iron-localstorage  name ="content " value ="{{localstoragecontent}} "> </ iron-localstorage > 
71+ 		< iron-ajax  id ="contentservice "
72+ 				auto 
73+ 				url ="http://localhost:3000/content.json "
74+ 				handle-as ="json "
75+ 				on-response ="_handleContentResponse "> </ iron-ajax > 
76+ 		< paper-material  class ="episode-info " elevation ="1 "> 
77+ 			< div  class ="titlebar layout horizontal "> 
78+ 				< div  class ="flex layout vertical "> 
79+ 					< h5 > Episode < span > {{content.episode}}</ span > </ h5 > 
80+ 					< h1  class ="flex "> {{content.title}}</ h1 > 
81+ 				</ div > 
82+ 				< div > 
83+ 					< iron-image  class ="episode-coverart "	src ="{{content.coverart}} " sizing ="contain "> </ iron-image > 
84+ 				</ div > 
85+ 			</ div > 
86+ 			< div  class ="summary "> 
87+ 				< p > {{content.summary}}</ p > 
88+ 			</ div > 
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 > 
34105		</ paper-material > 
35106		< div  class ="playerloc "> 
36107			< podcast-player 
@@ -57,6 +128,9 @@ <h1>{{content.title}}</h1>
57128			} , 
58129			_updateContent : function  ( )  { 
59130				this . content  =  this . localstoragecontent [ 0 ] ; 
131+ 			} , 
132+ 			_handleContentResponse : function  ( e ,  detail )  { 
133+ 				this . localstoragecontent  =  detail . response ; 
60134			} 
61135		} ) ; 
62136	} ) ( ) ; 
0 commit comments