diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2024-11-03 20:53:23 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2024-11-03 20:53:23 +0000 |
commit | e5d30ee4fbfc61f37f5f3b555ad12f24bcb26509 (patch) | |
tree | 102cbb360125d45438587beda6a0d4e6acc80895 | |
parent | 23d20640b866095a674870ec9d26162eb5560cae (diff) | |
download | mediasync-e5d30ee4fbfc61f37f5f3b555ad12f24bcb26509.tar mediasync-e5d30ee4fbfc61f37f5f3b555ad12f24bcb26509.tar.gz mediasync-e5d30ee4fbfc61f37f5f3b555ad12f24bcb26509.zip |
Add link to source code
-rw-r--r-- | config/runtime.exs | 4 | ||||
-rw-r--r-- | priv/home.html.eex | 3 | ||||
-rw-r--r-- | priv/static/main.css | 12 |
3 files changed, 18 insertions, 1 deletions
diff --git a/config/runtime.exs b/config/runtime.exs index 47a8a21..b679a9c 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -20,4 +20,6 @@ config :mediasync, websocket_max_frame_octets: 10_000, secret_key_base: System.fetch_env!("MEDIASYNC_SECRET_KEY_BASE"), session_encryption_salt: System.fetch_env!("MEDIASYNC_SESSION_ENCRYPTION_SALT"), - session_signing_salt: System.fetch_env!("MEDIASYNC_SESSION_SIGNING_SALT") + session_signing_salt: System.fetch_env!("MEDIASYNC_SESSION_SIGNING_SALT"), + source_url: "https://github.com/arjunsatarkar/mediasync/", + source_link_text: "[source code]" diff --git a/priv/home.html.eex b/priv/home.html.eex index d17cbb8..a12ccd8 100644 --- a/priv/home.html.eex +++ b/priv/home.html.eex @@ -35,6 +35,9 @@ <input type="submit" value="host room"> </form> + <div id="source-footer"> + <a href="<%= Application.get_env(:mediasync, :source_url) %>"><%= Application.get_env(:mediasync, :source_link_text) %></a> + </div> </body> </html> diff --git a/priv/static/main.css b/priv/static/main.css index 2a5d4b6..c3c236c 100644 --- a/priv/static/main.css +++ b/priv/static/main.css @@ -18,6 +18,14 @@ input { font-family: inherit; } +a:link { + color: lightskyblue; +} + +a:visited { + color: mediumpurple; +} + @font-face { font-family: "FontAwesomeSolid"; src: url("/static/vendored/fontawesome-free-6.6.0-web/webfonts/fa-solid-900.woff2") @@ -31,3 +39,7 @@ input { .icon-users::before { content: "\f0c0"; } + +#source-footer { + text-align: right; +} |