From: Chris Fulljames Date: Mon, 20 Jan 2025 23:47:50 +0000 (-0500) Subject: Minor profile link improvements X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=8d2cd4580b34e4031abc733c70257c72ab82e104;p=littlesongplace.git Minor profile link improvements --- diff --git a/main.py b/main.py index 1b8e904..925a048 100644 --- a/main.py +++ b/main.py @@ -52,7 +52,7 @@ if "DATA_DIR" in os.environ: @app.route("/") def index(): - users = [row["username"] for row in query_db("select username from users")] + users = [row["username"] for row in query_db("select username from users order by username asc")] songs = Song.get_latest(50) song_list = render_template("song-list.html", songs=songs) return render_template("index.html", users=users, song_list=song_list) diff --git a/static/styles.css b/static/styles.css index 74b3f6e..1a3cae7 100644 --- a/static/styles.css +++ b/static/styles.css @@ -85,6 +85,15 @@ div.page-header { margin: 10px; } +.profile-link { + font-weight: bold; + color: var(--pink); +} + +.user-list-entry { + padding: 5px; +} + /* Navbar */ div.navbar { display: flex; diff --git a/templates/base.html b/templates/base.html index f745f3f..79e3492 100644 --- a/templates/base.html +++ b/templates/base.html @@ -58,7 +58,7 @@ Not Playing - +
diff --git a/templates/index.html b/templates/index.html index 5070de1..0014dd7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,11 +9,11 @@

Hello, and welcome!

-I created this website because I wanted a little place where a few friends can +I created this website because I wanted a little place where a few friends could share songs with each other. There are lots of big places for this -already of course, but they all feel too cold and impersonal to me. I figure -maybe some of you also feel the same way, so I made this little song place just -for us. +already of course, but they all feel so noisy and cold and impersonal to me. I +figure maybe some of you also feel the same way, so I made this little song +place just for us.

@@ -25,10 +25,11 @@ feedback you might have! Just send me (cfull) a message on Discord. :)

Profiles

-

Check out the music of the fine folks below! If you create an account, you'll show up here too.

+

Check out the music of the fine folks below!{% if not session["userid"] %} If you create an account, you'll show up here too.{% endif %}

{% for user in users %} -
{{ user }}
+{{ user }} + {% endfor %}

Recently Uploaded Songs

diff --git a/templates/song-list.html b/templates/song-list.html index c445a8d..a6457a4 100644 --- a/templates/song-list.html +++ b/templates/song-list.html @@ -10,13 +10,13 @@ - - {{ song.username }} + {{ song.username }}
{% for collab in song.collaborators %} {% if collab.startswith("@") %} - {{ collab }} + {{ collab[1:] }} {% else %} {{ collab }} {% endif %} diff --git a/todo.txt b/todo.txt index d9b0e8b..33860ab 100644 --- a/todo.txt +++ b/todo.txt @@ -10,6 +10,7 @@ TODO (AFTER RELEASE) - Shuffle all - Homepage activity log - Admin accounts +- Song downloads - AJAX pages so songs can play during navigation - Play Queue: - Add songs