11 files changed, 6 insertions(+), 74 deletions(-)
M dir.tmpl
M main.go
D static/Adelaiide.png
D static/Arory.png
D static/Elliott Strawser.png
D static/Lovesik.png
D static/No Coda.png
D static/bold-logo.png
D static/favicon.png
D static/logo.png
D static/main.css
M dir.tmpl => dir.tmpl +6 -6
@@ 3,23 3,23 @@
<head>
<meta charset='utf-8'>
<title>evids</title>
- <link rel='stylesheet' href='/static/main.css'>
- <link rel='shortcut icon' href='/static/favicon.png'>
+ <link rel='stylesheet' href='/main.css'>
+ <link rel='shortcut icon' href='/favicon.png'>
</head>
<body>
<header>
<span><a href="/">
<img
id="evids"
- src="/static/logo.png"
+ src="/logo.png"
alt="EVIDS"
- onmouseover=evids.src='/static/bold-logo.png'
- onmouseout=evids.src='/static/logo.png'
+ onmouseover=evids.src='/bold-logo.png'
+ onmouseout=evids.src='/logo.png'
></img>
</a></span>
{{ if .Artist }}
<span class="artist"><a href="{{.Artist}}">
- <img class="artist" src="/static{{.Artist}}.png" alt="{{.Artist}}">
+ <img class="artist" src="{{.Artist}}/logo.png" alt="{{.Artist}}">
</a></span>
{{ end }}
</header>
M main.go => main.go +0 -5
@@ 98,7 98,6 @@ func (app *application) dir(w http.ResponseWriter, r *http.Request) {
func main() {
addr := flag.String("addr", ":4000", "HTTP network address")
- ui := flag.String("ui", "/etc/evids", "Path to css and ui files")
content := flag.String("path", "/var/www", "Path to serve")
flag.Parse()
@@ 114,10 113,6 @@ func main() {
}
mux := http.NewServeMux()
-
- static := http.FileServer(http.Dir(*ui))
- mux.Handle("/static/", http.StripPrefix("/static", static))
-
mux.HandleFunc("/", app.dir)
infoLog.Printf("starting server on %s", *addr)
D static/Adelaiide.png => static/Adelaiide.png +0 -0
D static/Arory.png => static/Arory.png +0 -0
D static/Elliott Strawser.png => static/Elliott Strawser.png +0 -0
D static/Lovesik.png => static/Lovesik.png +0 -0
D static/No Coda.png => static/No Coda.png +0 -0
D static/bold-logo.png => static/bold-logo.png +0 -0
D static/favicon.png => static/favicon.png +0 -0
D static/logo.png => static/logo.png +0 -0
D static/main.css => static/main.css +0 -63
@@ 1,63 0,0 @@
-*:root {
- font-size: 15px;
-}
-::selection {
- color: white;
- background-color: #327345;
-}
-
-img {
- image-rendering: pixelated;
- height: 100%;
-}
-.artist {
- float: right;
-}
-header > * {
- height: calc(2rem + 2vw);
- display: inline-block;
- margin: 0;
- border-width: 3px;
- border-style: inset;
-}
-
-body {
- font-family: monospace;
- background-color: #327345;
- margin: 0;
- padding: 0 3vw;
-}
-body > * {
- margin: 1rem auto;
- padding: 2vw;
- max-width: 80ch;
- border-width: 4px;
- border-style: outset;
- background-color: #ccc;
-}
-
-a {
- text-decoration: none;
- color: unset;
-}
-ol {
- font-weight: bold;
- margin: 0;
- padding: 0.8rem;
- display: flex;
- list-style-type: none;
-}
-ol.entry:hover {
- text-decoration: underline;
- color: white;
- background-color: #327345;
-}
-ol.heading {
- color: #327345;
-}
-li {
- flex: 1;
-}
-li.name {
- flex: 1.5;
-}