From 58016c18a88d91c0a64e3242482baeabdd70ef6c Mon Sep 17 00:00:00 2001 From: Geoffrey Wu Date: Thu, 19 Sep 2024 18:42:39 -0400 Subject: [PATCH] better profile layout --- client/user/my-profile.html | 67 +++++++++++++++++++++++++------------ client/user/my-profile.js | 3 +- 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/client/user/my-profile.html b/client/user/my-profile.html index 58f28e25..eda7d48e 100644 --- a/client/user/my-profile.html +++ b/client/user/my-profile.html @@ -65,15 +65,14 @@
-

-

Welcome, !

-

-

- Email: -

-

- Email verified: -

+

Welcome, !

+

Check your inbox for a verification email. If you did not receive one, click this link to send a new verification email: @@ -89,18 +88,44 @@

Edit password

-

- Here are links to your tossup stats and bonus stats. - Or, check out your - tossup stats - and - bonus stats - plotted against time. -

-

- Use these links to view your starred tossups - and bonuses. -

+
+
+
+
Stats
+
+

Here are links to your tossup stats and bonus stats:

+ +
+
+
+
+
+
Graphs
+
+

Check out your tossup and bonus stats plotted over time:

+ +
+
+
+
+
+
Stars
+
+

Use these links to view your starred tossups and bonuses:

+ +
+
+
+

diff --git a/client/user/my-profile.js b/client/user/my-profile.js index fc876870..e4329074 100644 --- a/client/user/my-profile.js +++ b/client/user/my-profile.js @@ -3,7 +3,8 @@ import account from '../scripts/accounts.js'; fetch('/auth/get-profile') .then(response => response.json()) .then(data => { - document.getElementById('username').textContent = data.user.username; + document.getElementById('username-1').textContent = data.user.username; + document.getElementById('username-2').textContent = data.user.username; document.getElementById('email').textContent = data.user.email; if (data.user.verifiedEmail) { document.getElementById('email-verified').textContent = 'Yes';