static-fe overhaul (#236)
authorsfr <sol@solfisher.com>
Wed, 7 Dec 2022 11:20:53 +0000 (11:20 +0000)
committerfloatingghost <hannah@coffee-and-dreams.uk>
Wed, 7 Dec 2022 11:20:53 +0000 (11:20 +0000)
commit7c4b415929cfef17c409eab095b8e1eb956607cc
tree2b1fda0a66d0ef26440719cb13aa095ea363c5fd
parent09326ffa56cae01f80d0125f4b8770d077e02967
static-fe overhaul (#236)

makes static-fe look more like pleroma-fe, with the stylesheets matching pleroma-dark and pleroma-light based on `prefers-color-scheme`.

- [x] navbar
- [x] about sidebar
- [x] background image
- [x] statuses
  - [x] "reply to" or "edited" tags
- [x] accounts
  - [x] show more / show less
  - [x] posts / with replies / media / followers / following
    - [x] followers/following would require user card snippets
  - [x] admin/bot indicators
- [x] attachments
  - [x] nsfw attachments
- [x] fontawesome icons
- [x] clean up and sort css
- [x] add pleroma-light
- [x] replace hardcoded strings

also i forgot
- [x] repeated headers

how it looks + sneak peek at statuses:
![](https://akkoma.dev/attachments/c0d3a025-6987-4630-8eb9-5f4db6858359)

Co-authored-by: Sol Fisher Romanoff <sol@solfisher.com>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/236
Co-authored-by: sfr <sol@solfisher.com>
Co-committed-by: sfr <sol@solfisher.com>
21 files changed:
.gitattributes
CHANGELOG.md
lib/pleroma/web/router.ex
lib/pleroma/web/static_fe/static_fe_controller.ex
lib/pleroma/web/static_fe/static_fe_view.ex
lib/pleroma/web/templates/layout/static_fe.html.eex
lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex
lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex
lib/pleroma/web/templates/static_fe/static_fe/_user_card.html.eex
lib/pleroma/web/templates/static_fe/static_fe/conversation.html.eex
lib/pleroma/web/templates/static_fe/static_fe/error.html.eex
lib/pleroma/web/templates/static_fe/static_fe/profile.html.eex
lib/pleroma/web/views/layout_view.ex
priv/static/static-fe/static-fe.css
priv/static/static-fe/svg/globe-solid.svg [new file with mode: 0644]
priv/static/static-fe/svg/lock-open-solid.svg [new file with mode: 0644]
priv/static/static-fe/svg/lock-solid.svg [new file with mode: 0644]
priv/static/static-fe/svg/reply-solid.svg [new file with mode: 0644]
priv/static/static-fe/svg/retweet-solid.svg [new file with mode: 0644]
priv/static/static-fe/svg/star-regular.svg [new file with mode: 0644]
test/pleroma/web/static_fe/static_fe_controller_test.exs