OneAlbatross

Spotify Song Feature V2 - Tailwind

Nov 12th, 2022 (edited)
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1.  
  2. <div class="-mb-3 text-pink-50" style="background-image: url(&#39;https://i.scdn.co/image/ab67616d0000b2737cb62039b5d8f0927915c12b&#39;); background-position: center; background-size: cover"> <!--change "text-pink-50" to another color to change all text color (see https://v2.tailwindcss.com/docs/text-color for text color names)-->
  3. <!-- change the background-image:url('') link to get a different background image (this is something I created intentionally to allow easier manipulation of the background image. background-position changes what part of the image is aligned to. See https://v2.tailwindcss.com/docs/background-position for more info-->
  4.  
  5. <div class="w-full p-3 mb-3 flex flex-row" style="background-image: linear-gradient(27deg, rgba(15,17,28,1), rgba(15,17,28,.8), rgba(255,111,0,0) )">
  6.  
  7. <div class=" flex-grow">
  8.  
  9. <div class="flex flex-row w-full">
  10.  
  11. <div class="text-3xl font-bold md:text-4xl pb-3 pr-3 pl-5 pt-0 md:pt-2">Song Name</div>
  12.  
  13. <div class="px-4 pt-4 md:pt-4">
  14.  
  15. <iframe class="opacity-5 -mr-5 -mb-7" style="width: 25px; height: 25px" src="https://www.youtube.com/embed/"></iframe> <!-- THIS IS THE SONG LINK. 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/"-->
  16. <!-- 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 -->
  17. <!-- @Crowcities discovered that for some Firefox users, the button does 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 -->
  18.  
  19. <div class=" rounded-full py-2 px-3 pl-2 -mt-1 -ml-1" style="height: 35px; width: 35px; background-color: rgb(25, 205, 91)"><!-- you may change the green part of the play button to a different color by changing it to another rgba value here-->
  20. <i class="fas fa-play fa-1x pl-1" style="color: rgb(250, 250, 250)"></i><!-- you can change the color of the arrow itself by changing this rgb value -->
  21. </div>
  22.  
  23. </div>
  24.  
  25. <div class="flex-grow pt-3 md:pt-2">
  26. <p class=" ">by <a class="no-underline hover:text-pink-500" href="LINK_TO_ARTIST_HERE" rel="nofollow">Artist Name</a></p> <!-- this has an optional link to the musical artist. -->
  27. <p class=" text-xs pt-1">code <a class="hover:text-pink-500" href="https://buzzly.art/~OneAlbatross" rel="nofollow"><i class="fas fa-code fa-xs"></i></a> • Single • 2019 • 3 : 23</p><!-- please don't remove the code credit (the "code" and link to my profile), otherwise this is some optional info on the song, -->
  28. </div>
  29.  
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35.  
Advertisement
Add Comment
Please, Sign In to add comment