Works.
This commit is contained in:
137
prestatic/screen.css
Normal file
137
prestatic/screen.css
Normal file
@@ -0,0 +1,137 @@
|
||||
/*@preval
|
||||
page_bg = '#e8efef'
|
||||
*/
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
/*@preval
|
||||
print(' background-color: ' + page_bg + ';')
|
||||
*/
|
||||
font-family: 'Dejavu Sans', 'Nimbus Sans', Helvetica, Arial, Verdana,
|
||||
sans-serif;
|
||||
font-size: 12px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#minilogo {
|
||||
color: #008000;
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
right: 4px;
|
||||
font-family: Inconsolata, 'Dejavu Sans Mono', Consolas, 'Lucida Console',
|
||||
Monaco, mono;
|
||||
font-size: 20px;
|
||||
background-color: #39ffff;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
#menu {
|
||||
background-color: #191919;
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#menulinks {
|
||||
/*@preval
|
||||
print(' background-color: ' + page_bg + ';')
|
||||
*/
|
||||
display: inline-block;
|
||||
padding: 2px 0 2px 16px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
#menulinks li {
|
||||
display: inline;
|
||||
list-style: none;
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
#menulinks a, #menulinks span {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#menulinks li a:link, #menulinks li a:visited {
|
||||
color: #243300;
|
||||
}
|
||||
|
||||
#menulinks li a:hover {
|
||||
color: #425dff;
|
||||
}
|
||||
|
||||
#menulinks li.current span {
|
||||
color: #2433ff;
|
||||
}
|
||||
|
||||
#body {
|
||||
width: 750px;
|
||||
margin: 0 auto;
|
||||
padding: 5px;
|
||||
background-color: #e3e3e3;
|
||||
}
|
||||
|
||||
#body.full {
|
||||
margin: 0 7px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#logo {
|
||||
margin-top: 10px;
|
||||
background: #111111;
|
||||
}
|
||||
|
||||
#logo a {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
padding-top: 40px;
|
||||
width: 800px;
|
||||
height: 99px;
|
||||
/*@preval
|
||||
print(' background: ' + page_bg +
|
||||
" url('/static/metanohi-logo.png') no-repeat center;")
|
||||
*/
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:link, a:visited {
|
||||
color: #004a7f;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #200cff;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: 'Dejavu Serif', FreeSerif, 'Nimbus Roman', Georgia, serif;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
66
prestatic/template.html
Normal file
66
prestatic/template.html
Normal file
@@ -0,0 +1,66 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
|
||||
'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
|
||||
<html version='-//W3C//DTD XHTML 1.1//EN'
|
||||
xmlns='http://www.w3.org/1999/xhtml'
|
||||
xml:lang='en'
|
||||
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
|
||||
xsi:schemaLocation='http://www.w3.org/1999/xhtml
|
||||
http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd'>
|
||||
<head>
|
||||
<title>metanohi: <!--@eval
|
||||
print(page.title, end='')--></title>
|
||||
<meta name='author' content='Niels Serup' />
|
||||
<meta name='description'
|
||||
content='This is the personal website of Niels Serup. It hosts
|
||||
projects of varying importance.' />
|
||||
<meta name='keywords'
|
||||
content='programming, hacking, nqpz, portfolio' />
|
||||
<meta name='generator' content='{generator}' />
|
||||
<link rel='schema.DCTERMS' href='http://purl.org/dc/terms/' />
|
||||
<meta name='DCTERMS.title' content='{title}' />
|
||||
<meta name='DCTERMS.description' content='{description}' />
|
||||
<meta name='DCTERMS.creator' content='Niels Serup' />
|
||||
<meta name='DCTERMS.format' content='application/xhtml+xml' />
|
||||
<meta name='DCTERMS.created' content='{created}' />
|
||||
<meta name='DCTERMS.modified' content='{modified}' />
|
||||
<meta name='DCTERMS.language' content='en' />
|
||||
<meta name='DCTERMS.isPartOf' content='http://metanohi.org/' />
|
||||
<meta name='DCTERMS.isVersionOf' content='<!--@eval print(page.core_url, end='')-->' />
|
||||
<meta name='DCTERMS.audience' content='software developers' />
|
||||
<meta name='DCTERMS.audience' content='hackers' />
|
||||
<meta name='DCTERMS.audience' content='individuals' />
|
||||
<!--@eval
|
||||
if page.licenses:
|
||||
for x in page.licenses:
|
||||
print("""<link rel='copyright' href='{x.url}' />
|
||||
<meta name='DCTERMS.license' content='{x.url}' />""").format(x=x)-->
|
||||
<meta name='robots' content='ALL' />
|
||||
<link rel='icon' type='image/png' href='/favicon.png' />
|
||||
<link rel='stylesheet' type='text/css' media='screen, tv'
|
||||
href='/static/screen.css' />
|
||||
<link rel='stylesheet' type='text/css' media='print'
|
||||
href='/static/print.css' />
|
||||
<link rel='stylesheet' type='text/css' media='tty'
|
||||
href='/static/tty.css' />
|
||||
<link rel='stylesheet' type='text/css' media='handheld'
|
||||
href='/static/handheld.css' />
|
||||
<script type='text/javascript' src='/static/basics.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
<a id='minilogo' href='/'>metanohi</a>
|
||||
<div id='menu'>
|
||||
<ul id='menulinks'>
|
||||
<!--@preval
|
||||
for x in('projects', 'writings', 'films', 'about'):
|
||||
print(' ' * 14 + "<li><a href='/{x}/'>{x}</a></li>".format(x=x))-->
|
||||
</ul>
|
||||
</div>
|
||||
<div id='body' class='full'>
|
||||
<!--@eval print(page.body)-->
|
||||
</div>
|
||||
<div id='logo'>
|
||||
<a href='/'></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user