1
- import '@polymer/iron-icon' ;
2
- import '@polymer/paper-button' ;
3
- import { html , PolymerElement } from '@polymer/polymer' ;
4
- import { ReduxMixin } from '../mixins/redux-mixin' ;
1
+ import { customElement , html , css } from 'lit-element' ;
5
2
import { uiActions } from '../redux/actions' ;
6
- import './hoverboard-icons' ;
7
- import './shared-animations' ;
8
-
9
- class AboutBlock extends ReduxMixin ( PolymerElement ) {
10
- static get template ( ) {
11
- return html `
12
- < style include ="shared-styles flex flex-alignment flex-reverse ">
13
- : host {
14
- dis play: block;
15
- }
16
-
3
+ import { ThemedElement } from './themed-element' ;
4
+
5
+ @customElement ( 'about-block' )
6
+ export class AboutBlock extends ThemedElement {
7
+ static get styles ( ) {
8
+ return [
9
+ ...super . styles ,
10
+ css `
17
11
.container {
18
12
padding-top: 64px;
19
13
}
@@ -61,8 +55,12 @@ class AboutBlock extends ReduxMixin(PolymerElement) {
61
55
font-size: 56px;
62
56
}
63
57
}
64
- </ style >
58
+ ` ,
59
+ ] ;
60
+ }
65
61
62
+ render ( ) {
63
+ return html `
66
64
< div class ="container ">
67
65
< div class ="content ">
68
66
< div >
@@ -86,7 +84,7 @@ class AboutBlock extends ReduxMixin(PolymerElement) {
86
84
< p > {$ aboutBlock.callToAction.howItWas.description $}</ p >
87
85
< paper-button
88
86
class ="animated icon-right "
89
- on- click ="_playVideo "
87
+ @ click ="${ this . playVideo } "
90
88
ga-on ="click "
91
89
ga-event-category ="video "
92
90
ga-event-action ="watch "
@@ -139,11 +137,7 @@ class AboutBlock extends ReduxMixin(PolymerElement) {
139
137
` ;
140
138
}
141
139
142
- static get is ( ) {
143
- return 'about-block' ;
144
- }
145
-
146
- _playVideo ( ) {
140
+ private playVideo ( ) {
147
141
uiActions . toggleVideoDialog ( {
148
142
title : '{$ aboutBlock.callToAction.howItWas.title $}' ,
149
143
youtubeId : '{$ aboutBlock.callToAction.howItWas.youtubeId $}' ,
@@ -152,5 +146,3 @@ class AboutBlock extends ReduxMixin(PolymerElement) {
152
146
} ) ;
153
147
}
154
148
}
155
-
156
- window . customElements . define ( AboutBlock . is , AboutBlock ) ;
0 commit comments