https://github.com/kingoIII/Ruido
Browse files- components/footer.js +2 -2
- components/navbar.js +3 -3
- index.html +5 -5
- library.html +48 -0
- upload.html +64 -0
components/footer.js
CHANGED
|
@@ -55,8 +55,8 @@ class AudioFooter extends HTMLElement {
|
|
| 55 |
</a>
|
| 56 |
</div>
|
| 57 |
<div class="copyright">
|
| 58 |
-
© ${new Date().getFullYear()}
|
| 59 |
-
|
| 60 |
</div>
|
| 61 |
`;
|
| 62 |
}
|
|
|
|
| 55 |
</a>
|
| 56 |
</div>
|
| 57 |
<div class="copyright">
|
| 58 |
+
© ${new Date().getFullYear()} Ruido Music Platform
|
| 59 |
+
</div>
|
| 60 |
</div>
|
| 61 |
`;
|
| 62 |
}
|
components/navbar.js
CHANGED
|
@@ -62,9 +62,9 @@ class AudioNavbar extends HTMLElement {
|
|
| 62 |
</a>
|
| 63 |
<div class="nav-links">
|
| 64 |
<a href="/" class="nav-link">Home</a>
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
<i data-feather="github" class="github-icon w-5 h-5 text-gray-400 hover:text-indigo-400 transition"></i>
|
| 69 |
</a>
|
| 70 |
</div>
|
|
|
|
| 62 |
</a>
|
| 63 |
<div class="nav-links">
|
| 64 |
<a href="/" class="nav-link">Home</a>
|
| 65 |
+
<a href="/upload.html" class="nav-link">Upload</a>
|
| 66 |
+
<a href="/library.html" class="nav-link">Library</a>
|
| 67 |
+
<a href="https://github.com/kingoIII/Ruido1" target="_blank" rel="noopener noreferrer">
|
| 68 |
<i data-feather="github" class="github-icon w-5 h-5 text-gray-400 hover:text-indigo-400 transition"></i>
|
| 69 |
</a>
|
| 70 |
</div>
|
index.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
-
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
|
@@ -15,12 +15,12 @@
|
|
| 15 |
<main class="container mx-auto px-4 py-8">
|
| 16 |
<div class="text-center mb-12">
|
| 17 |
<h1 class="text-4xl md:text-6xl font-bold mb-4 bg-clip-text text-transparent bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500">
|
| 18 |
-
|
| 19 |
</h1>
|
| 20 |
<p class="text-xl text-gray-400 max-w-2xl mx-auto">
|
| 21 |
-
|
| 22 |
</p>
|
| 23 |
-
|
| 24 |
|
| 25 |
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12">
|
| 26 |
<div class="bg-gray-800 rounded-2xl p-6 shadow-xl">
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Ruido Music Platform</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
|
|
|
| 15 |
<main class="container mx-auto px-4 py-8">
|
| 16 |
<div class="text-center mb-12">
|
| 17 |
<h1 class="text-4xl md:text-6xl font-bold mb-4 bg-clip-text text-transparent bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500">
|
| 18 |
+
Ruido
|
| 19 |
</h1>
|
| 20 |
<p class="text-xl text-gray-400 max-w-2xl mx-auto">
|
| 21 |
+
Discover and share your favorite music tracks with the world
|
| 22 |
</p>
|
| 23 |
+
</div>
|
| 24 |
|
| 25 |
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12">
|
| 26 |
<div class="bg-gray-800 rounded-2xl p-6 shadow-xl">
|
library.html
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="dark">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Library | Ruido</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
</head>
|
| 11 |
+
<body class="bg-gray-900 text-gray-100 min-h-screen">
|
| 12 |
+
<audio-navbar></audio-navbar>
|
| 13 |
+
|
| 14 |
+
<main class="container mx-auto px-4 py-8">
|
| 15 |
+
<div class="text-center mb-12">
|
| 16 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-4 bg-clip-text text-transparent bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500">
|
| 17 |
+
Your Library
|
| 18 |
+
</h1>
|
| 19 |
+
</div>
|
| 20 |
+
|
| 21 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 22 |
+
<!-- Track cards will be populated here -->
|
| 23 |
+
<div class="bg-gray-800 rounded-xl p-4 shadow-lg hover:shadow-xl transition">
|
| 24 |
+
<div class="h-48 mb-4 rounded-lg overflow-hidden bg-gray-700 flex items-center justify-center">
|
| 25 |
+
<i data-feather="music" class="w-16 h-16 text-gray-500"></i>
|
| 26 |
+
</div>
|
| 27 |
+
<h3 class="text-xl font-semibold">Track Title</h3>
|
| 28 |
+
<p class="text-gray-400 mb-2">Artist Name</p>
|
| 29 |
+
<div class="flex justify-between items-center">
|
| 30 |
+
<span class="text-sm text-gray-500">3:42</span>
|
| 31 |
+
<button class="text-indigo-400 hover:text-indigo-300">
|
| 32 |
+
<i data-feather="play" class="w-5 h-5"></i>
|
| 33 |
+
</button>
|
| 34 |
+
</div>
|
| 35 |
+
</div>
|
| 36 |
+
</div>
|
| 37 |
+
</main>
|
| 38 |
+
|
| 39 |
+
<audio-footer></audio-footer>
|
| 40 |
+
|
| 41 |
+
<script src="components/navbar.js"></script>
|
| 42 |
+
<script src="components/footer.js"></script>
|
| 43 |
+
<script src="script.js"></script>
|
| 44 |
+
<script>
|
| 45 |
+
feather.replace();
|
| 46 |
+
</script>
|
| 47 |
+
</body>
|
| 48 |
+
</html>
|
upload.html
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="dark">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Upload | Ruido</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
</head>
|
| 11 |
+
<body class="bg-gray-900 text-gray-100 min-h-screen">
|
| 12 |
+
<audio-navbar></audio-navbar>
|
| 13 |
+
|
| 14 |
+
<main class="container mx-auto px-4 py-8">
|
| 15 |
+
<div class="text-center mb-12">
|
| 16 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-4 bg-clip-text text-transparent bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500">
|
| 17 |
+
Upload Track
|
| 18 |
+
</h1>
|
| 19 |
+
</div>
|
| 20 |
+
|
| 21 |
+
<div class="max-w-2xl mx-auto bg-gray-800 rounded-2xl p-6 shadow-xl">
|
| 22 |
+
<form id="uploadForm" class="space-y-6">
|
| 23 |
+
<div>
|
| 24 |
+
<label for="trackTitle" class="block text-sm font-medium text-gray-300 mb-1">Track Title</label>
|
| 25 |
+
<input type="text" id="trackTitle" name="trackTitle" required class="w-full bg-gray-700 border-gray-600 text-white rounded-lg p-2.5 focus:ring-indigo-500 focus:border-indigo-500">
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<div>
|
| 29 |
+
<label for="trackDescription" class="block text-sm font-medium text-gray-300 mb-1">Description</label>
|
| 30 |
+
<textarea id="trackDescription" name="trackDescription" rows="3" class="w-full bg-gray-700 border-gray-600 text-white rounded-lg p-2.5 focus:ring-indigo-500 focus:border-indigo-500"></textarea>
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<div>
|
| 34 |
+
<label for="trackFile" class="block text-sm font-medium text-gray-300 mb-1">Audio File</label>
|
| 35 |
+
<input type="file" id="trackFile" name="trackFile" accept="audio/*" required class="block w-full text-sm text-gray-400 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-indigo-600 file:text-white hover:file:bg-indigo-700">
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
<div>
|
| 39 |
+
<label for="coverImage" class="block text-sm font-medium text-gray-300 mb-1">Cover Image (optional)</label>
|
| 40 |
+
<input type="file" id="coverImage" name="coverImage" accept="image/*" class="block w-full text-sm text-gray-400 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-indigo-600 file:text-white hover:file:bg-indigo-700">
|
| 41 |
+
</div>
|
| 42 |
+
|
| 43 |
+
<div class="flex items-center">
|
| 44 |
+
<input type="checkbox" id="isPublic" name="isPublic" checked class="w-4 h-4 text-indigo-600 bg-gray-700 border-gray-600 rounded focus:ring-indigo-500">
|
| 45 |
+
<label for="isPublic" class="ml-2 text-sm font-medium text-gray-300">Make track public</label>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<button type="submit" class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-medium py-2 px-4 rounded-lg transition focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
| 49 |
+
Upload Track
|
| 50 |
+
</button>
|
| 51 |
+
</form>
|
| 52 |
+
</div>
|
| 53 |
+
</main>
|
| 54 |
+
|
| 55 |
+
<audio-footer></audio-footer>
|
| 56 |
+
|
| 57 |
+
<script src="components/navbar.js"></script>
|
| 58 |
+
<script src="components/footer.js"></script>
|
| 59 |
+
<script src="script.js"></script>
|
| 60 |
+
<script>
|
| 61 |
+
feather.replace();
|
| 62 |
+
</script>
|
| 63 |
+
</body>
|
| 64 |
+
</html>
|