nyxbuttons

This commit is contained in:
Nyx 2025-02-24 17:55:06 -06:00
parent 0e04fcc882
commit 44af0418bf
2 changed files with 14 additions and 2 deletions

View file

@ -11,7 +11,6 @@ buttons = [
("assets/88x31s/benjae.nekoweb.org.gif", "https://benjae.nekoweb.org"),
("assets/88x31s/freetards.xyz.gif", "https://freetards.xyz"),
("assets/88x31s/fsky.io.webp", "https://fsky.io"),
("assets/88x31s/nyx.everypizza.im.webp", "https://nyx.everypizza.im"),
("assets/88x31s/purplebored.pl.gif", "https://purplebored.pl"),
("assets/88x31s/squarebowl.club.gif", "https://squarebowl.club"),
("assets/88x31s/synth.download.svg", "https://synth.download"),
@ -19,6 +18,10 @@ buttons = [
("assets/88x31s/voxel.fsky.io.webp", "https://voxel.fsky.io"),
]
nyxbuttons = [
("assets/88x31s/nyx.everypizza.im.webp", "https://nyx.everypizza.im"),
]
app = Flask(__name__)
countFile = "visitorCount.txt"
@ -50,7 +53,7 @@ def index():
album = data.json()['payload']['listens'][0]['track_metadata']['release_name']
nowPlayingString = f"now playing for <b>{user}</b>: <b>{track}</b> by <b>{artist}</b> from <b>{album}</b>"
return render_template('index.j2', np=nowPlayingString, visitor=get_visitor_count(), buttons=buttons)
return render_template('index.j2', np=nowPlayingString, visitor=get_visitor_count(), buttons=buttons, nyxbuttons=nyxbuttons)
@app.route('/assets/index.css')
def indexStyle():

View file

@ -94,4 +94,13 @@
</a>
{% endfor %}
</p>
<h3>
this one's 88x31
</h3>
<p>
{% for image, link in nyxbuttons %}
<a href="{{ link }}">
<img src="/static/{{ image }}" alt="{{ image }}" width="88" height="31">
</a>
{% endfor %}
</body>