Skip to content

Commit

Permalink
epic ui edits
Browse files Browse the repository at this point in the history
  • Loading branch information
tposejank committed Jul 3, 2024
1 parent 6ee2178 commit 1ad4c1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
7 changes: 5 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3614,6 +3614,7 @@ jam-track {

.encore-track .left-section {
width: 70%;
padding-left: 1.5rem;
}
.encore-track .right-section {
width: 30%;
Expand All @@ -3628,7 +3629,8 @@ jam-track {
}

.right-section .diffs-view {
position: relative;
background-color: #99D9EA;
color: black;
}

.diffs-view:hover .song-diffs-popup {
Expand Down Expand Up @@ -3664,10 +3666,11 @@ jam-track {
.diff {
display: flex;
align-items: center;
width: 50%;
flex: 50%;
}

.diffbars {
padding-left: 1rem;
display: flex;
}

Expand Down
12 changes: 4 additions & 8 deletions encore/js/songs.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ async function extractFilesFromZip(data, rurl) {

trackDetails.append(songTitle, songArtist, songAlbum, songCharters)
leftSection.append(trackDetails)
encoreTrack.append(leftSection)

let rightSection = document.createElement('div')
rightSection.classList.add('right-section');
Expand All @@ -92,26 +91,23 @@ async function extractFilesFromZip(data, rurl) {
imgElement2.src = imageUrl;
imgElement2.classList.add('art-ghost')

encoreTrack.append(rightSection, imgElement2);
encoreTrack.append(leftSection)

let songDiffsView = document.createElement('a');
songDiffsView.classList.add('fortnite-button', 'fortnite-button-border', 'no-link', 'encore-override-fortnite-button', 'diffs-view', 'track-btn')
songDiffsView.innerText = 'View more'
songDiffsView.href = 'view/?' + data.id

let songDiffsPopup = document.createElement('div')
songDiffsPopup.classList.add('song-diffs-popup')
songDiffsView.append(songDiffsPopup);

let downloadSong = document.createElement('a');
downloadSong.classList.add('fortnite-button', 'fortnite-button-border', 'no-link', 'encore-override-fortnite-button', 'track-btn')
downloadSong.innerText = 'Download'
downloadSong.href = rurl + data.zip

songDiffsPopup.append(songDiffs);
leftSection.append(document.createElement('hr'), songDiffs);

rightSection.append(imgElement, songDiffsView, downloadSong)

encoreTrack.append(rightSection, imgElement2);

document.getElementById('songs').appendChild(encoreTrack);

loading.remove()
Expand Down

0 comments on commit 1ad4c1d

Please sign in to comment.