This commit is contained in:
Flummi
2016-08-25 21:44:40 +02:00
parent 8f708d25a3
commit 54dd0968b1
3 changed files with 64 additions and 1 deletions

33
s/test.css Normal file
View File

@ -0,0 +1,33 @@
body {
width: 100%;
margin: 1em auto 3em auto;
background-color: #262626;
color: #fff;
font-family: Monospace;
}
.body {
width: 90%;
margin: 1em auto 3em auto;
background-color: #262626;
color: #fff;
font-family: Monospace;
}
.thumb {
border: 0;
margin: 0 8px 8px 0;
float: left;
border: 2px solid #4c4a4a;
}
.thumb:hover {
opacity: 0.7;
}
.clear {
clear: both;
padding: 1em 0;
}
a {
color: #9f0;
}
a:hover {
color: #74c100;
}

16
s/test.tpl.html Normal file
View File

@ -0,0 +1,16 @@
<!DOCTYPE blah>
<html>
<head>
<title>f0ck me!</title>
<link rel="icon" type="image/gif" href="./s/favicon.gif" />
<link rel="stylesheet" type="text/css" href="./s/test.css">
</head>
<div class="body">
{% for item in items %}
<a href="./{{ item.id }}" title="{{ item.mime }}"><img class="thumb" src="./t/{{ item.id }}.png" /></a>
{% endfor %}
<div class="clear"></div>
</div>
</body>
</html>