ravenscott-rocks/views/track.ejs

86 lines
2.5 KiB
Plaintext
Raw Permalink Normal View History

2024-10-17 04:39:30 -04:00
<!DOCTYPE html>
<html lang="en">
2024-10-17 05:06:21 -04:00
2024-10-17 04:39:30 -04:00
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-10-17 05:06:21 -04:00
<title>
<%= track.title %>
</title>
2024-10-17 04:39:30 -04:00
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
body {
background-color: black;
color: white;
font-family: 'Metal Mania', sans-serif;
}
2024-10-17 05:06:21 -04:00
2024-10-17 04:39:30 -04:00
.card {
background-color: #222;
border: 1px solid #444;
}
2024-10-17 05:06:21 -04:00
2024-10-17 05:08:22 -04:00
.btn-primary {
background-color: #ff5500;
border-color: #ff5500;
}
.btn-primary:hover {
background-color: #ff3300;
}
2024-10-17 05:06:21 -04:00
/* Custom slim dark mode scrollbar for webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
width: 8px;
/* Slim width for the scrollbar */
}
::-webkit-scrollbar-track {
background: #1e1e1e;
/* Dark background for the scrollbar track */
}
::-webkit-scrollbar-thumb {
background-color: #4a4a4a;
/* Slightly lighter thumb color */
border-radius: 10px;
/* Rounded corners for the scrollbar */
border: 2px solid #1e1e1e;
/* Matches the track background to create a gap effect */
}
::-webkit-scrollbar-thumb:hover {
background-color: #555555;
/* Lighter on hover */
}
/* Scrollbar styling for Firefox */
* {
scrollbar-width: thin;
scrollbar-color: #4a4a4a #1e1e1e;
}
2024-10-17 04:39:30 -04:00
</style>
</head>
2024-10-17 05:06:21 -04:00
2024-10-17 04:39:30 -04:00
<body>
<div class="container mt-5">
<div class="card text-center">
<div class="card-body">
2024-10-17 05:06:21 -04:00
<h1 class="card-title">
<%= track.title %>
</h1>
2024-10-17 04:39:30 -04:00
<iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay"
2024-10-17 05:06:21 -04:00
src="https://w.soundcloud.com/player/?url=<%= track.url %>&color=%23ff5500&auto_play=false&show_artwork=true">
</iframe>
2024-10-17 04:39:30 -04:00
<p class="card-text">
2024-10-17 05:06:21 -04:00
<%- (track.description && track.description.trim()) ? track.description.replace(/\n/g, '<br>' )
2024-10-17 04:39:30 -04:00
: 'No description available for this track.' %>
2024-10-17 05:08:22 -04:00
<BR>
<a href="/" class="btn btn-primary mt-3">Back</a>
2024-10-17 05:06:21 -04:00
</p>
2024-10-17 04:39:30 -04:00
</div>
</div>
</div>
</body>
2024-10-17 05:06:21 -04:00
</html>