<%= flash[:notice] %>
<% end %>
<% if flash[:alert].present? %>
<%= flash[:alert] %>
<% end %>
<% if @unlocked %>
Unlocked
Admin Panel Unlocked
This is a staged interface only. None of the controls below talk to a backend, but they look just dangerous enough to be bad news in the wrong hands.
Volatile flags
Pure theater, but tasteful theater.
Restricted access
Admin login required
Enter the four-word access phrase from the stock page in the format WORD_1-WORD_2-WORD_3-WORD_4.
Use the words in page order.
<%= form_with url: admin_path, method: :post, class: "mt-8 space-y-5" do |form| %>
<%= form.label :password, "Access phrase", class: "mb-2 block text-sm font-medium text-zinc-200" %>
<%= form.password_field :password,
autocomplete: "off",
placeholder: "WORD_1-WORD_2-WORD_3-WORD_4",
class: "w-full rounded-2xl border border-white/10 bg-zinc-950/70 px-4 py-3 font-mono text-sm text-white outline-none transition placeholder:text-zinc-500 focus:border-sky-400/60 focus:ring-2 focus:ring-sky-400/20" %>
<%= form.submit "Unlock", class: "inline-flex items-center rounded-full bg-white px-5 py-2.5 text-sm font-semibold text-zinc-950 transition hover:bg-zinc-200" %>
Local preview only
<% end %>