]> git.plutz.net Git - confetti/blob - templates/frame.html.sh
static site menu
[confetti] / templates / frame.html.sh
1 # Copyright 2014 Paul Hänsch
2 #
3 # This file is part of Confetti.
4
5 # Confetti is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # Confetti is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Affero General Public License for more details.
14
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
17
18 cat <<EOF
19 <!Doctype HTML>
20
21 <html>
22   <head>
23     <title>$($PAGE title)</title>
24     <style type="text/css">
25     <!--
26 body {
27   background: #EEE;
28   margin: 0;
29   padding: 2.5em 0 0 0;
30 }
31 .NAVIGATION {
32   position: fixed;
33   top: 0;
34   display: inline-block;
35   height: 1.5em;
36   border-style: none solid solid solid;
37   border-width: 0 1px 1px 1px;
38   border-radius: 0 0 4px 4px;
39   margin-top: 0;
40   margin-left: 3%;
41   padding: .5em 1ex .25em 1ex;
42   background: #FFF;
43 }
44 .NAVIGATION a {
45   color: #008;
46   border-style: solid;
47   border-width: 1px;
48   border-color: #BBF;
49   margin: .5em .5ex .25em .5ex;
50   padding: .2em 3ex .2em 3ex;
51   background: #EFF;
52 }
53 .NAVIGATION a:hover {
54   border-width: 2px 1px 2px 1px;
55   background: #F3FFFF;
56 }
57
58
59     $(. $PAGE css)
60     -->
61     </style>
62   </head>
63   <body>
64     <div class="NAVIGATION">
65       $(NAVIGATION |sed -r 's:^([^ ]+) (.+)$:<a href="\1">\2</a>:g')
66     </div>
67     <div class="MAIN">
68       $(. $PAGE body)
69     </div>
70   </body>
71 </html>
72 EOF
73
74 # vi:set filetype=html: