Git Product home page Git Product logo

unofficialdxnny / lanyard-spotify-now-playing Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 39 KB

Style custom spotify now playing stutuses for streaming or displaying on your website

Home Page: https://unofficialdxnny.com/projects/spotify-now-playing/spotify-now-playing/

License: Apache License 2.0

CSS 32.66% SCSS 7.74% HTML 19.04% JavaScript 40.57%
discord javascript lanyard lanyard-api-intrigration css now-playing obs-studio songs spotify spotify-now-playing

lanyard-spotify-now-playing's Introduction

Lanyard-Spotify-Now-Playing

This project lets users display their current Spotify listening activity on a webpage and customize its appearance using CSS.


Features

  • Fetches current Spotify listening status from a Discord user (connected via the Lanyard API).
  • Displays the song, artist, and album art.
  • Allows for personalized styling through a CSS input field.

Getting Started

Prerequisites

Setup

  • Download This Repository
  • Alternatively Clone This Repository git clone https://github.com/unofficialdxnny/Lanyard-Spotify-Now-Playing.git
  • cd Lanyard-Spotify-Now-Playing
  • node server.js
  • Open 127.0.0.1:3000

Usage

  • Open index.html in your web browser.
  • Optionally, customize the appearance by entering your CSS code in the "Enter - Your CSS..." text box.
  • Click "Submit" to see your Spotify listening activity, styled with your CSS if provided.

Advanced Usage

  • discord_user_id: The user's Discord ID.
  • css: URL-encoded CSS code to directly apply styles. This skips the input field on the index.html.

Examples

1. Modern

.spotify{background-color:#181818;color:white;display:flex;flex-direction:column;align-items:flex-start;padding:25px;border-radius:10px;box-shadow:0px 5px 15px rgba(0, 0, 0, 0.4);} .spotify img.album{width:70px;height:70px;margin-bottom:15px;border-radius:5px;box-shadow:0px 2px 5px rgba(0, 0, 0, 0.2);} .spotify .artist{font-weight:bold;font-size:18px;margin-bottom:5px;} .spotify .song{font-size:14px;color:#b3b3b3;} .spotify:hover{background-color:#282828;cursor:pointer;}

2. Retro Neon Vibe

.spotify{background-color:#121212;color:#f0f8ff;padding:30px;border-radius:10px;box-shadow:0 5px 15px rgba(255,0,255,0.4),0 5px 15px rgba(0,255,255,0.4);} .album{border:3px solid #ff00ff;} .artist{font-family:'Courier New',monospace;font-weight:bold;}

3. Minimalist Elegance

.spotify{background-color:#f7f7f7;color:#333;padding:25px;border-radius:8px;box-shadow:0 4px 8px rgba(0,0,0,0.1);} .album{max-width:200px;margin:0 auto 15px auto;} .artist,.song{font-family:'Arial',sans-serif;}

4. Lo-fi / Vaporwave

.spotify{background:linear-gradient(45deg,#ff99cc,#99ccff);padding:30px;border-radius:15px;} .album{box-shadow:0 5px 10px rgba(0,0,0,0.5);} .artist,.song{font-family:'Arial Black',sans-serif;color:#fff;text-shadow:2px 2px 5px rgba(0,0,0,0.4);}

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests with improvements.

License

This project is licensed under the Apache License: LICENSE

lanyard-spotify-now-playing's People

Contributors

unofficialdxnny avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.