commit 5b07142dc84ec3743aec5d74af3b35eca3ed4752
parent 27356c5db4baa5202d967e5de1ebf69444782317
Author: Nirmal Kumar R <tildezero@gmail.com>
Date: Sun, 19 May 2024 20:36:36 +0530
Add nav to source code and brand
Diffstat:
2 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/emptyfm.js b/emptyfm.js
@@ -88,7 +88,8 @@ function addToRecents(savedObj, name, url) {
}
function changeSource(url) {
- player = videojs('emptyfm');
+ document.getElementById("emptyfm").style.display = "block";
+ player = videojs("emptyfm");
mediaType = fetchMediaType(url);
player.src({
type: mediaType,
diff --git a/index.html b/index.html
@@ -41,7 +41,7 @@
.logo {
display: block;
font-size: 1.2rem;
- margin-bottom: 2em;
+ margin-bottom: 0.7em;
}
a,
@@ -51,6 +51,15 @@
text-decoration-thickness: 1px
}
+ .tagline {
+ font-size: 1rem;
+ }
+
+ .nav a {
+ margin-top: 0.5em;
+ font-size: 0.9rem;
+ }
+
h3 {
font-size: 1rem;
}
@@ -87,6 +96,7 @@
#emptyfm {
position: fixed;
+ display: none;
width: 100vw;
left: 0;
bottom: 0;
@@ -98,7 +108,7 @@
.recents {
background: #efefef;
- margin: 0 0 2rem;
+ margin: 2rem 0;
}
.recents ul {
@@ -148,6 +158,11 @@
<body>
<a class="logo" href="/">emptyfm</a>
+ <div class="tagline">Listen to your favorite FM radio.</div>
+ <div class="nav">
+ <a href="https://github.com/mysticmode/emptyfm">Source code</a>
+ <a href="https://river.sh">A product by Riverway</a>
+ </div>
<header>
<div class="recents">