new styles for static pages

This commit is contained in:
Henry Jameson 2025-08-12 02:31:47 +03:00
commit 57f1f20b87
3 changed files with 168 additions and 194 deletions

View file

@ -5,10 +5,19 @@
<% # Note: using hidden input with `unchecked_value` in order to distinguish user's empty selection from `scope` param being omitted %>
<%= if scope in @scopes do %>
<div class="scope">
<%= checkbox @form, :"scope_#{scope}", value: scope in @scopes && scope, checked_value: scope, unchecked_value: "", name: "authorization[scope][]" %>
<%= label @form, :"scope_#{scope}", String.capitalize(scope) %>
<span class="checkbox">
<%= checkbox @form, :"scope_#{scope}", value: scope in @scopes && scope, checked_value: scope, unchecked_value: "", name: "authorization[scope][]" %>
<%= label @form, :"scope_#{scope}", String.capitalize(scope) %>
</span>
<%= if scope in @scopes && scope do %>
<code><%= scope %></code> <%= :"Elixir.Gettext".dgettext(Gettext, "oauth_scopes", scope) %>
<dl>
<dt>
<%= :"Elixir.Gettext".dgettext(Gettext, "oauth_scopes", scope) %>
</dt>
<dd>
<code><%= scope %></code>
</dd>
</dl>
<% end %>
</div>
<% else %>

View file

@ -9,7 +9,10 @@
<%= if @user do %>
<div class="account-header">
<div class="account-header__banner" style="background-image: url('<%= Pleroma.User.banner_url(@user) %>')"></div>
<div class="account-header_container">
<img class="account-header__banner" src="<%= Pleroma.User.banner_url(@user) %>"></div>
<div class="account-header__overlay" style="background-image: url('<%= Pleroma.User.banner_url(@user) %>')"></div>
</div>
<div class="account-header__avatar" style="background-image: url('<%= Pleroma.User.avatar_url(@user) %>')"></div>
<div class="account-header__meta">
<div class="account-header__display-name"><%= @user.name %></div>
@ -18,7 +21,7 @@
</div>
<% end %>
<div class="container__content">
<div class="panel-heading">
<%= if @app do %>
<p><%= raw Gettext.dpgettext("static_pages", "oauth authorize message", "Application <strong>%{client_name}</strong> is requesting access to your account.", client_name: safe_to_string(html_escape(@app.client_name))) %></p>
<%= render Phoenix.Controller.view_module(@conn), "_scopes.html", Map.merge(assigns, %{form: f}) %>