<%= render "layouts/shared/htmldoc" do %>
<%= image_tag "logomark.svg", class: "w-16 mb-6" %>
<% if (controller_name == "sessions" && action_name == "new") || (controller_name == "registrations" && action_name == "new") %>
<%= 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 %>
<% end %> <% if controller_name == "sessions" %> <% elsif controller_name == "registrations" %> <% end %>
<%= yield %>
<%= render "layouts/shared/footer" %>
<% end %>