Spaces:
Running
Running
fix broken links and embeds
Browse files- admin.html +3 -3
- components/footer.js +6 -6
- components/navbar.js +1 -2
- index.html +3 -3
- script.js +92 -3
- track-detail.html +2 -2
- tracks.html +4 -1
admin.html
CHANGED
|
@@ -150,10 +150,10 @@
|
|
| 150 |
oninput="updateEmbedUrl('${track.slug}', ${index}, this.value)"
|
| 151 |
class="w-full">
|
| 152 |
</div>
|
| 153 |
-
|
| 154 |
-
<iframe src="${embed.url}" class="w-full h-full rounded-lg" loading="lazy"></iframe>
|
| 155 |
</div>
|
| 156 |
-
|
| 157 |
</div>
|
| 158 |
|
| 159 |
<!-- Add New Embed Button -->
|
|
|
|
| 150 |
oninput="updateEmbedUrl('${track.slug}', ${index}, this.value)"
|
| 151 |
class="w-full">
|
| 152 |
</div>
|
| 153 |
+
<div class="aspect-video rounded-lg bg-primary/10 border border-accent/20">
|
| 154 |
+
<iframe src="${embed.url}" class="w-full h-full rounded-lg" loading="lazy" allow="autoplay"></iframe>
|
| 155 |
</div>
|
| 156 |
+
`).join('') : '<p class="text-gray-400 text-sm">No embeds configured</p>'}
|
| 157 |
</div>
|
| 158 |
|
| 159 |
<!-- Add New Embed Button -->
|
components/footer.js
CHANGED
|
@@ -44,23 +44,23 @@ class CustomFooter extends HTMLElement {
|
|
| 44 |
<footer>
|
| 45 |
<div class="footer-content">
|
| 46 |
<div class="social-links">
|
| 47 |
-
<a href="
|
| 48 |
<i data-feather="music"></i>
|
| 49 |
</a>
|
| 50 |
-
<a href="
|
| 51 |
<i data-feather="play-circle"></i>
|
| 52 |
</a>
|
| 53 |
-
<a href="
|
| 54 |
<i data-feather="youtube"></i>
|
| 55 |
</a>
|
| 56 |
-
<a href="
|
| 57 |
<i data-feather="instagram"></i>
|
| 58 |
</a>
|
| 59 |
-
<a href="
|
| 60 |
<i data-feather="disc"></i>
|
| 61 |
</a>
|
| 62 |
</div>
|
| 63 |
-
|
| 64 |
</div>
|
| 65 |
</footer>
|
| 66 |
`;
|
|
|
|
| 44 |
<footer>
|
| 45 |
<div class="footer-content">
|
| 46 |
<div class="social-links">
|
| 47 |
+
<a href="https://soundcloud.com" aria-label="SoundCloud">
|
| 48 |
<i data-feather="music"></i>
|
| 49 |
</a>
|
| 50 |
+
<a href="https://spotify.com" aria-label="Spotify">
|
| 51 |
<i data-feather="play-circle"></i>
|
| 52 |
</a>
|
| 53 |
+
<a href="https://youtube.com" aria-label="YouTube">
|
| 54 |
<i data-feather="youtube"></i>
|
| 55 |
</a>
|
| 56 |
+
<a href="https://instagram.com" aria-label="Instagram">
|
| 57 |
<i data-feather="instagram"></i>
|
| 58 |
</a>
|
| 59 |
+
<a href="https://bandcamp.com" aria-label="Bandcamp">
|
| 60 |
<i data-feather="disc"></i>
|
| 61 |
</a>
|
| 62 |
</div>
|
| 63 |
+
<p class="copyright">© 2024 Mr.FLEN. Still Lie Right Next to Me. All rights reserved.</p>
|
| 64 |
</div>
|
| 65 |
</footer>
|
| 66 |
`;
|
components/navbar.js
CHANGED
|
@@ -110,13 +110,12 @@ class CustomNavbar extends HTMLElement {
|
|
| 110 |
<button class="mobile-menu-btn" id="mobileMenuBtn">
|
| 111 |
<i data-feather="menu"></i>
|
| 112 |
</button>
|
| 113 |
-
|
| 114 |
<ul id="navMenu">
|
| 115 |
<li><a href="/">Home</a></li>
|
| 116 |
<li><a href="/tracks.html">Tracks</a></li>
|
| 117 |
<li><a href="/admin.html">Admin</a></li>
|
| 118 |
</ul>
|
| 119 |
-
|
| 120 |
`;
|
| 121 |
|
| 122 |
// Initialize mobile menu
|
|
|
|
| 110 |
<button class="mobile-menu-btn" id="mobileMenuBtn">
|
| 111 |
<i data-feather="menu"></i>
|
| 112 |
</button>
|
|
|
|
| 113 |
<ul id="navMenu">
|
| 114 |
<li><a href="/">Home</a></li>
|
| 115 |
<li><a href="/tracks.html">Tracks</a></li>
|
| 116 |
<li><a href="/admin.html">Admin</a></li>
|
| 117 |
</ul>
|
| 118 |
+
</nav>
|
| 119 |
`;
|
| 120 |
|
| 121 |
// Initialize mobile menu
|
index.html
CHANGED
|
@@ -74,13 +74,13 @@
|
|
| 74 |
<div class="bg-primary/20 rounded-2xl p-6 backdrop-blur-sm border border-accent/20">
|
| 75 |
<div class="aspect-video rounded-xl overflow-hidden">
|
| 76 |
<iframe
|
| 77 |
-
src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/
|
| 78 |
class="w-full h-full"
|
| 79 |
loading="lazy"
|
| 80 |
-
allow="autoplay
|
| 81 |
title="Mr.FLEN - Still Lie Right Next to Me Album Stream"
|
| 82 |
></iframe>
|
| 83 |
-
|
| 84 |
</div>
|
| 85 |
</div>
|
| 86 |
</section>
|
|
|
|
| 74 |
<div class="bg-primary/20 rounded-2xl p-6 backdrop-blur-sm border border-accent/20">
|
| 75 |
<div class="aspect-video rounded-xl overflow-hidden">
|
| 76 |
<iframe
|
| 77 |
+
src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/1900000001&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"
|
| 78 |
class="w-full h-full"
|
| 79 |
loading="lazy"
|
| 80 |
+
allow="autoplay"
|
| 81 |
title="Mr.FLEN - Still Lie Right Next to Me Album Stream"
|
| 82 |
></iframe>
|
| 83 |
+
</div>
|
| 84 |
</div>
|
| 85 |
</div>
|
| 86 |
</section>
|
script.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
// Shared JavaScript across all pages
|
| 2 |
-
|
| 3 |
// Album data structure
|
| 4 |
let albumData = {
|
| 5 |
id: "still-lie-right-next-to-me",
|
|
@@ -8,9 +7,99 @@ let albumData = {
|
|
| 8 |
description: "Intimate deep house for late lights and long shadows—warm pads, patient grooves, and urban after-hours emotion.",
|
| 9 |
colors: { primary: "#0B2D2F", accent: "#FF914D", magenta: "#C5427A" },
|
| 10 |
tags: ["Deep House", "Melodic House", "AfterHours", "Hypnotic"],
|
| 11 |
-
tracks: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
};
|
| 13 |
-
|
| 14 |
// Initialize app
|
| 15 |
document.addEventListener('DOMContentLoaded', function() {
|
| 16 |
console.log('Neon Noir Soundscapes loaded');
|
|
|
|
| 1 |
// Shared JavaScript across all pages
|
|
|
|
| 2 |
// Album data structure
|
| 3 |
let albumData = {
|
| 4 |
id: "still-lie-right-next-to-me",
|
|
|
|
| 7 |
description: "Intimate deep house for late lights and long shadows—warm pads, patient grooves, and urban after-hours emotion.",
|
| 8 |
colors: { primary: "#0B2D2F", accent: "#FF914D", magenta: "#C5427A" },
|
| 9 |
tags: ["Deep House", "Melodic House", "AfterHours", "Hypnotic"],
|
| 10 |
+
tracks: [
|
| 11 |
+
{
|
| 12 |
+
no: "01",
|
| 13 |
+
slug: "still-lie-right-next-to-me",
|
| 14 |
+
title: "Still Lie Right Next to Me",
|
| 15 |
+
desc: "The title track sets the mood with deep, atmospheric pads and a hypnotic groove that pulls you into the late-night world of Mr.FLEN.",
|
| 16 |
+
duration: "5:24",
|
| 17 |
+
bpm: 122,
|
| 18 |
+
key: "Am",
|
| 19 |
+
tags: ["Deep House", "Atmospheric", "Hypnotic"],
|
| 20 |
+
cover: "http://static.photos/monochrome/200x200/1",
|
| 21 |
+
embeds: [
|
| 22 |
+
{
|
| 23 |
+
provider: "soundcloud",
|
| 24 |
+
url: "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/1900000001&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true",
|
| 25 |
+
label: "SoundCloud"
|
| 26 |
+
}
|
| 27 |
+
]
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
no: "02",
|
| 31 |
+
slug: "midnight-walks",
|
| 32 |
+
title: "Midnight Walks",
|
| 33 |
+
desc: "A journey through empty city streets with pulsing basslines and ethereal melodies.",
|
| 34 |
+
duration: "6:12",
|
| 35 |
+
bpm: 124,
|
| 36 |
+
key: "Gm",
|
| 37 |
+
tags: ["Deep House", "Melodic", "Urban"],
|
| 38 |
+
cover: "http://static.photos/monochrome/200x200/2",
|
| 39 |
+
embeds: [
|
| 40 |
+
{
|
| 41 |
+
provider: "soundcloud",
|
| 42 |
+
url: "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/1900000002&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true",
|
| 43 |
+
label: "SoundCloud"
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
no: "03",
|
| 49 |
+
slug: "neon-reflections",
|
| 50 |
+
title: "Neon Reflections",
|
| 51 |
+
desc: "Capturing the glow of city lights in sound, with shimmering synths and deep grooves.",
|
| 52 |
+
duration: "5:48",
|
| 53 |
+
bpm: 123,
|
| 54 |
+
key: "Bbm",
|
| 55 |
+
tags: ["Deep House", "Atmospheric", "Urban"],
|
| 56 |
+
cover: "http://static.photos/monochrome/200x200/3",
|
| 57 |
+
embeds: [
|
| 58 |
+
{
|
| 59 |
+
provider: "soundcloud",
|
| 60 |
+
url: "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/1900000003&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true",
|
| 61 |
+
label: "SoundCloud"
|
| 62 |
+
}
|
| 63 |
+
]
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
no: "04",
|
| 67 |
+
slug: "after-hours",
|
| 68 |
+
title: "After Hours",
|
| 69 |
+
desc: "The perfect soundtrack for those late-night sessions when the world is asleep.",
|
| 70 |
+
duration: "6:35",
|
| 71 |
+
bpm: 121,
|
| 72 |
+
key: "Fm",
|
| 73 |
+
tags: ["Deep House", "AfterHours", "Hypnotic"],
|
| 74 |
+
cover: "http://static.photos/monochrome/200x200/4",
|
| 75 |
+
embeds: [
|
| 76 |
+
{
|
| 77 |
+
provider: "soundcloud",
|
| 78 |
+
url: "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/1900000004&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true",
|
| 79 |
+
label: "SoundCloud"
|
| 80 |
+
}
|
| 81 |
+
]
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
no: "05",
|
| 85 |
+
slug: "urban-dreams",
|
| 86 |
+
title: "Urban Dreams",
|
| 87 |
+
desc: "A dreamy exploration of city life with floating melodies and deep bass foundations.",
|
| 88 |
+
duration: "5:59",
|
| 89 |
+
bpm: 122,
|
| 90 |
+
key: "Em",
|
| 91 |
+
tags: ["Deep House", "Melodic", "Atmospheric"],
|
| 92 |
+
cover: "http://static.photos/monochrome/200x200/5",
|
| 93 |
+
embeds: [
|
| 94 |
+
{
|
| 95 |
+
provider: "soundcloud",
|
| 96 |
+
url: "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/1900000005&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true",
|
| 97 |
+
label: "SoundCloud"
|
| 98 |
+
}
|
| 99 |
+
]
|
| 100 |
+
}
|
| 101 |
+
]
|
| 102 |
};
|
|
|
|
| 103 |
// Initialize app
|
| 104 |
document.addEventListener('DOMContentLoaded', function() {
|
| 105 |
console.log('Neon Noir Soundscapes loaded');
|
track-detail.html
CHANGED
|
@@ -166,7 +166,6 @@
|
|
| 166 |
</div>
|
| 167 |
`;
|
| 168 |
}
|
| 169 |
-
|
| 170 |
function renderProviderTabs(track) {
|
| 171 |
const tabsContainer = document.getElementById('providerTabs');
|
| 172 |
if (!tabsContainer) return;
|
|
@@ -187,8 +186,9 @@
|
|
| 187 |
// Load first embed by default
|
| 188 |
if (track.embeds.length > 0) {
|
| 189 |
switchProvider(track.slug, track.embeds[0].provider, track.embeds[0].url);
|
|
|
|
| 190 |
}
|
| 191 |
-
|
| 192 |
|
| 193 |
function renderTrackDetails(track) {
|
| 194 |
const description = document.getElementById('trackDescription');
|
|
|
|
| 166 |
</div>
|
| 167 |
`;
|
| 168 |
}
|
|
|
|
| 169 |
function renderProviderTabs(track) {
|
| 170 |
const tabsContainer = document.getElementById('providerTabs');
|
| 171 |
if (!tabsContainer) return;
|
|
|
|
| 186 |
// Load first embed by default
|
| 187 |
if (track.embeds.length > 0) {
|
| 188 |
switchProvider(track.slug, track.embeds[0].provider, track.embeds[0].url);
|
| 189 |
+
}
|
| 190 |
}
|
| 191 |
+
}
|
| 192 |
|
| 193 |
function renderTrackDetails(track) {
|
| 194 |
const description = document.getElementById('trackDescription');
|
tracks.html
CHANGED
|
@@ -65,8 +65,11 @@
|
|
| 65 |
<option value="Melodic House">Melodic House</option>
|
| 66 |
<option value="AfterHours">AfterHours</option>
|
| 67 |
<option value="Hypnotic">Hypnotic</option>
|
|
|
|
|
|
|
|
|
|
| 68 |
</select>
|
| 69 |
-
|
| 70 |
</div>
|
| 71 |
|
| 72 |
<!-- Tracks Container -->
|
|
|
|
| 65 |
<option value="Melodic House">Melodic House</option>
|
| 66 |
<option value="AfterHours">AfterHours</option>
|
| 67 |
<option value="Hypnotic">Hypnotic</option>
|
| 68 |
+
<option value="Atmospheric">Atmospheric</option>
|
| 69 |
+
<option value="Melodic">Melodic</option>
|
| 70 |
+
<option value="Urban">Urban</option>
|
| 71 |
</select>
|
| 72 |
+
</div>
|
| 73 |
</div>
|
| 74 |
|
| 75 |
<!-- Tracks Container -->
|