aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/runtime.exs4
-rw-r--r--priv/home.html.eex3
-rw-r--r--priv/static/main.css12
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;
+}