-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Custom admin login page --------- Co-authored-by: Omer Cohen <[email protected]>
- Loading branch information
Showing
10 changed files
with
297 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% load descope %} {% load static %} | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Django Admin</title> | ||
</head> | ||
|
||
<body> | ||
<div class="flex-col"> | ||
{% if user.is_authenticated %} | ||
<p class="errornote"> | ||
You are authenticated as {{ user.email }}, but are not authorized to | ||
access this page. Would you like to login to a different account? | ||
</p> | ||
{% else %} | ||
{% descope_flow "sign-up-or-in" "/admin" %} | ||
{% endif %} | ||
</div> | ||
</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,48 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap'); | ||
|
||
|
||
body, html { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
h1, p { | ||
font-weight: 600; | ||
} | ||
h1 { | ||
font-family: 'Press Start 2P', cursive; | ||
background-color: rgb(24, 24, 24); | ||
padding: 3vh 4vh; | ||
color: rgb(0, 255, 204); | ||
margin-top: 3vh; | ||
} | ||
.debug-btn { | ||
margin-top: 3vh; | ||
font-family: 'Press Start 2P', cursive; | ||
color: black; | ||
} | ||
.flex-col { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
.logo { | ||
width: 8vw; | ||
height: auto; | ||
} | ||
.logo-container { | ||
margin-top: 5vh; | ||
padding: 3vh; | ||
border-radius: 50%; | ||
background-color: rgb(24, 24, 24); | ||
width: fit-content; | ||
} | ||
.logout { | ||
color: rgb(241, 72, 29); | ||
} | ||
.logo-container, h1 { | ||
box-shadow: 0px 0px 5px rgb(125, 125, 125), 0px 0px 10px rgb(31, 31, 31); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.