Add a footer

This commit is contained in:
James Mills 2020-03-26 01:01:35 +10:00
parent bcd79ba2c5
commit 7fa7a38167
No known key found for this signature in database
GPG key ID: AC4C014F1440EBD6
4 changed files with 50 additions and 16 deletions

View file

@ -166,9 +166,11 @@ func (a *App) indexHandler(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, fmt.Sprintf("/v/%s?%s", pl[0].ID, r.URL.RawQuery), 302)
} else {
ctx := &struct {
Sort string
Playing *media.Video
Playlist media.Playlist
}{
Sort: "",
Playing: &media.Video{ID: ""},
Playlist: a.Library.Playlist(),
}

File diff suppressed because one or more lines are too long

View file

@ -462,3 +462,31 @@ label span input {
}
*/
}
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background: #1e1e1e;
color: white;
text-align: center;
}
footer p {
font-size: 8px;
}
footer p a {
color: #fff;
}
footer p a {
text-decoration: underline;
color: #fff;
transition: .3s background-color;
}
footer p a:hover {
background-color: #005f5f;
}

View file

@ -20,6 +20,10 @@
<main>
{{template "content" .}}
</main>
<footer>
<p><a href="https://github.com/prologic/tube">Tube</a> is CopyRight © 2020 <a href="https://github.com/prologic">James Mills / prologic</a>. All Rights Reserved.</p>
<p>All Content herein Public Domain and User Contributed.</p>
</footer>
</body>
{{ template "scripts" . }}
</html>