Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

2.2 KB
Raw Blame
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="robots" content="noindex" />
    <title>Sign in to Macro</title>
    <style>
      {% include "broker_page.css" %}
    </style>
  </head>
  <body>
    <main>
      {% if let Some(email) = code_sent_to %}
      <h1>Check your email</h1>
      <p>Enter the code we sent to <strong>{{ email }}</strong>.</p>
      {% if let Some(error) = error %}
      <p class="warning" role="alert">{{ error }}</p>
      {% endif %}
      <form method="post" action="email-sign-in">
        <input type="hidden" name="session" value="{{ session }}" />
        <input type="hidden" name="form_token" value="{{ form_token }}" />
        <input type="hidden" name="email" value="{{ email }}" />
        <label for="code">Code</label>
        <input id="code" name="code" type="text" inputmode="numeric" autocomplete="one-time-code" required autofocus />
        <div class="stack">
          <button class="approve" type="submit">Continue</button>
        </div>
      </form>
      <form method="post" action="email-sign-in">
        <input type="hidden" name="session" value="{{ session }}" />
        <input type="hidden" name="form_token" value="{{ form_token }}" />
        <input type="hidden" name="email" value="{{ email }}" />
        <div class="stack">
          <button class="deny" type="submit">Send a new code</button>
        </div>
      </form>
      {% else %}
      <h1>Sign in with email</h1>
      <p>We'll send a code to your email address.</p>
      {% if let Some(error) = error %}
      <p class="warning" role="alert">{{ error }}</p>
      {% endif %}
      <form method="post" action="email-sign-in">
        <input type="hidden" name="session" value="{{ session }}" />
        <input type="hidden" name="form_token" value="{{ form_token }}" />
        <label for="email">Email</label>
        <input id="email" name="email" type="email" autocomplete="email" required autofocus />
        <div class="stack">
          <button class="approve" type="submit">Send code</button>
        </div>
      </form>
      {% endif %}
    </main>
  </body>
</html>