From 04bc5e5a5369d18f534c1dccf97a717278f8899d Mon Sep 17 00:00:00 2001 From: EvanLin3141 Date: Wed, 19 Feb 2025 16:16:29 +0000 Subject: [PATCH] Draft: User Profile --- frontend/src/assets/styles/index.css | 10 ++ frontend/src/pages/UserPage.tsx | 156 +++++++++++++-------------- 2 files changed, 87 insertions(+), 79 deletions(-) diff --git a/frontend/src/assets/styles/index.css b/frontend/src/assets/styles/index.css index 142681a..8853016 100644 --- a/frontend/src/assets/styles/index.css +++ b/frontend/src/assets/styles/index.css @@ -123,6 +123,16 @@ body[data-theme="green"] { --quickBar-bg: #e8f5e9; --quickBar-text: #2e7d32; --quickBar-border: #ffffff; + + /*User Page*/ + + --user-pfp-border: #ffffff; + --user-pfp-border-shadow: 0px 0px 15px rgba(0, 0, 0, 0.754); + + --user-borderBg: rgb(217, 240, 133); + + --user-bg: rgb(0, 78, 38); + --user-live-bg: rgb(217, 240, 133); } body[data-theme="orange"] { diff --git a/frontend/src/pages/UserPage.tsx b/frontend/src/pages/UserPage.tsx index 2188f92..458bd0e 100644 --- a/frontend/src/pages/UserPage.tsx +++ b/frontend/src/pages/UserPage.tsx @@ -110,97 +110,90 @@ const UserPage: React.FC = () => { } return ( - -
-
- {/* Profile Section - Left Third */} -
-
+ +
+
+ {/* Profile Section - TOP */} +
+ +
+ {/* Profile Picture */} -
+
{`${profileData.username}'s - - {profileData.isPartnered && ( -
- - - -
- )}
- {/* Username & Follower Count */} -

- {profileData.username} + {/* Username - Now Directly Below PFP */} +

+ Welcome {profileData.username}

- - {userPageVariant.toUpperCase()} - - {/* Follower Count */} - {userPageVariant === "streamer" && ( - <> -
- - {profileData.followerCount.toLocaleString()} followers + {/* User Type (e.g., "USER") + {userPageVariant.toUpperCase()} + + Bio Section +
+

About {profileData.username}

+

{profileData.bio}

+
+ */} + + + {/* Follower Count */} + {userPageVariant === "streamer" && ( + <> +
+ + {profileData.followerCount.toLocaleString()} followers + + {profileData.isPartnered && ( + + Partner - {profileData.isPartnered && ( - - Partner - - )} -
- - {/* (Un)Follow Button */} - {!isFollowing ? ( - - ) : ( - )} - - )} -
+
- {/* Bio Section */} -
-

- About {profileData.username} -

-

- {profileData.bio} -

-
+ {/* (Un)Follow Button */} + {!isFollowing ? ( + + ) : ( + + )} + + )} +
+ +
{/* Content Section */} @@ -239,11 +232,16 @@ const UserPage: React.FC = () => { )}
+ +
{showAuthModal && setShowAuthModal(false)} />} - + ); };