Commit a9b95031 authored by Alexander Færøy's avatar Alexander Færøy 🍍
Browse files

Add templates for sign-up form.

parent 3af96017
......@@ -14,17 +14,8 @@
{% endblock %}
</title>
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="https://www.torproject.org/">
<img src="/static/images/tor-logo@2x.png" alt="The Tor Project" loading="lazy">
</a>
{% block navbar %}
{% endblock navbar %}
</nav>
<body class="text-center">
{% block content %}
{% endblock content %}
{% endblock %}
</body>
</html>
{% extends "core/base.html" %}
{% block content %}
<div class="alert alert-danger" role="alert">
<p>Ugh, something went wrong. This is most likely because you entered an invalid username or email.</p>
<p>If you think this is a bug in our system,
please reach out to us at <a href="mailto:gitlab-admin@torproject.org">gitlab-admin@torproject.org</a>.</p>
</div>
{% endblock %}
{% extends "core/base.html" %}
{% block content %}
<form class="form-signin" method="post">
<img class="logo" src="/static/images/tor-logo@2x.png" alt="The Tor Project">
<h1 class="h3 mb-3 font-weight-normal">Request Gitlab Account</h1>
<label for="input-email" class="sr-only">Email address</label>
<input type="email" id="input-email" name="email" class="form-control" placeholder="Email address" required autofocus>
<label for="input-username" class="sr-only">Username</label>
<input type="text" id="input-username" name="username" class="form-control" placeholder="Username" required>
{% csrf_token %}
<button class="btn btn-success btn-tor" type="submit">Request Account</button>
</form>
{% endblock %}
{% extends "core/base.html" %}
{% block content %}
<div class="alert alert-success" role="alert">
Thank you for signing up! You will receive an email with information on how
to access your account once your account have been approved.
</div>
{% endblock %}
.navbar-brand img {
max-width: 3em;
html, body {
height: 100%;
}
body {
display: -ms-flexbox;
display: -webkit-box;
display: flex;
-ms-flex-align: center;
-ms-flex-pack: center;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
padding-top: 40px;
padding-bottom: 40px;
color: #fff;
background-color: #59316B;
}
.logo {
margin-bottom: 40px;
}
.form-signin {
width: 100%;
max-width: 330px;
padding: 15px;
margin: 0 auto;
}
.form-signin .checkbox {
font-weight: 400;
}
.form-signin .form-control {
position: relative;
box-sizing: border-box;
height: auto;
padding: 10px;
font-size: 16px;
}
.form-signin .form-control:focus {
z-index: 2;
}
.form-signin input[type="email"] {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-signin input[type="text"] {
border-top-left-radius: 0;
border-top-right-radius: 0;
margin-bottom: 20px;
}
.btn-tor {
background-color: #68B030;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment