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>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -11,40 +12,78 @@
color: white;
font-family: 'Metal Mania', sans-serif;
}
.card {
background-color: #222;
border: 1px solid #444;
}
.btn-primary {
background-color: #ff5500;
border-color: #ff5500;
}
.btn-primary:hover {
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>
</head>
<body>
<div class="container mt-5">
<h1 class="text-center mb-5">Raven Scott Metal Tracks</h1>
<div class="row">
<% tracks.forEach(track => { %>
<% tracks.forEach(track=> { %>
<div class="col-md-6 mb-4">
<div class="card text-center">
<div class="card-body">
<h5 class="card-title"><%= track.title %></h5>
<h5 class="card-title">
<%= track.title %>
</h5>
<p class="card-text"></p>
<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>
<a href="/track/<%= track.slug %>" class="btn btn-primary mt-3">More Details</a>
</div>
</div>
</div>
<% }) %>
<% }) %>
</div>
</div>
</body>
</html>
</html>

View File

@ -1,9 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<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">
<style>
body {
@ -11,27 +14,62 @@
color: white;
font-family: 'Metal Mania', sans-serif;
}
.card {
background-color: #222;
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>
</head>
<body>
<div class="container mt-5">
<div class="card text-center">
<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"
src="https://w.soundcloud.com/player/?url=<%= track.url %>&color=%23ff5500&auto_play=false&show_artwork=true">
</iframe>
src="https://w.soundcloud.com/player/?url=<%= track.url %>&color=%23ff5500&auto_play=false&show_artwork=true">
</iframe>
<p class="card-text">
<%- (track.description && track.description.trim())
? track.description.replace(/\n/g, '<br>')
<%- (track.description && track.description.trim()) ? track.description.replace(/\n/g, '<br>' )
: 'No description available for this track.' %>
</p>
</p>
</div>
</div>
</div>
</body>
</html>
</html>