From 1abdb7e3d3fcf75814915c7cb6dab50dc199c3eb Mon Sep 17 00:00:00 2001 From: damedotblog Date: Tue, 18 Feb 2025 21:04:18 -0500 Subject: [PATCH] reformat profile header --- src/components/Card/Card.css | 5 +- src/components/UserProfile/UserProfile.css | 32 ++++-- src/components/UserProfile/UserProfile.js | 117 +++++++++++---------- 3 files changed, 83 insertions(+), 71 deletions(-) diff --git a/src/components/Card/Card.css b/src/components/Card/Card.css index 3d265de..8da9349 100644 --- a/src/components/Card/Card.css +++ b/src/components/Card/Card.css @@ -39,10 +39,6 @@ padding-bottom: 10px; } -.card-header { - cursor: move; -} - /* Card title styles */ .card-title { margin: 0; @@ -83,6 +79,7 @@ cursor: move; max-width: 18px; text-align: center; + display: none; } /* Drag icon styling */ diff --git a/src/components/UserProfile/UserProfile.css b/src/components/UserProfile/UserProfile.css index bc2046d..92f1c8c 100644 --- a/src/components/UserProfile/UserProfile.css +++ b/src/components/UserProfile/UserProfile.css @@ -80,7 +80,8 @@ display: flex; margin-left: 20px; margin-right: 20px; - gap: 60px + gap: 60px; + justify-content: center; } @@ -104,8 +105,8 @@ } .user-profile-header p { + margin-bottom: 0px; margin-top: 0px; - margin-bottom: 9px; } .user-profile-header h2 { @@ -129,6 +130,8 @@ display: flex; flex-direction: column; gap: 20px; + align-content: center; + justify-content: center; } .user-profile-data { @@ -204,6 +207,10 @@ .user-profile-activity { text-transform: capitalize; + align-content: center; + justify-content: center; + display: flex; + flex-direction: column; } tspan { @@ -217,6 +224,17 @@ tspan { .user-profile-score { align-content: center; + justify-content: center; + display: flex; + flex-direction: column; +} + +.user-profile-data-group { + display: flex; + flex-direction: column; + gap: 14px; + align-content: center; + justify-content: center; } .dark-mode rect { @@ -239,14 +257,6 @@ tspan { opacity: 0.5; } -.user-profile-header-rechart { - max-width: 416.5px; - margin: auto; - display: flex; - align-items: center; - justify-content: center; -} - .user-profile-header-rechart { display: flex; align-items: center; @@ -254,6 +264,8 @@ tspan { margin: 0 auto; padding: 1rem; max-width: 200px; + justify-content: center; + max-height: 130px; } .score-gauge { diff --git a/src/components/UserProfile/UserProfile.js b/src/components/UserProfile/UserProfile.js index 8c972b5..d9c9bfb 100644 --- a/src/components/UserProfile/UserProfile.js +++ b/src/components/UserProfile/UserProfile.js @@ -240,72 +240,75 @@ const UserProfile = () => { return (
-
-
- -
-
-

{displayName}

-

@{resolvedHandle}

-
-
-

{Math.floor(selectedAccountData.ageInDays)} days old

-
-
-

{selectedAccountData.socialStatus}

-

{selectedAccountData.postingStyle}

+
+
+
+ +
+
+

{displayName}

+

@{resolvedHandle}

+
+
+

{Math.floor(selectedAccountData.ageInDays)} days old

+
+
+

{selectedAccountData.socialStatus}

+

{selectedAccountData.postingStyle}

+
-
-
-
- -
-
-
-

Bluesky Score: {selectedAccountData.blueskyScore}

-

Atproto Score: {selectedAccountData.atprotoScore}

+
+
+
-
-

Bluesky Status: {selectedAccountData.activityAll.bskyActivityStatus}

-

Atproto Status: {selectedAccountData.activityAll.atprotoActivityStatus}

+
+
+

Bluesky Score: {selectedAccountData.blueskyScore}

+

Atproto Score: {selectedAccountData.atprotoScore}

+
+
+

Bluesky Status: {selectedAccountData.activityAll.bskyActivityStatus}

+

Atproto Status: {selectedAccountData.activityAll.atprotoActivityStatus}

+
-
- {/*
- - -
*/} + {/*
+ + +
*/} +
+
- -
+ +