-
Notifications
You must be signed in to change notification settings - Fork 1
/
polymerday-twitter-timeline.html
91 lines (85 loc) · 2.33 KB
/
polymerday-twitter-timeline.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-icon/iron-icon.html">
<link rel="import" href="../iron-icons/social-icons.html">
<link rel="import" href="../iron-icons/iron-icons.html">
<link rel="import" href="widget-import.html">
<!--
`polymerday-twitter-timeline`
Example:
```html
<polymerday-twitter-timeline
lang="es"
height="650"
link-color="#a0b60d"
widget-id="..."></polymerday-twitter-timeline>
```
@demo demo/index.html
-->
<dom-module id="polymerday-twitter-timeline">
<template>
<style>
:host {
display: block;
font-family: Roboto Condensed, sans-serif;
text-rendering: optimizeLegibility;
}
.wrapper {
background-color: white;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}
.title {
color: #2C5EA5;
font-size: 24px;
padding: 3% 0 0 3%;
font-weight: 100;
margin: 0%;
}
.subtitle {
color: #616161;
font-size: 16px;
padding: 0 0 0 3%;
font-weight: 100;
}
.action {
display: flex;
justify-content: space-between;
align-items: center;
padding-left: 3%;
padding-right: 3%;
}
.counter {
display: flex;
justify-content: space-between;
align-items: center;
text-align: right;
}
.count-number{
color: #616161;
font-size: 14px;
padding-left: 10%;
font-weight: 100;
}
iron-icon {
width: 24px;
height: 24px;
opacity: 0.5;
}
</style>
<div class="wrapper" hidden$="{{_hide}}">
<p class="title">Polymer Day on Twitter</p>
<p class="subtitle">Use #PolymerDay or @PolymerDay so that you can show up here</p>
<div class="action">
<a href="https://twitter.com/intent/tweet?hashtags=PolymerDay&text=Talking about...&via=PolymerDay"
target="_blank" style="color: inherit;">
<iron-icon class="share" icon="social:share"></iron-icon>
</a>
<div class="counter">
<iron-icon icon="icons:question-answer"></iron-icon>
<p class="count-number">[[tweetCount]]</p>
</div>
</div>
<div id="timeline"></div>
</div>
</template>
<script src="polymerday-twitter-timeline.js"></script>
</dom-module>