|
|
<!DOCTYPE html> |
|
|
<html lang="en" class="dark"> |
|
|
<head> |
|
|
<meta charset="UTF-8"> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
<title>Upload | Ruido</title> |
|
|
<link rel="stylesheet" href="style.css"> |
|
|
<script src="https://cdn.tailwindcss.com"></script> |
|
|
<script src="https://unpkg.com/feather-icons"></script> |
|
|
</head> |
|
|
<body class="bg-gray-900 text-gray-100 min-h-screen"> |
|
|
<audio-navbar></audio-navbar> |
|
|
|
|
|
<main class="container mx-auto px-4 py-8"> |
|
|
<div class="text-center mb-12"> |
|
|
<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"> |
|
|
Upload Track |
|
|
</h1> |
|
|
</div> |
|
|
|
|
|
<div class="max-w-2xl mx-auto bg-gray-800 rounded-2xl p-6 shadow-xl"> |
|
|
<form id="uploadForm" class="space-y-6"> |
|
|
<div> |
|
|
<label for="trackTitle" class="block text-sm font-medium text-gray-300 mb-1">Track Title</label> |
|
|
<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"> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<label for="trackDescription" class="block text-sm font-medium text-gray-300 mb-1">Description</label> |
|
|
<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> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<label for="trackFile" class="block text-sm font-medium text-gray-300 mb-1">Audio File</label> |
|
|
<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"> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<label for="coverImage" class="block text-sm font-medium text-gray-300 mb-1">Cover Image (optional)</label> |
|
|
<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"> |
|
|
</div> |
|
|
|
|
|
<div class="flex items-center"> |
|
|
<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"> |
|
|
<label for="isPublic" class="ml-2 text-sm font-medium text-gray-300">Make track public</label> |
|
|
</div> |
|
|
|
|
|
<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"> |
|
|
Upload Track |
|
|
</button> |
|
|
</form> |
|
|
</div> |
|
|
</main> |
|
|
|
|
|
<audio-footer></audio-footer> |
|
|
|
|
|
<script src="components/navbar.js"></script> |
|
|
<script src="components/footer.js"></script> |
|
|
<script src="script.js"></script> |
|
|
<script> |
|
|
feather.replace(); |
|
|
</script> |
|
|
</body> |
|
|
</html> |