Add basic template.

This commit is contained in:
Niels G. W. Serup 2016-08-24 12:18:33 +02:00
parent ad36a90dba
commit 4ee968df66
4 changed files with 95 additions and 0 deletions

25
template/base.html Normal file
View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>media.metanohi.name</title>
<link href="style.css" type="text/css" rel="stylesheet">
</head>
<body>
<div id="body-behind"><div></div></div>
<div id="body">
<header>
<h1><a href="/">media.metanohi.name</a></h1>
<p>
This is my media collection. I am involved in all of these
productions in some way.
</p>
<p class="signature">
<a href="http://metanohi.name/about">Niels</a>
</p>
</header>
{content}
</div>
</body>
</html>

4
template/section.html Normal file
View File

@ -0,0 +1,4 @@
<div class="video-section">
<h2><a href="{link}">{title}</a></h2>
<a href="{link}"><img src="{thumbnail}" alt="Thumbnail"></a>
</div>

4
template/showing.html Normal file
View File

@ -0,0 +1,4 @@
<div class="video-showing">
<h2>{title}</h2>
{video}
</div>

62
template/style.css Normal file
View File

@ -0,0 +1,62 @@
body {
margin: 0;
font-family: sans;
background-color: #4F08C8;
}
#body {
width: 40em;
padding: 0.5em;
margin: 0 auto;
}
/* BEGIN HACK */
#body-behind {
margin: 0 auto;
width: calc(41em + (100% - 41em) / 3);
}
#body-behind > div {
position: fixed;
top: 0;
width: calc(41em + (100% - 41em) / 3);
height: 100%;
z-index: -1;
transform: skewX(-2deg);
transform-origin: top center;
background-color: #ABC808;
}
/* END HACK */
header {
background-color: #FF00D3;
padding: 0.5em;
}
header a, header a:visited {
text-decoration: none;
color: black;
}
.video-section {
background-color: #2EE2FF;
margin-top: 1em;
padding: 0.5em;
}
.video-showing {
background-color: #FF8C00;
margin-top: 1em;
padding: 0.5em;
position: absolute;
left: calc((100% - 58em) / 2);
width: 57em;
}
p.signature {
font-style: italic;
}
p.signature:before {
content: '--';
}