diff options
author | Nick White <git@njw.me.uk> | 2010-07-31 21:27:13 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-07-31 21:27:13 +0100 |
commit | c9757c5715a67f433eeb0d8cfaaf38607a7db73f (patch) | |
tree | 63f5c28be60393cae872632a08c59df255e8d07b /web/makepage.sh | |
parent | 1ca9055590b1e6953c3ccc6f92a6ce889caa6c56 (diff) |
Add draft webpage
Diffstat (limited to 'web/makepage.sh')
-rw-r--r-- | web/makepage.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/web/makepage.sh b/web/makepage.sh new file mode 100644 index 0000000..b2ad2ce --- /dev/null +++ b/web/makepage.sh @@ -0,0 +1,38 @@ +#!/bin/sh + +test $# -ne 2 && echo "usage: $0 title doap" && exit 1 + +title="$1" + +cat <<- _EOF_ +<!DOCTYPE html><html><head> +<style type="text/css"> +body { font-family: sans-serif; max-width: 75%; margin: auto; + background: url(small.png) no-repeat 86% 2px; } +h1 { font-size: 1.6em; text-align: center; margin-bottom: 0.2em; } +h2 { font-size: 1.2em; border-bottom: thin solid black; margin-top: 0.1em; } +h3 { border: thin solid black; margin: auto; background: #cd2f2f; + max-width: 15em; text-align: center; padding: 0.2em; margin-bottom: 0.3em; } +h3:hover { background: #ff9657; } +h3 a { color: black; text-decoration: none } +h3 a:hover { text-decoration: underline } +img { display: block; margin: auto; } +</style> +<link rel="alternate" type="text/turtle" title="rdf" href="doap.ttl" /> +<title>$title</title> +</head><body> +_EOF_ + +sh web/doapheader.sh "$2" | smu + +echo "![screenshot of $title](screen.png)"|smu + +sh web/doapbutton.sh "$2" | smu + +tail -n 12 < README | smu # history + +echo "- - -"|smu + +sh web/doapfooter.sh "$2" |smu + +echo "</body></html>" |