mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
new login screen
This commit is contained in:
parent
58af536dbf
commit
407605761f
2 changed files with 61 additions and 24 deletions
|
@ -9,24 +9,27 @@
|
||||||
{% endblock style %}
|
{% endblock style %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="page-header">
|
<div class="login-box">
|
||||||
<a class="" href="/"><h1>WebVirtCloud</h1></a>
|
<div class="page-header">
|
||||||
</div>
|
<a class="" href="/"><h1>WebVirtCloud</h1></a>
|
||||||
<div class="col-12" role="main">
|
</div>
|
||||||
{% if form.errors %}
|
<div class="col-12" role="main">
|
||||||
<div class="alert alert-danger">
|
{% if form.errors %}
|
||||||
<button type="button" class="btn-close" data-dismiss="alert" aria-label="Close"></button>
|
<div class="alert alert-danger">
|
||||||
{% trans "Incorrect username or password." %}
|
<button type="button" class="btn-close" data-dismiss="alert" aria-label="Close"></button>
|
||||||
</div>
|
{% trans "Incorrect username or password." %}
|
||||||
{% endif %}
|
</div>
|
||||||
<form class="form-signin" method="post" role="form" aria-label="Login form">{% csrf_token %}
|
{% endif %}
|
||||||
<h2 class="form-signin-heading">{% trans "Sign In" %}</h2>
|
<form class="form-signin" method="post" role="form" aria-label="Login form">{% csrf_token %}
|
||||||
<input type="text" class="form-control" name="username" placeholder="{% trans "User" %}" autocapitalize="none" autocorrect="off" autofocus>
|
<h2 class="form-signin-heading">{% trans "Sign In" %}</h2>
|
||||||
<input type="password" class="form-control" name="password" placeholder="{% trans "Password" %}">
|
<input type="text" class="form-control" name="username" placeholder="{% trans "User" %}" autocapitalize="none" autocorrect="off" autofocus>
|
||||||
<input type="hidden" name="next" value="{{ next }}">
|
<input type="password" class="form-control" name="password" placeholder="{% trans "Password" %}">
|
||||||
<div class="d-grid">
|
<input type="hidden" name="next" value="{{ next }}">
|
||||||
<button class="btn btn-lg btn-success" type="submit">{% trans "Sign In" %}</button>
|
<div class="d-grid">
|
||||||
</div>
|
<button class="btn btn-lg btn-success" type="submit">{% trans "Sign In" %}</button>
|
||||||
</form>
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -1,3 +1,24 @@
|
||||||
|
/* body {
|
||||||
|
background: rgba(203,203,203,1)
|
||||||
|
} */
|
||||||
|
.login-box {
|
||||||
|
margin-top: 25%;
|
||||||
|
display: block;
|
||||||
|
align-content: center;
|
||||||
|
align-items: center;
|
||||||
|
box-shadow: 0px 0px 30px black;
|
||||||
|
border-radius: 20px;
|
||||||
|
padding-top: 30px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
background: linear-gradient(0deg, rgba(203,203,203,1) 0%, rgba(255,255,255,1) 100%);
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
color:#212529;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
color:#212529;
|
||||||
|
}
|
||||||
|
|
||||||
.form-signin {
|
.form-signin {
|
||||||
max-width: 330px;
|
max-width: 330px;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
|
@ -29,15 +50,28 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-signin input[type="text"] {
|
.form-signin input[type="text"] {
|
||||||
margin-bottom: -1px;
|
margin-bottom: 10px;
|
||||||
border-bottom-left-radius: 0;
|
border-radius: 5px;
|
||||||
border-bottom-right-radius: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-signin input[type="password"] {
|
.form-signin input[type="password"] {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
border-top-left-radius: 0;
|
border-radius: 5px;
|
||||||
border-top-right-radius: 0;
|
}
|
||||||
|
|
||||||
|
.btn-success {
|
||||||
|
background: linear-gradient(45deg, rgba(190,120,255,1) 0%, rgba(43,108,173,1) 34%, rgba(38,173,151,1) 68%, rgba(208,144,71,1) 100%);
|
||||||
|
transition-duration: 0.5s;
|
||||||
|
border-color: rgba(11, 12, 13, 0);
|
||||||
|
border-width: 2px;
|
||||||
|
border-style: solid;
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
|
.btn-success:hover {
|
||||||
|
transition-duration: 0.5s;
|
||||||
|
border-color: goldenrod;
|
||||||
|
border-width: 2px;
|
||||||
|
border-style: solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logout {
|
.logout {
|
||||||
|
|
Loading…
Reference in a new issue