Improve user and community headers #1543
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
This PR aims to improve the appearance of user and community page headers. Right now there are a few things about our headers that I don't think look great. In the following example, we can see very little of the banner image. The overlay text becomes harder to read the further to the right it goes. The info button, despite having a bit of a light shadow behind it, can also have a tendency to blend into the background. It's also not completely obvious that the info button opens the about page. Finally, the banner is zoomed in to the extent that, in this case, some of the text is cut off.
I checked out several other Lemmy apps for inspiration, but I wasn't too impressed with what I found.
Sync: Doesn't show banner image
Expand for image
Boost: Shows the header nicely, but the avatar is hard to distinguish.
Expand for image
Eternity: Consumes a ton of vertical real estate, and the text/buttons at the top are impossible to see on top of the banner.
Expand for image
Summit: doesn't really have a header
Voyager: doesn't really have a header
Jerboa: Shares a lot of problems with other apps, like the avatar blending into the banner, and the header taking up quite a bit of vertical space despite showing relatively little info.
Expand for image
I decided to take a slightly different approach with the following changes to both user and community headers.
Notes:
I am no UI/UX expert, so any feedback on these changes or alternate proposals would be considered!!
Issue Being Fixed
Issue Number: N/A
Screenshots / Recordings
This video demonstrates the fade in and the scroll up animations.
qemu-system-x86_64_kFYB886CtX.mp4
Checklist
semanticLabel
s where applicable for accessibility?