-
-
Notifications
You must be signed in to change notification settings - Fork 571
/
test-news-newer.html
45 lines (41 loc) · 1.06 KB
/
test-news-newer.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
<div id="news" hidden>
<article class="news-entry" id="news-3000-aliens">
<h1>Extraterrestrial Life</h1>
<time datetime="3000-13-17">3000-13-17</time>
Aliens have a round head. I mean, arrived.
</article>
<article class="news-entry" id="news-2100-js">
<h1>The Legacy of JavaScript</h1>
<time datetime="2100-09-21">2100-09-21</time>
JavaScript still exists, but hey look on the bright side, at least we don't have to write it anymore.
Btw the JS in JS Paint no longer stands for JavaScript, it's Jarvis's Spectre Paint,
named after the AI that helps maintain this project.
</article>
<style>
#news {
background: black;
color: aqua;
}
.news-entry {
background: rgba(0, 255, 255, 0.2);
color: aqua;
border-radius: 5px;
border: 1px solid rgba(0, 255, 255, 0.5);
padding: 10px;
max-width: 30em;
margin: 10px;
}
.news-entry>h1 {
font-size: 1.3em;
margin: 0;
margin-bottom: 0.5em;
}
.news-entry>time {
font-size: 1.3em;
color: rgba(0, 255, 255, 0.5);
}
.news-entry .new {
color: lime;
}
</style>
</div>