AgPerry's picture
Add files using upload-large-folder tool
7f8e190 verified
Raw History Blame Contribute Delete
2.06 kB
{% 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 %}