-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
326add7
commit 1fefae9
Showing
15 changed files
with
617 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<!-- Required meta tags --> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
|
||
<!-- Bootstrap CSS --> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script> | ||
<title>{% block head_title %}{% endblock %}</title> | ||
{% block extra_head %} | ||
{% endblock %} | ||
<style> | ||
body{ | ||
width: 100%; | ||
height: 100vh; | ||
background-color: #2F2E41; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
{% block body %} | ||
|
||
{% if messages %} | ||
{% for message in messages %} | ||
<script> | ||
const Toast = Swal.mixin({ | ||
toast: true, | ||
position: 'top-end', | ||
showConfirmButton: false, | ||
timer: 3000, | ||
timerProgressBar: true, | ||
onOpen: (toast) => { | ||
toast.addEventListener('mouseenter', Swal.stopTimer) | ||
toast.addEventListener('mouseleave', Swal.resumeTimer) | ||
} | ||
}) | ||
|
||
Toast.fire({ | ||
icon: 'success', | ||
title: {{ message }} | ||
}); | ||
</script> | ||
{% endfor %} | ||
{% endif %} | ||
{% block content %} | ||
{% endblock %} | ||
{% endblock %} | ||
{% block extra_body %} | ||
{% endblock %} | ||
<!-- Optional JavaScript --> | ||
<!-- jQuery first, then Popper.js, then Bootstrap JS --> | ||
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
{% extends 'account/base.html' %} | ||
{% load crispy_forms_tags %} | ||
{% load i18n %} | ||
|
||
{% block head_title %}{% trans "Signup" %}{% endblock %} | ||
|
||
{% block content %} | ||
<section class="container pt-5"> | ||
<div class="row pt-5"> | ||
<div class="col-md-6 offset-md-3"> | ||
<div class="card text-center"> | ||
<div class="card-body px-5"> | ||
<h2>Login</h2> | ||
<hr> | ||
<form class="signup text-left" id="signup_form" method="post" action="{% url 'account_login' %}"> | ||
{% csrf_token %} | ||
{{ form | crispy }} | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> | ||
{% endif %} | ||
<button class="btn btn-success form-control " type="submit">{% trans "Sign Up" %} »</button> | ||
</form> | ||
<br> | ||
<p>{% blocktrans %}Already have an account? Then please <a href="{{ signup_url }}">sign in</a>.{% endblocktrans %}</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
{% extends 'account/base.html' %} | ||
{% load crispy_forms_tags %} | ||
{% load i18n %} | ||
|
||
{% block head_title %}{% trans "Signup" %}{% endblock %} | ||
|
||
{% block content %} | ||
<section class="container pt-5"> | ||
<div class="row pt-5"> | ||
<div class="col-md-6 offset-md-3"> | ||
<div class="card text-center"> | ||
<div class="card-body px-5"> | ||
<h2>Sign up</h2> | ||
<hr> | ||
<form class="signup text-left" id="signup_form" method="post" action="{% url 'account_signup' %}"> | ||
{% csrf_token %} | ||
{{ form | crispy }} | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" /> | ||
{% endif %} | ||
<button class="btn btn-success form-control " type="submit">{% trans "Sign Up" %} »</button> | ||
</form> | ||
<br> | ||
<p>{% blocktrans %}Already have an account? Then please <a href="{{ login_url }}">sign in</a>.{% endblocktrans %}</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
body { | ||
font-size: .875rem; | ||
} | ||
|
||
.feather { | ||
width: 16px; | ||
height: 16px; | ||
vertical-align: text-bottom; | ||
} | ||
|
||
/* | ||
* Sidebar | ||
*/ | ||
|
||
.sidebar { | ||
position: fixed; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
z-index: 100; /* Behind the navbar */ | ||
padding: 0; | ||
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1); | ||
} | ||
|
||
.sidebar-sticky { | ||
position: -webkit-sticky; | ||
position: sticky; | ||
top: 48px; /* Height of navbar */ | ||
height: calc(100vh - 48px); | ||
padding-top: .5rem; | ||
overflow-x: hidden; | ||
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ | ||
} | ||
|
||
.sidebar .nav-link { | ||
font-weight: 500; | ||
color: #333; | ||
} | ||
|
||
.sidebar .nav-link .feather { | ||
margin-right: 4px; | ||
color: #999; | ||
} | ||
|
||
.sidebar .nav-link.active { | ||
color: #007bff; | ||
} | ||
|
||
.sidebar .nav-link:hover .feather, | ||
.sidebar .nav-link.active .feather { | ||
color: inherit; | ||
} | ||
|
||
.sidebar-heading { | ||
font-size: .75rem; | ||
text-transform: uppercase; | ||
} | ||
|
||
/* | ||
* Navbar | ||
*/ | ||
|
||
.navbar-brand { | ||
padding-top: .75rem; | ||
padding-bottom: .75rem; | ||
font-size: 1rem; | ||
background-color: rgba(0, 0, 0, .25); | ||
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25); | ||
} | ||
|
||
.navbar .form-control { | ||
padding: .75rem 1rem; | ||
border-width: 0; | ||
border-radius: 0; | ||
} | ||
|
||
.form-control-dark { | ||
color: #fff; | ||
background-color: rgba(255, 255, 255, .1); | ||
border-color: rgba(255, 255, 255, .1); | ||
} | ||
|
||
.form-control-dark:focus { | ||
border-color: transparent; | ||
box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); | ||
} | ||
|
||
/* | ||
* Utilities | ||
*/ | ||
|
||
.border-top { border-top: 1px solid #e5e5e5; } | ||
.border-bottom { border-bottom: 1px solid #e5e5e5; } |
Oops, something went wrong.