Sha256: 99b2f34be9c6aaa6909bb0824057b4be670e858fa633d15d067570f7c117fa43

Contents?: true

Size: 1.92 KB

Versions: 19

Compression:

Stored size: 1.92 KB

Contents

<div class="flex min-h-full flex-col justify-center px-6 py-12 lg:px-8 text-center">
  <div class="sm:mx-auto sm:w-full sm:max-w-sm text-center">
    <img src="/panda-cms-assets/panda-nav.png" class="py-2 h-32 mx-auto w-auto">
    <h2 class="mt-10 mb-6 text-center text-2xl font-bold text-white">Sign in to your account</h2>
  </div>

  <% if PandaCms.authentication.dig(:google, :enabled) %>
    <div class="mt-4 text-center sm:mx-auto sm:w-full sm:max-w-sm">
      <%= form_tag "#{PandaCms.admin_path}/auth/google", method: "post", data: {turbo: false} do %>
        <button type="submit" class="min-w-56 mx-auto mb-4 inline-flex items-center gap-x-2 rounded-md bg-white px-3.5 py-2.5 border border-neutral-400">
          <i class="fa-brands fa-google text-xl mr-1"></i>
          Sign in with Google
        </button>
      <% end %>
    </div>
  <% end %>

  <% if PandaCms.authentication.dig(:microsoft, :enabled) %>
    <div class="mt-4 text-center sm:mx-auto sm:w-full sm:max-w-sm">
      <%= form_tag "#{PandaCms.admin_path}/auth/microsoft", method: "post", data: {turbo: false} do %>
        <button type="submit" class="min-w-56 mx-auto mb-4 inline-flex items-center gap-x-2 rounded-md bg-white px-3.5 py-2.5 border border-neutral-400">
          <i class="fa-brands fa-microsoft text-xl mr-1"></i>
          Sign in with Microsoft
        </button>
      <% end %>
    </div>
  <% end %>

  <% if PandaCms.authentication.dig(:github, :enabled) %>
    <div class="mt-4 text-center sm:mx-auto sm:w-full sm:max-w-sm">
      <%= form_tag "#{PandaCms.admin_path}/auth/github", method: "post", data: {turbo: false} do %>
        <button type="submit" id="button-sign-in-github" class="min-w-56 mx-auto mb-4 inline-flex items-center gap-x-2 rounded-md bg-white px-3.5 py-2.5 border border-neutral-400">
          <i class="fa-brands fa-github text-xl mr-1"></i>
          Sign in with GitHub
        </button>
      <% end %>
    </div>
  <% end %>
</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
panda_cms-0.3.10 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.9 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.8 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.7 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.6 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.5 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.4 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.3 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.2 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.1 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.0 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.2.7 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.2.6 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.2.5 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.2.4 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.2.3 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.2.2 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.2.1 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.2.0 app/views/panda_cms/admin/sessions/new.html.erb