styled invite and reg pages
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Roxie Gibson 2022-01-13 13:29:48 +00:00
parent 0ce09aa241
commit 93d64fe5fb
Signed by: roxxers
GPG Key ID: 5D0140EDEE123F4D
3 changed files with 135 additions and 57 deletions

View File

@ -134,10 +134,6 @@ nav strong{
text-decoration: none; text-decoration: none;
} }
.button.is-ghost {
padding-left: 0 !important;
}
footer { footer {
background-color: #AFAFAF !important; background-color: #AFAFAF !important;
padding: 1rem 1.5rem !important; padding: 1rem 1.5rem !important;
@ -151,3 +147,59 @@ footer .content span {
padding-bottom: 2rem !important; padding-bottom: 2rem !important;
} }
#formlogo.logo{
background-color: white;
border: 1px solid black;
transform: rotate(5deg);
margin: 0 auto 2em auto !important;
width: 75%;
position: relative;
bottom: 1em;
padding: 0.8em
}
@media all and (min-width: 768px) {
#formlogo.logo{
width: 50%;
}
.signup-form-box {
max-width: 70%;
margin: auto;
margin-top: 4em;
}
}
.signup-form-box {
margin: auto;
margin-top: 4em;
border: #333 2px solid;
}
.form-header {
background-color: #BCE1D1;
height: 3.6em;
}
.form-body p,.form-body form {
margin-left: 1em;
}
.form-body {
overflow-x: auto;
}
.form-body button{
margin-bottom: 1em;
}
.form-body .button {
padding: 0 4em !important;
color: white;
background-color: #AFAFAF;
}
.button {
font-family: "Gudea", "sans-serif" !important;
}

View File

@ -2,10 +2,21 @@
{% block content %} {% block content %}
{% include 'nav.html' %} {% include 'nav.html' %}
<div class="logo"> <!-- <div class="logo">
<img src="{{ url_for('static', path='svg/lumbung_space_logo.svg') }}" alt="lumbung.space logo">
</div> -->
<div class="center-table">
<div class="signup-form-box">
<div class="form-header">
<div id="formlogo" class="logo">
<img src="{{ url_for('static', path='svg/lumbung_space_logo.svg') }}" alt="lumbung.space logo"> <img src="{{ url_for('static', path='svg/lumbung_space_logo.svg') }}" alt="lumbung.space logo">
</div> </div>
<div> </div>
<div class="form-body">
<p>
Hello {{user.preferred_username}}. Here are links you can send to invite others to register.
</p>
{% if user.preferred_username in invites and invites[user.preferred_username]|length > 0 %} {% if user.preferred_username in invites and invites[user.preferred_username]|length > 0 %}
<table> <table>
<tr> <tr>
@ -25,10 +36,12 @@
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
{% endif %} <div class="overflow-x:auto">
<p> </div>
{% endif %}
<button class="button is-ghost"><a href="{{ url_for('invite_keycloak_create') }}">Generate</a></button> <button class="button is-ghost"><a href="{{ url_for('invite_keycloak_create') }}">Generate</a></button>
</p> </div>
</div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -1,5 +1,12 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<div class="signup-form-box">
<div class="form-header">
<div id="formlogo" class="logo">
<img src="{{ url_for('static', path='svg/lumbung_space_logo.svg') }}" alt="lumbung.space logo">
</div>
</div>
<div class="form-body">
<p> <p>
You've been invited by {{ invited_by }} 🎉 You've been invited by {{ invited_by }} 🎉
</p> </p>
@ -29,7 +36,13 @@
<input type="hidden" name="invited_by" value="{{ invited_by }}"/> <input type="hidden" name="invited_by" value="{{ invited_by }}"/>
<input type="submit" value="Register" /> <input class="button "type="submit" value="Register" />
</form> </form>
</div>
</div>
{% endblock %} {% endblock %}