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.

105 lines
2.2 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 .title{
font-weight: bold;
font-variant: small-caps;
text-align: justify;
}
.entry .source{
font-style: italic;
}
.entry .barcode{}
.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.dbhash}</div>
</div>
% endfor
</div>
<div id="email">
<h2>Post</h2>
<table>
% for msg in inbox:
<tr>
<td>${msg["fromname"]} &lt;${msg["fromaddr"]}&gt;</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>BC-READ</td><td>BC-DELETE</td><td>BC-MARK AS SPAM</td></tr>
% endfor
</table>
</div>
</body>
</html>