mirror of
https://github.com/we-promise/sure.git
synced 2026-04-09 15:24:48 +00:00
32 lines
1.4 KiB
Plaintext
32 lines
1.4 KiB
Plaintext
<%= content_for :content do %>
|
|
<div class="flex flex-col justify-center min-h-full px-6 py-12">
|
|
<div class="sm:mx-auto sm:w-full sm:max-w-md">
|
|
<%= render "shared/logo" %>
|
|
|
|
<h2 class="mt-6 text-3xl font-semibold tracking-tight text-center font-display">
|
|
<%= content_for?(:header_title) ? yield(:header_title).html_safe : t(".your_account") %>
|
|
</h2>
|
|
|
|
<% if controller_name == "sessions" %>
|
|
<p class="mt-2 text-sm text-center text-gray-600">
|
|
<%= t(".or") %> <%= link_to t(".sign_up"), new_registration_path, class: "font-medium text-gray-600 hover:text-gray-400 transition" %>
|
|
</p>
|
|
<% elsif controller_name == "registrations" %>
|
|
<p class="mt-2 text-sm text-center text-gray-600">
|
|
<%= t(".or") %> <%= link_to t(".sign_in"), new_session_path, class: "font-medium text-gray-600 hover:text-gray-400 transition" %>
|
|
</p>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-lg">
|
|
<%= yield %>
|
|
</div>
|
|
|
|
<div class="p-8 mt-2 text-center">
|
|
<p class="mt-6 text-sm text-black"><%= link_to t(".privacy_policy"), "https://maybe.co/privacy", class: "font-medium text-gray-600 hover:text-gray-400 transition" %> • <%= link_to t(".terms_of_service"), "https://maybe.co/tos", class: "font-medium text-gray-600 hover:text-gray-400 transition" %></p>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= render template: "layouts/application" %>
|