You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<title>NEWS</title>
<meta charset="utf-8">
<style type="text/css">
body {
font-family: "CMU Serif";
font-size: 13pt;
line-height: 1;
}
h1 {
font-variant: small-caps;
}
img {
max-width: 100%;
}
a {
text-decoration: none;
color: inherit;
}
#columns {
column-count: 4;
text-align: justify;
clear: both;
}
#masthead {
font-family: "Fold";
font-weight: 400;
text-transform: uppercase;
font-size: 12vw;
text-align: center;
margin: 0;
}
#edition {
border-top: 2px solid black;
border-bottom: 2px solid black;
padding: 5px;
clear: both;
font-variant: small-caps;
}
#motto {
float: left;
width: 40%;
height: 1em;
}
#date {
float: right;
width: 40%;
height: 1em;
text-align: right;
}
.clearfloats {
clear: both;
}
.entry {
margin-bottom: 1em;
}
.entry .title{
font-weight: bold;
font-variant: small-caps;
text-align: justify;
}
.entry .source{
font-style: italic;
}
.entry .barcode{
text-align: left;
}
.entry .barcode svg {
width: 100%;
height: 7mm;
}
.entry .summary{
text-align: justify;
hyphens: auto;
}
</style>
<body>
<h1 id="masthead">Yesterday's Tomorrows</h1>
<div id="edition">
<div id="motto">Semper Contemporarius</div>
<div id="date"> DATE_HERE</div>
<div class="clearfloats"></div>
</div>
<div id="columns">
% for entry in news:
<div class="entry">
% if entry.img != " ":
<img src="${entry.img}" alt="img" />
% endif
<div class="title">${entry.title}</div>
<div class="source">${entry.source}</div>
<div class="summary">${entry.summary}</div>
<div class="barcode">${entry.svg}</div>
</div>
% endfor
</div>
<div id="email">
<h2>Post</h2>
<table>
% for msg in inbox:
<tr>
<td>${msg.fromstr}</td>
<td>${msg.subject}</td><td>${msg.date}</td>
</tr>
<tr><td> </td><td>READ</td><td>DELETE</td><td>MARK AS SPAM</td></tr>
<tr><td> </td><td>${msg.r_bc}</td><td>${msg.d_bc}</td><td>${msg.sp_bc}</td></tr>
% endfor
</table>
</div>
</body>
</html>