File size: 2,055 Bytes
fb2916f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{% extends "base.html" %}
{% import "_partials.html" as ui %}
{# Card layout, field placeholders, button copy and link row are transcribed
   from login-desktop / login-mobile. #}
{% block title %}Login / Register - LeetCode{% endblock %}
{% block header %}{{ ui.app_header(member, '', false) }}{% endblock %}
{% block main %}
<div class="auth">
  <div class="auth__card">
    <a class="auth__brand" href="/" aria-label="LeetCode">
      {{ ui.logo_mark(44) }}
      <span class="auth__word">LeetCode</span>
    </a>
    {% if notice %}<p class="auth__notice" role="status">{{ notice }}</p>{% endif %}
    {{ ui.field_error(errors, 'form') }}
    <form class="auth__form" method="post" action="/accounts/login/{{ next_query }}" novalidate>
      <label class="auth__field">
        <span class="visually-hidden">Username or E-mail</span>
        <input type="text" name="login" value="{{ values.login|default('') }}" placeholder="Username or E-mail" autocomplete="username" required>
      </label>
      {{ ui.field_error(errors, 'login') }}
      <label class="auth__field">
        <span class="visually-hidden">Password</span>
        <input type="password" name="password" placeholder="Password" autocomplete="current-password" required>
      </label>
      {{ ui.field_error(errors, 'password') }}
      {{ ui.verification_widget(verification) }}
      {{ ui.field_error(errors, 'verification') }}
      <button class="auth__submit" type="submit">Sign In</button>
    </form>
    <p class="auth__fine">By continuing, you agree to <a href="/terms/">Terms</a> &amp; <a href="/privacy/">Privacy Policy.</a></p>
    <div class="auth__row">
      <a href="/accounts/password/reset/">Forgot Password?</a>
      <a href="/accounts/signup/">Sign Up</a>
    </div>
    <p class="auth__or">or you can sign in with</p>
    {{ ui.social_row(true) }}
    {% if social_notice %}<p class="auth__notice auth__notice--muted" role="status">{{ social_notice }}</p>{% endif %}
  </div>
</div>
{% endblock %}
{% block footer %}{{ ui.app_footer('grey') }}{% endblock %}