forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
live-blog.amp.html
247 lines (213 loc) · 6.93 KB
/
live-blog.amp.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<title>Lorem Ipsum | PublisherName</title>
<link rel="canonical" href="amps.html" >
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<link href='https://fonts.googleapis.com/css?family=Georgia|Open+Sans|Roboto' rel='stylesheet' type='text/css'>
<style amp-custom>
body {
margin: 0;
font-family: 'Georgia', Serif;
}
.brand-logo {
font-family: 'Open Sans';
}
.ad-container {
display: flex;
justify-content: center;
}
.content-container p {
line-height: 24px;
}
body > header {
background-color: #ff4464;
width: 100%;
}
.headline a {
color: black;
text-decoration: none;
}
header,
.headline,
.article-body {
padding: 15px;
}
figure {
margin: 0;
}
figcaption {
color: #6f757a;
padding: 15px 0;
font-size: .9em;
}
.author {
display: flex;
align-items: center;
background: #f4f4f4;
padding: 0 15px;
font-size: .8em;
border: solid #dcdcdc;
border-width: 1px 0;
}
.header-time {
color: #a8a3ae;
font-family: 'Roboto';
font-size: 12px;
}
.author p {
margin: 5px;
}
.byline {
font-family: 'Roboto';
display: inline-block;
}
.byline p {
line-height: normal;
}
.byline .brand {
color: #6f757a;
}
.standfirst {
color: #6f757a;
}
.mailto {
text-decoration: none;
}
#author-avatar {
margin: 10px;
border: 5px solid #fff;
width: 50px;
height: 50px;
border-radius: 50%;
}
h1 {
margin: 5px 0;
font-weight: normal;
}
footer {
display: flex;
align-items: center;
justify-content: center;
height: 226px;
background: #f4f4f4;
}
hr {
margin: 0;
}
amp-img {
background-color: #f4f4f4;
}
.slot-fallback {
padding: 16px;
background: yellow;
}
#live-list-update-button {
position: fixed;
top: 10px;
left: 50%;
transform: translateX(-50%);
}
.button {
border: none;
border-radius: 2px;
color: #fafafa;
height: 26px;
min-width: 32px;
padding: 0 16px;
margin: 0 16px;
text-transform: uppercase;
letter-spacing: 0;
cursor: pointer;
vertical-align: middle;
line-height: 26px;
text-align: center;
background: #3f51b5;
}
.amp-live-list-item {
border: 1px solid #dcdcdc;
border-width: 1px 0 0;
}
.social-box {
text-align: right;
margin: 10px 0;
}
amp-live-list > [update] {
display: none;
}
</style>
<script custom-element="amp-social-share" src="https://cdn.ampproject.org/v0/amp-social-share-0.1.js" async></script>
<script async custom-element="amp-live-list" src="https://cdn.ampproject.org/v0/amp-live-list-0.1.js"></script>
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<script async src="https://cdn.ampproject.org/v0.js"></script>
</head>
<body>
<header>
<div class="brand-logo">
PublisherLogo
</div>
</header>
<main role="main">
<article>
<div class="content-container">
<header>
<h1 itemprop="headline">Lorem Ipsum</h1>
<time class="header-time" itemprop="datePublished"
datetime="2015-09-14 13:00">September 14, 2015</time>
<p class="standfirst">
Fusce pretium tempor justo, vitae consequat dolor maximus eget.
</p>
</header>
<div class="article-body" itemprop="articleBody">
<amp-live-list
layout="container"
data-poll-interval="15000"
data-max-items-per-page="5"
id="live-blog-1">
<button id="live-list-update-button" update class="button"
on="tap:live-blog-1.update">You have updates</button>
<div items>
<div id="live-blog-item-1" data-sort-time="1466669033418">
<h3 class="headline">
<a href="#live-blog-item-1">Bacon ipsum dolor amet</a>
</h3>
<div class="author">
<div class="byline">
<p>
by <span itemscope itemtype="http://schema.org/Person"
itemprop="author"><b>Lorem Ipsum</b>
<a class="mailto" href="mailto:lorem.ipsum@">
lorem.ipsum@</a></span>
</p>
<p class="brand">PublisherName News Reporter<p>
<p><span itemscope itemtype="http://schema.org/Date"
itemprop="Date">Thu Jun 23 2016 08:10:55<span></p>
</div>
</div>
<div class="article-body">
Bacon ipsum dolor amet nostrud adipisicing pancetta beef ribs commodo swine porchetta esse ad kielbasa. Culpa aute prosciutto esse turkey tempor. Sunt pastrami t-bone short ribs turkey in sint ground round elit pork chop venison andouille meatloaf turducken. Cillum pancetta do, shankle chuck pariatur sirloin spare ribs eu cupim kevin sausage filet mignon in. Bacon aliqua flank aute nostrud. Sausage shank tail meatball, culpa ut consequat tongue sunt tempor occaecat jerky velit mollit bacon. Elit meatball andouille tri-tip, in laboris corned beef shank adipisicing qui.
</div>
<amp-img src="https://baconmockup.com/200/200"
layout="responsive"
height="300" width="350">
</amp-img>
<div class="social-box">
<amp-social-share type="facebook"
data-param-text="Hello world"
data-param-href="https://example.com/?ref=URL"
data-param-app_id="145634995501895"></amp-social-share>
<amp-social-share type="twitter"></amp-social-share>
</div>
</div>
</div>
</amp-live-list>
</div>
</div>
</article>
</main>
<footer>
<div class="brand-logo">PublisherLogo</div>
</footer>
</body>
</html>