This commit is contained in:
Raven Scott 2024-10-17 05:06:21 -04:00
parent e1f61e55dc
commit 60f071e367
2 changed files with 90 additions and 13 deletions

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -11,19 +12,54 @@
color: white; color: white;
font-family: 'Metal Mania', sans-serif; font-family: 'Metal Mania', sans-serif;
} }
.card { .card {
background-color: #222; background-color: #222;
border: 1px solid #444; border: 1px solid #444;
} }
.btn-primary { .btn-primary {
background-color: #ff5500; background-color: #ff5500;
border-color: #ff5500; border-color: #ff5500;
} }
.btn-primary:hover { .btn-primary:hover {
background-color: #ff3300; background-color: #ff3300;
} }
/* 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;
}
</style> </style>
</head> </head>
<body> <body>
<div class="container mt-5"> <div class="container mt-5">
<h1 class="text-center mb-5">Raven Scott Metal Tracks</h1> <h1 class="text-center mb-5">Raven Scott Metal Tracks</h1>
@ -32,11 +68,14 @@
<div class="col-md-6 mb-4"> <div class="col-md-6 mb-4">
<div class="card text-center"> <div class="card text-center">
<div class="card-body"> <div class="card-body">
<h5 class="card-title"><%= track.title %></h5> <h5 class="card-title">
<%= track.title %>
</h5>
<p class="card-text"></p> <p class="card-text"></p>
<iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" <iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay"
src="https://w.soundcloud.com/player/?url=<%= track.url %>&color=%23ff5500&auto_play=false&show_artwork=true" loading="lazy"> src="https://w.soundcloud.com/player/?url=<%= track.url %>&color=%23ff5500&auto_play=false&show_artwork=true"
loading="lazy">
</iframe> </iframe>
<a href="/track/<%= track.slug %>" class="btn btn-primary mt-3">More Details</a> <a href="/track/<%= track.slug %>" class="btn btn-primary mt-3">More Details</a>
</div> </div>

View File

@ -1,9 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= track.title %></title> <title>
<%= track.title %>
</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style> <style>
body { body {
@ -11,27 +14,62 @@
color: white; color: white;
font-family: 'Metal Mania', sans-serif; font-family: 'Metal Mania', sans-serif;
} }
.card { .card {
background-color: #222; background-color: #222;
border: 1px solid #444; border: 1px solid #444;
} }
/* 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;
}
</style> </style>
</head> </head>
<body> <body>
<div class="container mt-5"> <div class="container mt-5">
<div class="card text-center"> <div class="card text-center">
<div class="card-body"> <div class="card-body">
<h1 class="card-title"><%= track.title %></h1> <h1 class="card-title">
<%= track.title %>
</h1>
<iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" <iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay"
src="https://w.soundcloud.com/player/?url=<%= track.url %>&color=%23ff5500&auto_play=false&show_artwork=true"> src="https://w.soundcloud.com/player/?url=<%= track.url %>&color=%23ff5500&auto_play=false&show_artwork=true">
</iframe> </iframe>
<p class="card-text"> <p class="card-text">
<%- (track.description && track.description.trim()) <%- (track.description && track.description.trim()) ? track.description.replace(/\n/g, '<br>' )
? track.description.replace(/\n/g, '<br>')
: 'No description available for this track.' %> : 'No description available for this track.' %>
</p> </p>
</div> </div>
</div> </div>
</div> </div>
</body> </body>
</html> </html>