BUGFIX: Fixed database not storing the num_viewers for each stream

UI: Changed styling for components
This commit is contained in:
JustIceO7
2025-02-27 17:15:00 +00:00
parent 2854d7f754
commit 5ad416393e
8 changed files with 5 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

View File

@@ -55,9 +55,9 @@ body[data-theme="light"] {
--user-pfp-border: #ffffff; --user-pfp-border: #ffffff;
--user-pfp-border-shadow: -10px 15px 25px rgba(0, 0, 0, 0.754); --user-pfp-border-shadow: -10px 15px 25px rgba(0, 0, 0, 0.754);
--user-borderBg: rgb(123, 0, 0); --user-borderBg: rgb(70, 0, 67);
--user-box: rgb(128, 0, 255); --user-box: rgb(128, 0, 255);
--user-box-strip: rgb(255, 0, 0); --user-box-strip: rgb(120, 3, 120);
--user-box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.754); --user-box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.754);
--user-sideBox: rgb(149, 0, 255); --user-sideBox: rgb(149, 0, 255);
--user-contentBox: rgb(255, 255, 253); --user-contentBox: rgb(255, 255, 253);

View File

@@ -41,9 +41,6 @@ const Footer = () => {
{/* About Section */} {/* About Section */}
<div className="flex-1 min-w-[250px]"> <div className="flex-1 min-w-[250px]">
<h2 className="text-2xl font-bold">Gander</h2> <h2 className="text-2xl font-bold">Gander</h2>
<p className="text-sm mt-2">
Your very favourite streaming service
</p>
</div> </div>
{/* Office Section */} {/* Office Section */}

View File

@@ -79,8 +79,7 @@ const AllCategoriesPage: React.FC = () => {
return ( return (
<DynamicPageContent <DynamicPageContent
className="min-h-screen bg-gradient-radial from-[#ff00f1] via-[#0400ff] to-[#ff0000]" className="min-h-screen"
style={{ backgroundImage: "url(/images/background-pattern.svg)" }}
> >
<ListRow <ListRow
ref={listRowRef} ref={listRowRef}

View File

@@ -133,7 +133,7 @@ const UserPage: React.FC = () => {
bg-[var(--user-box)] z-10 flex-shrink justify-center" bg-[var(--user-box)] z-10 flex-shrink justify-center"
style={{ boxShadow: "var(--user-box-shadow)" }} style={{ boxShadow: "var(--user-box-shadow)" }}
> >
<div className="absolute top-4 w-[99.8%] h-[1.5vh] min-h-[10px] max-h-[2em] bg-[var(--user-box-strip)]"></div> <div className="absolute top-4 w-[99.8%] h-[1vh] min-h-[1em] max-h-[2em] bg-[var(--user-box-strip)]"></div>
</div> </div>
{/* Profile Picture */} {/* Profile Picture */}
<div <div

View File

@@ -56,7 +56,7 @@ def handle_leave(data) -> None:
if user_id: if user_id:
remove_favourability_entry(data["user_id"], stream_id) remove_favourability_entry(data["user_id"], stream_id)
num_viewers = len(list(socketio.server.manager.get_participants("/", stream_id))) num_viewers = len(list(socketio.server.manager.get_participants("/", stream_id)))
update_viewers(str(user_id), str(stream_id)) update_viewers(stream_id, num_viewers)
emit("status", emit("status",
{ {
"message": f"Welcome to the chat, stream_id: {stream_id}", "message": f"Welcome to the chat, stream_id: {stream_id}",