OneAlbatross

Spotify playlist custom box code - Tailwind

Jan 28th, 2022 (edited)
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.07 KB | None | 0 0
  1. <!-- this div contains the overall text color - change "text-white" to another class color name to change all text on the page -->
  2. <div class=" -mb-3 pb-3 text-white">
  3. <!-- this div is a gradient background; you can replace it with any other rgb value + a decimal reperesenting how transparent it should be (i.e. change the 1 to .50 for %50 opacity) - Mind the parenthesis, commas and quotes!-->
  4. <div class="grid grid-cols-4 gap-4 w-full p-3" style="background-image: linear-gradient(rgba(219, 39, 119,1), rgba(17, 24, 39, 1));">
  5. <!-- album/art image here -->
  6. <img class="col-span-2 col-start-2 md:col-span-1 md:col-start-1" src="IMAGE_LINK">
  7.  
  8. <div class="col-span-4 md:col-span-3 pt-0">
  9. <div class="py-3 ">
  10. <h6>Playlist</h6> <!--indicate what type of music collection (album, playlist, soundtrack) -->
  11. <div class="text-xl font-bold md:text-4xl">Playlist/album/soundtrack name</div>
  12. <p class=" ">Optional description of the list. I'd recommend keeping it under 3 lines.</p>
  13. <p class=" text-xs pt-1">by yourname/artist • code <a class="hover:text-pink-500" href="https://buzzly.art/~OneAlbatross" rel="nofollow"><i class="fas fa-code fa-xs"></i></a> • 00 songs • 0 hrs 00 min</p>
  14.  
  15. <div class="px-3 pt-3 pb-2 flex">
  16. <!-- This is the big green button (I'd link it to the playlist)-->
  17. <a href="LINK_FOR_BIG GREEN_BUTTON" rel="nofollow"><div class=" rounded-full py-2 px-3 mr-3" style="height: 35px; width: 35px; background-color: rgb(25, 205, 91)"><i class="fas fa-play fa-1x" style="color: rgb(250, 250, 250)"></i></div></a>
  18.  
  19. <!-- This is the three horizontal dots button (can be linked to your Spotify profile) -->
  20. <a href="LINK_FOR_DOTS_BUTTON" rel="nofollow"><i class="fal fa-ellipsis-h fa-2x pl-2 pt-1 hover:text-white"></i></a>
  21. </div>
  22.  
  23. </div>
  24. </div>
  25. </div>
  26.  
  27. <!-- this background shows behind the songs; make this rgba value the same as the bottom gradient rgba color to match -->
  28. <!-- you can make this background transparent by taking the 1 in the rgba(17,24,39, 1) and making it 0 -->
  29. <div class=" px-3 pb-2 grid-rows-auto" style="background-color: rgba(17, 24, 39, 1);">
  30.  
  31. <!-- This is meant to say "title" and "artist" and is NOT set up for music; can be removed this div if you don't want it-->
  32. <div class="hidden md:block px-3 pt-3 pb-2 md:flex md:justify-between ">
  33. <p class="font-light tracking-widest text-sm pr-3"> •  Title</p><p class="font-light tracking-widest text-sm ">Artist</p>
  34. </div>
  35.  
  36. <div class="hidden md:block bg-white mt-1 mb-4 w-full bg-opacity-10" style="height: 1.5px"></div>
  37.  
  38.  
  39. <!-- songs have to be from Youtube; click share button > the jumble of letter and number after the 'https://youtu.be/" is what you want to copy paste here, after the "/embed/"-->
  40. <!-- add "?start=#" to the end of the url and replace # with a number to have the music start at that number of seconds into the video; EXAMPLE: https://www.youtube.com/embed/PJ8IBPpzToc?start=40 -->
  41. <!-- copy and paste as many song sections in as you like-->
  42. <!-- @Crowcities discovered that for some Firefox users, the buttons do not work unless they are set to be slighlty visible at "opacity-5". If you are using a theme that makes the iframe too obvious you can change it to opacity-0, BUT this may make your player inoperable for some users -->
  43.  
  44. <!-- FIRST SONG-->
  45. <iframe class="ml-2 -mb-6 opacity-5" style="width: 20px; height: 20px" src="https://www.youtube.com/embed/"></iframe>
  46. <div class="px-3 md:flex md:justify-between mb-4">
  47. <h4><i class="fas fa-play fa-xs pr-3"></i></a>Song Name</h4><p class="md:text-right">Artist</p>
  48. </div>
  49.  
  50. <!-- SECOND SONG-->
  51. <iframe class="ml-2 -mb-6 opacity-5" style="width: 20px; height: 20px" src="https://www.youtube.com/embed/"></iframe>
  52. <div class="px-3 md:flex md:justify-between mb-4">
  53. <h4><i class="fas fa-play fa-xs pr-3"></i></a>Song Name</h4><p class="md:text-right">Artist</p>
  54. </div>
  55.  
  56. <!-- THIRD SONG-->
  57. <iframe class="ml-2 -mb-6 opacity-5" style="width: 20px; height: 20px" src="https://www.youtube.com/embed/"></iframe>
  58. <div class="px-3 md:flex md:justify-between mb-4">
  59. <h4> <i class="fas fa-play fa-xs pr-3"></i>Song Name</h4><p class="md:text-right">Artist</p>
  60. </div>
  61.  
  62. <!-- FOURTH SONG-->
  63. <iframe class="ml-2 -mb-6 opacity-5" style="width: 20px; height: 20px" src="https://www.youtube.com/embed/"></iframe>
  64. <div class="px-3 md:flex md:justify-between mb-4">
  65. <h4> <i class="fas fa-play fa-xs pr-3"></i>Song Name</h4> <p class="md:text-right">Artist</p>
  66. </div>
  67.  
  68. <!-- FIFTH SONG-->
  69. <iframe class="ml-2 -mb-6 opacity-5" style="width: 20px; height: 20px" src="https://www.youtube.com/embed/"></iframe>
  70. <div class="px-3 md:flex md:justify-between mb-4">
  71. <h4> <i class="fas fa-play fa-xs pr-3"></i>Song Name</h4> <p class="md:text-right">Artist</p>
  72. </div>
  73.  
  74.  
  75. </div>
  76.  
  77. </div>
  78.  
Advertisement
Add Comment
Please, Sign In to add comment