2024-05-17 09:09:32 -04:00
|
|
|
<%= content_for :content do %>
|
2024-10-23 11:20:55 -04:00
|
|
|
<div class="flex flex-col h-screen px-6 py-12 bg-gray-25">
|
|
|
|
<div class="grow flex flex-col justify-center">
|
|
|
|
<div class="sm:mx-auto sm:w-full sm:max-w-md">
|
|
|
|
<div class="flex justify-center mb-6">
|
|
|
|
<%= image_tag "logo-color.png", class: "w-16 mb-6" %>
|
|
|
|
</div>
|
2024-02-02 17:49:28 -06:00
|
|
|
|
2024-10-23 11:20:55 -04:00
|
|
|
<div class="space-y-2">
|
|
|
|
<h2 class="text-3xl font-medium text-gray-900 text-center">
|
|
|
|
<%= content_for?(:header_title) ? yield(:header_title).html_safe : t(".your_account") %>
|
|
|
|
</h2>
|
2024-03-11 09:01:50 -05:00
|
|
|
|
2024-10-23 11:20:55 -04:00
|
|
|
<% if controller_name == "sessions" %>
|
|
|
|
<p class="text-sm text-center">
|
|
|
|
<%= tag.span t(".no_account"), class: "text-gray-500" %> <%= link_to t(".sign_up"), new_registration_path, class: "font-medium text-gray-900 hover:underline transition" %>
|
|
|
|
</p>
|
|
|
|
<% elsif controller_name == "registrations" %>
|
|
|
|
<p class="text-sm text-center text-gray-600">
|
|
|
|
<%= t(".existing_account") %> <%= link_to t(".sign_in"), new_session_path, class: "font-medium text-gray-900 hover:underline transition" %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-02 09:05:04 -06:00
|
|
|
|
2024-10-23 11:20:55 -04:00
|
|
|
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-lg">
|
|
|
|
<%= yield %>
|
|
|
|
</div>
|
2024-05-17 09:09:32 -04:00
|
|
|
</div>
|
2024-02-02 09:05:04 -06:00
|
|
|
|
2024-10-23 11:20:55 -04:00
|
|
|
<%= render "layouts/footer" %>
|
2024-05-17 09:09:32 -04:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= render template: "layouts/application" %>
|