Skip to content

Commit

Permalink
chore: style login page
Browse files Browse the repository at this point in the history
  • Loading branch information
ngurenyaga committed Jul 15, 2021
1 parent 519e7ef commit 32cf411
Show file tree
Hide file tree
Showing 15 changed files with 7,732 additions and 7,275 deletions.
15 changes: 9 additions & 6 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
"rest_framework",
"rest_framework.authtoken",
"corsheaders",
# "jet.dashboard",
"jet",
"django.contrib.admin", # needs to come after jet so that jet static files are preferred
]
Expand Down Expand Up @@ -289,16 +288,20 @@
# django-allauth
# ------------------------------------------------------------------------------
ACCOUNT_ALLOW_REGISTRATION = env.bool("DJANGO_ACCOUNT_ALLOW_REGISTRATION", True)
# https://django-allauth.readthedocs.io/en/latest/configuration.html
ACCOUNT_AUTHENTICATION_METHOD = "username"
# https://django-allauth.readthedocs.io/en/latest/configuration.html
ACCOUNT_EMAIL_REQUIRED = True
# https://django-allauth.readthedocs.io/en/latest/configuration.html
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
# https://django-allauth.readthedocs.io/en/latest/configuration.html
ACCOUNT_ADAPTER = "pepfar_mle.users.adapters.AccountAdapter"
# https://django-allauth.readthedocs.io/en/latest/configuration.html
SOCIALACCOUNT_ADAPTER = "pepfar_mle.users.adapters.SocialAccountAdapter"
ACCOUNT_LOGOUT_ON_PASSWORD_CHANGE = True
ACCOUNT_SESSION_REMEMBER = None # ask the user 'Remember me'
ACCOUNT_SIGNUP_EMAIL_ENTER_TWICE = True
ACCOUNT_SIGNUP_PASSWORD_ENTER_TWICE = True
ACCOUNT_UNIQUE_EMAIL = True
ACCOUNT_USERNAME_MIN_LENGTH = 5
SOCIALACCOUNT_AUTO_SIGNUP = True
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"

# django-compressor
# ------------------------------------------------------------------------------
# https://django-compressor.readthedocs.io/en/latest/quickstart/#installation
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function pathsConfig(appName) {
app: this.app,
templates: `${this.app}/templates`,
css: `${this.app}/static/css`,
dataTablesCSS: `${vendorsRoot}/datatables.net-bs4/css/*.css`, // TODO
dataTablesCSS: `${vendorsRoot}/datatables.net-bs4/css/*.css`,
sass: `${this.app}/static/sass`,
fonts: `${this.app}/static/fonts`,
images: `${this.app}/static/images`,
Expand Down
Empty file.
Empty file.
15 changes: 15 additions & 0 deletions pepfar_mle/static/css/project.css
Original file line number Diff line number Diff line change
Expand Up @@ -8662,3 +8662,18 @@ a.text-dark:hover, a.text-dark:focus {
background-color: #f2dede;
border-color: #eed3d7;
color: #b94a48; }

.login-background-image {
background: url("../../static/images/doc_keyboard.png");
background-position: center;
background-size: cover; }

.register-background-image {
background: url("../../static/images/doc_keyboard.png");
background-position: center;
background-size: cover; }

.password-background-image {
background: url("../../static/images/doc_keyboard.png");
background-position: center;
background-size: cover; }
2 changes: 1 addition & 1 deletion pepfar_mle/static/css/project.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 32cf411

Please sign in to comment.