Browse Source

Add basic template.

master
Niels G. W. Serup 5 years ago
parent
commit
4ee968df66
  1. 25
      template/base.html
  2. 4
      template/section.html
  3. 4
      template/showing.html
  4. 62
      template/style.css

25
template/base.html

@ -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

@ -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

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

62
template/style.css

@ -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: '--';
}
Loading…
Cancel
Save