From 193d8bd9b5031d42d21eca0e23db1aa1b6bed367 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Tue, 14 Oct 2025 14:45:32 -0500 Subject: [PATCH] Style email and magic link code screens --- app/assets/stylesheets/fizzy-menu.css | 12 ++++++++ app/views/sessions/magic_links/show.html.erb | 29 ++++++++++++-------- app/views/sessions/new.html.erb | 27 ++++++++++++------ 3 files changed, 49 insertions(+), 19 deletions(-) diff --git a/app/assets/stylesheets/fizzy-menu.css b/app/assets/stylesheets/fizzy-menu.css index cf55a3630..bb3cf24a3 100644 --- a/app/assets/stylesheets/fizzy-menu.css +++ b/app/assets/stylesheets/fizzy-menu.css @@ -1,4 +1,16 @@ @layer components { + .fizzy-header-logo { + inline-size: auto; + margin-block-start: 0.1em; + + svg { + block-size: auto; + inline-size: 1.1em; + margin-block-end: 0.2em; + margin-inline-end: 0.8ch; + } + } + .input:is(.fizzy-menu-trigger) { --input-background: var(--color-canvas); --input-border-color: transparent; diff --git a/app/views/sessions/magic_links/show.html.erb b/app/views/sessions/magic_links/show.html.erb index a47db86fb..e840ed5e8 100644 --- a/app/views/sessions/magic_links/show.html.erb +++ b/app/views/sessions/magic_links/show.html.erb @@ -1,29 +1,36 @@ -<% @page_title = "Magic link" %> +<% @page_title = "Enter your sign-in code" %> -
" - style="--panel-size: 55ch;" -> -

Check your email

+<% content_for :header do %> + +<% end %> -

We just emailed you a special code.

+
+
+

Check your email

+

We just emailed you a special code

+
<%= form_with url: session_magic_link_path, method: :post, html: { class: "flex flex-column gap", data: { controller: token_list("auto-submit" => params[:code].present?)} } do |form| %>
- <% end %>
<% content_for :footer do %>
- Fizzy™ version 0 + Fizzy™ Beta. <%= mail_to "support@37signals.com", "Need help?", class: "txt-link" %>
<% end %> diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 9c0cf2464..f3fb2b3f2 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -1,25 +1,36 @@ <% @page_title = "Sign in" %> -
" style="--panel-size: 55ch;"> -

BOXCAR

+<% content_for :header do %> + +<% end %> - <%= form_with url: session_path, class: "flex flex-column gap txt-large" do |form| %> +
+
+

<%= @page_title %>

+

Enter your email address to continue

+
+ + <%= form_with url: session_path, class: "flex flex-column gap txt-medium" do |form| %>
- <% end %>
<% content_for :footer do %>
- Fizzy™ version 0 + BOXCAR™ Beta. <%= mail_to "support@37signals.com", "Need help?", class: "txt-link" %>
<% end %>