Add a footer
This commit is contained in:
parent
bcd79ba2c5
commit
7fa7a38167
4 changed files with 50 additions and 16 deletions
|
@ -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)
|
http.Redirect(w, r, fmt.Sprintf("/v/%s?%s", pl[0].ID, r.URL.RawQuery), 302)
|
||||||
} else {
|
} else {
|
||||||
ctx := &struct {
|
ctx := &struct {
|
||||||
|
Sort string
|
||||||
Playing *media.Video
|
Playing *media.Video
|
||||||
Playlist media.Playlist
|
Playlist media.Playlist
|
||||||
}{
|
}{
|
||||||
|
Sort: "",
|
||||||
Playing: &media.Video{ID: ""},
|
Playing: &media.Video{ID: ""},
|
||||||
Playlist: a.Library.Playlist(),
|
Playlist: a.Library.Playlist(),
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||||
|
}
|
||||||
|
|
|
@ -20,6 +20,10 @@
|
||||||
<main>
|
<main>
|
||||||
{{template "content" .}}
|
{{template "content" .}}
|
||||||
</main>
|
</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>
|
</body>
|
||||||
{{ template "scripts" . }}
|
{{ template "scripts" . }}
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue