1
0
Fork 0
forked from Fijxu/invidious

Add config to add custom text in the footer

Co-authored-by: Aural Glow <125497673+auralglow@users.noreply.github.com>
This commit is contained in:
syeopite 2024-03-13 14:01:20 -07:00 committed by Fijxu
parent 6acabc5bff
commit 57f8bfb965
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4
5 changed files with 30 additions and 10 deletions

View file

@ -470,7 +470,7 @@ footer a {
color: #919191; color: #919191;
} }
.footer-content #about-invidious-description > b { .footer-content #footer-custom-text > b {
font-size: 30px; font-size: 30px;
} }
@ -502,7 +502,7 @@ footer a {
} }
@media screen and (max-width: 929px) { @media screen and (max-width: 929px) {
#about-invidious-description { #footer-custom-text {
display: none; display: none;
} }
} }
@ -583,7 +583,7 @@ span > select {
color: #7c7c7c !important; color: #7c7c7c !important;
} }
.light-theme footer #about-invidious-description > b { .light-theme footer #footer-custom-text > b {
color: #565D64; color: #565D64;
} }
@ -631,7 +631,7 @@ span > select {
color: #7c7c7c; color: #7c7c7c;
} }
.no-theme footer #about-invidious-description > b { .no-theme footer #footer-custom-text > b {
color: #565D64; color: #565D64;
} }
@ -709,7 +709,7 @@ body.dark-theme {
color: #313131; color: #313131;
} }
.dark-theme .footer-content #about-invidious-description > b { .dark-theme .footer-content #footer-custom-text > b {
color: #ccc; color: #ccc;
} }
@ -773,7 +773,7 @@ body.dark-theme {
color: #313131; color: #313131;
} }
.no-theme footer #about-invidious-description > b { .no-theme footer #footer-custom-text > b {
color: #ccc; color: #ccc;
} }
} }

View file

@ -404,6 +404,18 @@ jobs:
## ##
#banner: #banner:
##
## custom text displayed at the bottom of every page within Invidious' footer. This can
## used for instance announcements, e.g
##
## When unset Invidious defaults to some text that describes what Invidious is. See
## localization key default_invidious_footer_text
##
## Accepted values: any string. HTML is accepted.
## Default: <none>
##
#footer:
## ##
## Source code URL. If your instance is running a modified source ## Source code URL. If your instance is running a modified source
## code, you MUST publish it somewhere and set this option. ## code, you MUST publish it somewhere and set this option.
@ -419,7 +431,8 @@ jobs:
## Accepted values: Email ## Accepted values: Email
## Default: <none> ## Default: <none>
## ##
# instance_maintainer_email: # instance_maintainer_email:
# ----------------------------- # -----------------------------
# Miscellaneous # Miscellaneous

View file

@ -462,7 +462,7 @@
"next_steps_error_message_refresh": "Refresh", "next_steps_error_message_refresh": "Refresh",
"next_steps_error_message_go_to_youtube": "Go to YouTube", "next_steps_error_message_go_to_youtube": "Go to YouTube",
"footer_invidious_project_description": "A free and open source frontend for Youtube that that respects your privacy! Now you can watch videos (ad-free), subscribe to channels, create playlist and much more all without the prying eyes of Google!", "default_invidious_footer_text": "A free and open source frontend for Youtube that that respects your privacy! Now you can watch videos (ad-free), subscribe to channels, create playlist and much more all without the prying eyes of Google!",
"footer_navigation_section_header": "Navigation", "footer_navigation_section_header": "Navigation",
"footer_home_link": "Home", "footer_home_link": "Home",
"footer_project_information_section_header": "Invidious", "footer_project_information_section_header": "Invidious",

View file

@ -106,6 +106,8 @@ class Config
property cache_annotations : Bool = false property cache_annotations : Bool = false
# Optional banner to be displayed along top of page for announcements, etc. # Optional banner to be displayed along top of page for announcements, etc.
property banner : String? = nil property banner : String? = nil
# Optional footer text to be displayed within Invidious' footer. Can be used for maintainer contact info, etc.
property footer : String? = nil
# Enables 'Strict-Transport-Security'. Ensure that `domain` and all subdomains are served securely # Enables 'Strict-Transport-Security'. Ensure that `domain` and all subdomains are served securely
property hsts : Bool? = true property hsts : Bool? = true
# Disable proxying server-wide: options: 'dash', 'livestreams', 'downloads', 'local' # Disable proxying server-wide: options: 'dash', 'livestreams', 'downloads', 'local'

View file

@ -139,9 +139,14 @@
<div class="pure-u-1 pure-u-md-2-24"></div> <div class="pure-u-1 pure-u-md-2-24"></div>
<div class="h-box pure-u-1 pure-u-md-20-24" id="footer-content-container"> <div class="h-box pure-u-1 pure-u-md-20-24" id="footer-content-container">
<div class="pure-u-1 footer-content"> <div class="pure-u-1 footer-content">
<div class="footer-section pure-u-1-4" id="about-invidious-description"> <div class="footer-section pure-u-1-4" id="footer-custom-text">
<b>Invidious</b> <b>Invidious</b>
<p><%=translate(locale, "footer_invidious_project_description")%></p> <% if CONFIG.footer %>
<p><%=CONFIG.footer%></p>
<% else %>
<p><%=translate(locale, "default_invidious_footer_text")%></p>
<% end %>
</div> </div>
<div class="footer-section"> <div class="footer-section">
<b class="footer-section-header"><%= translate(locale, "footer_navigation_section_header")%></b> <b class="footer-section-header"><%= translate(locale, "footer_navigation_section_header")%></b>