commit a787f11f9ee4995a63138319a8d83f88f20cc7ac Author: Niels Serup Date: Tue Jul 5 21:20:55 2011 +0200 Works. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..71715a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +*~ +*#*# +*.#* +.cache/ +/.old/ +/.local/ +/static/*.css +/static/*.js +/template.html +log.mege +/mege/ +apache-config +.debug diff --git a/extra/favicon.ico b/extra/favicon.ico new file mode 100644 index 0000000..74ea60e Binary files /dev/null and b/extra/favicon.ico differ diff --git a/extra/favicon.png b/extra/favicon.png new file mode 100644 index 0000000..88d3807 Binary files /dev/null and b/extra/favicon.png differ diff --git a/extra/robots.txt b/extra/robots.txt new file mode 100644 index 0000000..2f698a1 --- /dev/null +++ b/extra/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /static diff --git a/nohi.wsgi b/nohi.wsgi new file mode 100644 index 0000000..d43060f --- /dev/null +++ b/nohi.wsgi @@ -0,0 +1,12 @@ +"""WSGI interface""" +import sys +import os +_absfile = os.path.abspath(__file__) +_filedir = os.path.dirname(_absfile) +try: + import mege.server as server +except ImportError: + sys.path.insert(0, os.path.join(_filedir, 'mege')) + import mege.server as server +os.chdir(_filedir) +application = server.MegeApplication() diff --git a/prestatic/screen.css b/prestatic/screen.css new file mode 100644 index 0000000..424e402 --- /dev/null +++ b/prestatic/screen.css @@ -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; +} \ No newline at end of file diff --git a/prestatic/template.html b/prestatic/template.html new file mode 100644 index 0000000..6d7444c --- /dev/null +++ b/prestatic/template.html @@ -0,0 +1,66 @@ + + + + + metanohi: <!--@eval +print(page.title, end='')--> + + + + + + + + + + + + + + ' /> + + + + + + + + + + + + + + + +
+ +
+ + + diff --git a/rules.mege b/rules.mege new file mode 100644 index 0000000..9867c8c --- /dev/null +++ b/rules.mege @@ -0,0 +1,6 @@ +wsgi nohi.wsgi +template template.html + +# Convert the static parts of HTML, CSS, and JS files +convert prestatic/*.{css,js} static/ +convert prestatic/template.html . diff --git a/site/index.org b/site/index.org new file mode 100644 index 0000000..1487366 --- /dev/null +++ b/site/index.org @@ -0,0 +1,4 @@ +#+TITLE: Start + +* Hej! + diff --git a/static/metanohi-logo.png b/static/metanohi-logo.png new file mode 100644 index 0000000..cbe6717 Binary files /dev/null and b/static/metanohi-logo.png differ diff --git a/static/metanohi-logo.svg b/static/metanohi-logo.svg new file mode 100644 index 0000000..e2c10b2 --- /dev/null +++ b/static/metanohi-logo.svg @@ -0,0 +1,319 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/snails.png b/static/snails.png new file mode 100644 index 0000000..67d1957 Binary files /dev/null and b/static/snails.png differ