From e2a1ab5aa78261b03203adaed8e29ed0caf0f3a2 Mon Sep 17 00:00:00 2001 From: Thomas Mathews Date: Tue, 24 Jan 2023 18:03:41 -0800 Subject: [PATCH] Update profile page for new fields --- css/styles.css | 21 ++++++++++---- icon/profile-website.svg | 1 + icon/profile-zap.svg | 1 + index.html | 27 ++++++++++++----- js/ui/profile.js | 62 ++++++++++++++++++++++++++++------------ js/ui/state.js | 18 ++++++++++-- 6 files changed, 97 insertions(+), 33 deletions(-) create mode 100644 icon/profile-website.svg create mode 100644 icon/profile-zap.svg diff --git a/css/styles.css b/css/styles.css index f0f8559..08643a3 100644 --- a/css/styles.css +++ b/css/styles.css @@ -482,8 +482,19 @@ input[type="text"].cw { width: 128px; height: 128px; } -[role="profile-info"] { +#profile-info > .profile-banner { + display: block; + padding: 0; + width: 100%; + height: 200px; + background-color: #1a1a1a; + background-size: cover; +} +#profile-info > div { padding: 15px; + position: relative; +} +#profile-info > div:last-child { padding-top: 0; } .profile-tools { @@ -496,13 +507,13 @@ input[type="text"].cw { .profile-tools > button.icon { margin-right: 20px; } -p[role="profile-desc"] { - margin-bottom: 0; +p[name="profile-about"] { + margin: 0; } -label[role="profile-nip5"] { - margin-top: 15px; +label[name="profile-nip05"] { font-weight: 800; display: block; + font-size: var(--fsEnlarged); } /* Profile Editor */ diff --git a/icon/profile-website.svg b/icon/profile-website.svg new file mode 100644 index 0000000..3c5b121 --- /dev/null +++ b/icon/profile-website.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon/profile-zap.svg b/icon/profile-zap.svg new file mode 100644 index 0000000..271e9fa --- /dev/null +++ b/icon/profile-zap.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/index.html b/index.html index 8b1a736..1e1dfff 100644 --- a/index.html +++ b/index.html @@ -149,26 +149,35 @@
+
- + +
- + + - - -
- -

+

@@ -284,7 +293,11 @@
+ + + +