
<% if @magic_link.for_sign_in? %>
  <h1 class="title">Fizzy verification code</h1>
  <p class="subtitle">Please enter this 6-character verification code on the Fizzy sign-in page:</p>
<% else %>
  <h1 class="title">Welcome to Fizzy!</h1>
  <p class="subtitle">Please enter this 6-character verification code to finish creating your account:</p>
<% end %>

<strong class="txt-large"><%= @magic_link.code %></strong>

<p>This code will work for <%= distance_of_time_in_words(MagicLink::EXPIRATION_TIME) %>.</p>

<% if account = @magic_link.identity.accounts.last %>
  <p>P.S. You can make your account more secure and sign-in faster with a <%= link_to "Passkey", my_passkeys_url(script_name: account.slug) %></p>
<% end %>

<p class="footer">Need help? <%= mail_to "support@fizzy.do", "Send us an email"%>.
</p>

