| 1 |
{{define "base"}} |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>{{template "title" .}}</title> |
| 5 |
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> |
| 6 |
{{if not .LocalJSPath}} |
| 7 |
<link href='//fonts.googleapis.com/css?family=Lato:400,900' rel='stylesheet' type='text/css'> |
| 8 |
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> |
| 9 |
{{else}} |
| 10 |
<style type="text/css"> |
| 11 |
/* Generated with https://google-webfonts-helper.herokuapp.com */ |
| 12 |
/* lato-regular - latin */ |
| 13 |
@font-face { |
| 14 |
font-family: 'Lato'; |
| 15 |
font-style: normal; |
| 16 |
font-weight: 400; |
| 17 |
src: url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.eot'); /* IE9 Compat Modes */ |
| 18 |
src: local('Lato Regular'), local('Lato-Regular'), |
| 19 |
url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ |
| 20 |
url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ |
| 21 |
url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.woff') format('woff'), /* Modern Browsers */ |
| 22 |
url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ |
| 23 |
url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.svg#Lato') format('svg'); /* Legacy iOS */ |
| 24 |
} |
| 25 |
|
| 26 |
/* lato-900 - latin */ |
| 27 |
@font-face { |
| 28 |
font-family: 'Lato'; |
| 29 |
font-style: normal; |
| 30 |
font-weight: 900; |
| 31 |
src: url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.eot'); /* IE9 Compat Modes */ |
| 32 |
src: local('Lato Black'), local('Lato-Black'), |
| 33 |
url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ |
| 34 |
url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.woff2') format('woff2'), /* Super Modern Browsers */ |
| 35 |
url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.woff') format('woff'), /* Modern Browsers */ |
| 36 |
url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.ttf') format('truetype'), /* Safari, Android, iOS */ |
| 37 |
url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.svg#Lato') format('svg'); /* Legacy iOS */ |
| 38 |
} |
| 39 |
</style> |
| 40 |
<link href="{{.LocalJSPath}}/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> |
| 41 |
{{end}} |
| 42 |
<style type="text/css"> |
| 43 |
body { |
| 44 |
margin: 0px; |
| 45 |
background: #fff; |
| 46 |
} |
| 47 |
#wrapper { |
| 48 |
min-height:100%; |
| 49 |
position:relative; |
| 50 |
} |
| 51 |
#header { |
| 52 |
position: fixed; |
| 53 |
height: 50px; |
| 54 |
width: 100%; |
| 55 |
top: 0px; |
| 56 |
background: #2980b9; |
| 57 |
border-bottom:1px solid #dedede; |
| 58 |
margin: 0px auto; |
| 59 |
padding-left: 10px; |
| 60 |
font-family: 'Lato', sans-serif; |
| 61 |
font-weight: 900; |
| 62 |
display: table; |
| 63 |
z-index: 10000; |
| 64 |
} |
| 65 |
#content { |
| 66 |
margin: 60px 1em 1em 1em; |
| 67 |
font-family: 'Lato', sans-serif; |
| 68 |
font-weight: 400; |
| 69 |
padding-bottom: 20px; |
| 70 |
} |
| 71 |
#footer { |
| 72 |
text-align: center; |
| 73 |
vertical-align: bottom; |
| 74 |
height: 20px; |
| 75 |
bottom: 0; |
| 76 |
font-family: Arial, Helvetica, sans-serif; |
| 77 |
font-size: 0.8em; |
| 78 |
} |
| 79 |
.title { |
| 80 |
text-shadow: 1px 2px 2px #2980b9, 0 0 0 #000, 1px 2px 2px #2980b9; |
| 81 |
color: rgba(255, 255, 255, 0.8); |
| 82 |
font-size: 30px; |
| 83 |
display: table-cell; |
| 84 |
vertical-align: middle; |
| 85 |
white-space: nowrap; |
| 86 |
width: 1px; |
| 87 |
} |
| 88 |
a.title { |
| 89 |
color: inherit; |
| 90 |
} |
| 91 |
.headline { |
| 92 |
color: #eee; |
| 93 |
font-size: 20px; |
| 94 |
display: table-cell; |
| 95 |
vertical-align: middle; |
| 96 |
text-align: center; |
| 97 |
} |
| 98 |
.alt tr:nth-child(even) { |
| 99 |
background-color: #F4F4F4; |
| 100 |
} |
| 101 |
.alt tr:nth-child(odd) { |
| 102 |
background-color: #FAFAFA; |
| 103 |
} |
| 104 |
a:link { |
| 105 |
color: #4078C0; |
| 106 |
text-decoration: none; |
| 107 |
} |
| 108 |
a:visited { |
| 109 |
color: #4078C0; |
| 110 |
text-decoration: none; |
| 111 |
} |
| 112 |
a:hover { |
| 113 |
color: #4078C0; |
| 114 |
text-decoration: underline; |
| 115 |
} |
| 116 |
a:active { |
| 117 |
color: #4078C0; |
| 118 |
text-decoration: underline; |
| 119 |
} |
| 120 |
</style> |
| 121 |
{{template "head" .}} |
| 122 |
</head> |
| 123 |
<body> |
| 124 |
<div id="wrapper"> |
| 125 |
<div id="header"> |
| 126 |
<div class="title"> |
| 127 |
<a href="https://github.com/etix/mirrorbits" target="_blank" style="text-decoration: none; color: inherit;">Mirrorbits <i class="fa fa-globe" style="vertical-align: middle;" aria-hidden="true"></i></a> |
| 128 |
</div> |
| 129 |
<div class="headline">{{template "headline" .}}</div> |
| 130 |
</div> |
| 131 |
<div id="content"> |
| 132 |
{{template "body" .}} |
| 133 |
</div> |
| 134 |
<div id="footer"> |
| 135 |
Mirrorbits {{version}} running on {{hostname}} |
| 136 |
</div> |
| 137 |
</div> |
| 138 |
</body> |
| 139 |
</html> |
| 140 |
{{end}} |