2025-02-21 11:57:59 -05:00
|
|
|
<%= render "layouts/shared/htmldoc" do %>
|
|
|
|
<div class="flex flex-col h-dvh">
|
2025-04-11 09:28:00 -05:00
|
|
|
<div class="flex flex-col h-screen px-6 py-12 bg-surface">
|
2025-02-21 11:57:59 -05:00
|
|
|
<div class="grow flex flex-col justify-center">
|
|
|
|
<div class="sm:mx-auto sm:w-full sm:max-w-md">
|
2025-04-18 18:53:10 +05:30
|
|
|
<div class="flex justify-center mt-2 md:mb-6">
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= image_tag "logo-color.png", class: "w-16 mb-6" %>
|
|
|
|
</div>
|
|
|
|
<div class="space-y-2">
|
|
|
|
<h2 class="text-3xl font-medium text-primary text-center">
|
|
|
|
<%= content_for?(:header_title) ? yield(:header_title).html_safe : t(".your_account") %>
|
|
|
|
</h2>
|
2025-04-18 18:53:10 +05:30
|
|
|
<div class="space-y-3 md:hidden w-full my-4">
|
|
|
|
<div class="bg-surface-inset rounded-lg p-1 flex">
|
|
|
|
<%= link_to new_session_path,
|
|
|
|
class: "w-1/2 px-2 py-1 rounded-md text-sm text-center font-medium #{current_page?(new_session_path) ? 'bg-surface shadow-sm text-primary' : 'text-secondary'}" do %>
|
|
|
|
<%= t("layouts.auth.sign_in") %>
|
|
|
|
<% end %>
|
|
|
|
<%= link_to new_registration_path,
|
|
|
|
class: "w-1/2 px-2 py-1 rounded-md text-sm text-center font-medium #{!current_page?(new_session_path) ? 'bg-surface shadow-sm text-primary' : 'text-secondary'}" do %>
|
|
|
|
<%= t("layouts.auth.sign_up") %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
2025-02-21 11:57:59 -05:00
|
|
|
<% if controller_name == "sessions" %>
|
2025-04-18 18:53:10 +05:30
|
|
|
<p class="text-sm text-center hidden md:block">
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= tag.span t(".no_account"), class: "text-secondary" %> <%= link_to t(".sign_up"), new_registration_path, class: "font-medium text-primary hover:underline transition" %>
|
|
|
|
</p>
|
|
|
|
<% elsif controller_name == "registrations" %>
|
2025-04-18 18:53:10 +05:30
|
|
|
<p class="text-sm text-center text-gray-600 hidden md:block">
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= t(".existing_account") %> <%= link_to t(".sign_in"), new_session_path, class: "font-medium text-primary hover:underline transition" %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2024-10-23 11:20:55 -04:00
|
|
|
</div>
|
2024-02-02 09:05:04 -06:00
|
|
|
|
2025-04-18 18:53:10 +05:30
|
|
|
<div class="mt-0 md:mt-8 sm:mx-auto sm:w-full sm:max-w-lg">
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= yield %>
|
|
|
|
</div>
|
2024-10-23 11:20:55 -04:00
|
|
|
</div>
|
2024-02-02 09:05:04 -06:00
|
|
|
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render "layouts/shared/footer" %>
|
|
|
|
</div>
|
2024-05-17 09:09:32 -04:00
|
|
|
</div>
|
|
|
|
<% end %>
|